#if USE_UNI_LUA
|
using LuaAPI = UniLua.Lua;
|
using RealStatePtr = UniLua.ILuaState;
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
#else
|
using LuaAPI = XLua.LuaDLL.Lua;
|
using RealStatePtr = System.IntPtr;
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
#endif
|
|
using XLua;
|
using System.Collections.Generic;
|
|
|
namespace XLua.CSObjectWrap
|
{
|
using Utils = XLua.Utils;
|
public class SnxxzUIItemOperateUtilityWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(Snxxz.UI.ItemOperateUtility);
|
Utils.BeginObjectRegister(type, L, translator, 0, 25, 2, 1);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "PutOnItem", _m_PutOnItem);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "PutOffEquip", _m_PutOffEquip);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RequestWarehouseData", _m_RequestWarehouseData);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "PutInWareHouse", _m_PutInWareHouse);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "TakeOutFromWarehouse", _m_TakeOutFromWarehouse);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GotoUseItem", _m_GotoUseItem);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckItemUselimit", _m_CheckItemUselimit);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetOfflineMaxNum", _m_GetOfflineMaxNum);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckIsMaxOfflineTime", _m_CheckIsMaxOfflineTime);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UseItem", _m_UseItem);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CanUseItem", _m_CanUseItem);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UseItemCrossServer", _m_UseItemCrossServer);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ProcessOverdueItem", _m_ProcessOverdueItem);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnClickSplitBtn", _m_OnClickSplitBtn);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SplitItem", _m_SplitItem);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "PutAway", _m_PutAway);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GotoInlayItem", _m_GotoInlayItem);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GotoStarUpgrade", _m_GotoStarUpgrade);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GotoStrengthen", _m_GotoStrengthen);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GotoTrain", _m_GotoTrain);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GotoComposeItem", _m_GotoComposeItem);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SellItem", _m_SellItem);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendSellQuest", _m_SendSellQuest);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "DismantleItem", _m_DismantleItem);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RenewalItem", _m_RenewalItem);
|
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "operateItemGuid", _g_get_operateItemGuid);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "useItemModel", _g_get_useItemModel);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "useItemModel", _s_set_useItemModel);
|
|
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
null, null, null);
|
|
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
|
|
|
|
|
|
Utils.EndClassRegister(type, L, translator);
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int __CreateInstance(RealStatePtr L)
|
{
|
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
if(LuaAPI.lua_gettop(L) == 1)
|
{
|
|
Snxxz.UI.ItemOperateUtility gen_ret = new Snxxz.UI.ItemOperateUtility();
|
translator.Push(L, gen_ret);
|
|
return 1;
|
}
|
|
}
|
catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.ItemOperateUtility constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_PutOnItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string _guid = LuaAPI.lua_tostring(L, 2);
|
|
gen_to_be_invoked.PutOnItem( _guid );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_PutOffEquip(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string _guid = LuaAPI.lua_tostring(L, 2);
|
|
gen_to_be_invoked.PutOffEquip( _guid );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_RequestWarehouseData(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.RequestWarehouseData( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_PutInWareHouse(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string _guid = LuaAPI.lua_tostring(L, 2);
|
|
gen_to_be_invoked.PutInWareHouse( _guid );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_TakeOutFromWarehouse(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
{
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GotoUseItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string _guid = LuaAPI.lua_tostring(L, 2);
|
|
gen_to_be_invoked.GotoUseItem( _guid );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_CheckItemUselimit(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _itemId = LuaAPI.xlua_tointeger(L, 2);
|
|
bool gen_ret = gen_to_be_invoked.CheckItemUselimit( _itemId );
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
|
|
|
return 1;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GetOfflineMaxNum(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.ItemModel _itemModel = (Snxxz.UI.ItemModel)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemModel));
|
|
int gen_ret = gen_to_be_invoked.GetOfflineMaxNum( _itemModel );
|
LuaAPI.xlua_pushinteger(L, gen_ret);
|
|
|
|
return 1;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_CheckIsMaxOfflineTime(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _useNum = LuaAPI.xlua_tointeger(L, 2);
|
Snxxz.UI.ItemModel _itemModel = (Snxxz.UI.ItemModel)translator.GetObject(L, 3, typeof(Snxxz.UI.ItemModel));
|
|
bool gen_ret = gen_to_be_invoked.CheckIsMaxOfflineTime( _useNum, _itemModel );
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
|
|
|
return 1;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_UseItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
|
{
|
string _guid = LuaAPI.lua_tostring(L, 2);
|
int _useCnt = LuaAPI.xlua_tointeger(L, 3);
|
int _extra = LuaAPI.xlua_tointeger(L, 4);
|
|
gen_to_be_invoked.UseItem( _guid, _useCnt, _extra );
|
|
|
|
return 0;
|
}
|
if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
|
{
|
string _guid = LuaAPI.lua_tostring(L, 2);
|
int _useCnt = LuaAPI.xlua_tointeger(L, 3);
|
|
gen_to_be_invoked.UseItem( _guid, _useCnt );
|
|
|
|
return 0;
|
}
|
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
{
|
string _guid = LuaAPI.lua_tostring(L, 2);
|
|
gen_to_be_invoked.UseItem( _guid );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
return LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.ItemOperateUtility.UseItem!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_CanUseItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string _guid = LuaAPI.lua_tostring(L, 2);
|
int _useCnt = LuaAPI.xlua_tointeger(L, 3);
|
int _error;
|
|
bool gen_ret = gen_to_be_invoked.CanUseItem( _guid, _useCnt, out _error );
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
LuaAPI.xlua_pushinteger(L, _error);
|
|
|
|
|
return 2;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_UseItemCrossServer(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string _guid = LuaAPI.lua_tostring(L, 2);
|
|
gen_to_be_invoked.UseItemCrossServer( _guid );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_ProcessOverdueItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string _guid = LuaAPI.lua_tostring(L, 2);
|
|
gen_to_be_invoked.ProcessOverdueItem( _guid );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_OnClickSplitBtn(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string _guid = LuaAPI.lua_tostring(L, 2);
|
|
gen_to_be_invoked.OnClickSplitBtn( _guid );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SplitItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string _guid = LuaAPI.lua_tostring(L, 2);
|
int _splitCount = LuaAPI.xlua_tointeger(L, 3);
|
|
gen_to_be_invoked.SplitItem( _guid, _splitCount );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_PutAway(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string _guid = LuaAPI.lua_tostring(L, 2);
|
|
gen_to_be_invoked.PutAway( _guid );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GotoInlayItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string _guid = LuaAPI.lua_tostring(L, 2);
|
|
gen_to_be_invoked.GotoInlayItem( _guid );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GotoStarUpgrade(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string _guid = LuaAPI.lua_tostring(L, 2);
|
|
gen_to_be_invoked.GotoStarUpgrade( _guid );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GotoStrengthen(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string _guid = LuaAPI.lua_tostring(L, 2);
|
|
gen_to_be_invoked.GotoStrengthen( _guid );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GotoTrain(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string _guid = LuaAPI.lua_tostring(L, 2);
|
|
gen_to_be_invoked.GotoTrain( _guid );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GotoComposeItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _jumpId = LuaAPI.xlua_tointeger(L, 2);
|
|
gen_to_be_invoked.GotoComposeItem( _jumpId );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SellItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.ItemAttrData _attrData = (Snxxz.UI.ItemAttrData)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemAttrData));
|
|
gen_to_be_invoked.SellItem( _attrData );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SendSellQuest(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
PackType _type;translator.Get(L, 2, out _type);
|
int _index = LuaAPI.xlua_tointeger(L, 3);
|
|
gen_to_be_invoked.SendSellQuest( _type, _index );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_DismantleItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.ItemAttrData _attrData = (Snxxz.UI.ItemAttrData)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemAttrData));
|
|
gen_to_be_invoked.DismantleItem( _attrData );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_RenewalItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string _guid = LuaAPI.lua_tostring(L, 2);
|
|
gen_to_be_invoked.RenewalItem( _guid );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_operateItemGuid(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushstring(L, gen_to_be_invoked.operateItemGuid);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_useItemModel(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.useItemModel);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_useItemModel(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.useItemModel = (Snxxz.UI.ItemModel)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemModel));
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
|
|
|
|
}
|
}
|