#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 SnxxzUIPackModelInterfaceWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(Snxxz.UI.PackModelInterface);
|
Utils.BeginObjectRegister(type, L, translator, 0, 37, 7, 3);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetEquipScore", _m_SetEquipScore);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckIsCustomItem", _m_CheckIsCustomItem);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPreciousItem", _m_GetPreciousItem);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckPreciousCondition", _m_CheckPreciousCondition);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnGetEquip", _m_OnGetEquip);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshPickItem", _m_RefreshPickItem);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckBetterEquipByRealm", _m_CheckBetterEquipByRealm);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDruglistByRealm", _m_GetDruglistByRealm);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OpenGrid", _m_OpenGrid);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetItemEffectCDTime", _m_SetItemEffectCDTime);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTimeOffest", _m_GetTimeOffest);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetItemEffectTimelist", _m_GetItemEffectTimelist);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSellItemList", _m_GetSellItemList);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSellItemOrder", _m_SetSellItemOrder);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsEquip", _m_IsEquip);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetOneKeySellModel", _m_GetOneKeySellModel);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCanSellEquipList", _m_GetCanSellEquipList);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendOneKeySellQuest", _m_SendOneKeySellQuest);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendPackResetQuest", _m_SendPackResetQuest);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLookIndex", _m_SetLookIndex);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckBetterEquip", _m_CheckBetterEquip);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHighestScoreEquipByPlace", _m_GetHighestScoreEquipByPlace);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBagSortBetterEquipList", _m_SetBagSortBetterEquipList);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBagSortBetterEquip", _m_GetBagSortBetterEquip);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsCanPutOn", _m_IsCanPutOn);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetItemQuality", _m_GetItemQuality);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnChangeCoinsUnit", _m_OnChangeCoinsUnit);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsFightUp", _m_IsFightUp);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsOverdue", _m_IsOverdue);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPreciousItemEvent", _e_GetPreciousItemEvent);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshGetBetterEquipEvent", _e_RefreshGetBetterEquipEvent);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshPickItemEvent", _e_RefreshPickItemEvent);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "lookEquipEvent", _e_lookEquipEvent);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "preciousItemType", _g_get_preciousItemType);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "betterEquipExceptDungeonDict", _g_get_betterEquipExceptDungeonDict);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "isPackResetOk", _g_get_isPackResetOk);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "lookLineIndex", _g_get_lookLineIndex);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "lookItemGUID", _g_get_lookItemGUID);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "pushBuffTypeIds", _g_get_pushBuffTypeIds);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "itemModelDict", _g_get_itemModelDict);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "isPackResetOk", _s_set_isPackResetOk);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "pushBuffTypeIds", _s_set_pushBuffTypeIds);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "itemModelDict", _s_set_itemModelDict);
|
|
|
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.PackModelInterface gen_ret = new Snxxz.UI.PackModelInterface();
|
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.PackModelInterface constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Init(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.Init( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_OnBeforePlayerDataInitialize(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.OnBeforePlayerDataInitialize( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_OnPlayerLoginOk(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.OnPlayerLoginOk( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_UnInit(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.UnInit( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SetEquipScore(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 5&& translator.Assignable<PackType>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>>(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5))
|
{
|
PackType _type;translator.Get(L, 2, out _type);
|
int _itemId = LuaAPI.xlua_tointeger(L, 3);
|
System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>> _useDataDic = (System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>)translator.GetObject(L, 4, typeof(System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>));
|
bool _isPreview = LuaAPI.lua_toboolean(L, 5);
|
|
int gen_ret = gen_to_be_invoked.SetEquipScore( _type, _itemId, _useDataDic, _isPreview );
|
LuaAPI.xlua_pushinteger(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 4&& translator.Assignable<PackType>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>>(L, 4))
|
{
|
PackType _type;translator.Get(L, 2, out _type);
|
int _itemId = LuaAPI.xlua_tointeger(L, 3);
|
System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>> _useDataDic = (System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>)translator.GetObject(L, 4, typeof(System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>));
|
|
int gen_ret = gen_to_be_invoked.SetEquipScore( _type, _itemId, _useDataDic );
|
LuaAPI.xlua_pushinteger(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 3&& translator.Assignable<PackType>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
|
{
|
PackType _type;translator.Get(L, 2, out _type);
|
int _itemId = LuaAPI.xlua_tointeger(L, 3);
|
|
int gen_ret = gen_to_be_invoked.SetEquipScore( _type, _itemId );
|
LuaAPI.xlua_pushinteger(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.PackModelInterface.SetEquipScore!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_CheckIsCustomItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
TableConfig.ItemConfig _itemConfig = (TableConfig.ItemConfig)translator.GetObject(L, 2, typeof(TableConfig.ItemConfig));
|
|
bool gen_ret = gen_to_be_invoked.CheckIsCustomItem( _itemConfig );
|
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_GetPreciousItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.ItemModel _itemModel = (Snxxz.UI.ItemModel)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemModel));
|
|
gen_to_be_invoked.GetPreciousItem( _itemModel );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_CheckPreciousCondition(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.ItemModel _itemModel = (Snxxz.UI.ItemModel)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemModel));
|
|
bool gen_ret = gen_to_be_invoked.CheckPreciousCondition( _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_OnGetEquip(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.ItemModel _model = (Snxxz.UI.ItemModel)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemModel));
|
|
gen_to_be_invoked.OnGetEquip( _model );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_RefreshPickItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
PackType _type;translator.Get(L, 2, out _type);
|
string _guid = LuaAPI.lua_tostring(L, 3);
|
|
gen_to_be_invoked.RefreshPickItem( _type, _guid );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_CheckBetterEquipByRealm(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
System.Collections.Generic.Dictionary<int, Snxxz.UI.ItemModel> gen_ret = gen_to_be_invoked.CheckBetterEquipByRealm( );
|
translator.Push(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_GetDruglistByRealm(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
System.Collections.Generic.List<Snxxz.UI.ItemModel> gen_ret = gen_to_be_invoked.GetDruglistByRealm( );
|
translator.Push(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_OpenGrid(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _chooseGridCount = LuaAPI.xlua_tointeger(L, 2);
|
PackType _type;translator.Get(L, 3, out _type);
|
|
gen_to_be_invoked.OpenGrid( _chooseGridCount, _type );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SetItemEffectCDTime(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string _guid = LuaAPI.lua_tostring(L, 2);
|
int _itemID = LuaAPI.xlua_tointeger(L, 3);
|
int _getTime = LuaAPI.xlua_tointeger(L, 4);
|
|
gen_to_be_invoked.SetItemEffectCDTime( _guid, _itemID, _getTime );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GetTimeOffest(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
System.DateTime _getTime;translator.Get(L, 2, out _getTime);
|
|
double gen_ret = gen_to_be_invoked.GetTimeOffest( _getTime );
|
LuaAPI.lua_pushnumber(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_GetItemEffectTimelist(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
System.Collections.Generic.List<string> gen_ret = gen_to_be_invoked.GetItemEffectTimelist( );
|
translator.Push(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_GetSellItemList(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
System.Collections.Generic.List<Snxxz.UI.ItemModel> gen_ret = gen_to_be_invoked.GetSellItemList( );
|
translator.Push(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_SetSellItemOrder(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.ItemModel _startModel = (Snxxz.UI.ItemModel)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemModel));
|
Snxxz.UI.ItemModel _endModel = (Snxxz.UI.ItemModel)translator.GetObject(L, 3, typeof(Snxxz.UI.ItemModel));
|
|
int gen_ret = gen_to_be_invoked.SetSellItemOrder( _startModel, _endModel );
|
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_IsEquip(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.ItemModel _model = (Snxxz.UI.ItemModel)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemModel));
|
|
bool gen_ret = gen_to_be_invoked.IsEquip( _model );
|
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_GetOneKeySellModel(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.GetOneKeySellModel( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GetCanSellEquipList(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.ItemModel _model = (Snxxz.UI.ItemModel)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemModel));
|
|
gen_to_be_invoked.GetCanSellEquipList( _model );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SendOneKeySellQuest(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
System.Collections.Generic.List<Snxxz.UI.ItemModel> __oneKeySelllist = (System.Collections.Generic.List<Snxxz.UI.ItemModel>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<Snxxz.UI.ItemModel>));
|
|
gen_to_be_invoked.SendOneKeySellQuest( __oneKeySelllist );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SendPackResetQuest(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
PackType _type;translator.Get(L, 2, out _type);
|
|
gen_to_be_invoked.SendPackResetQuest( _type );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SetLookIndex(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
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 _singleRowCount = LuaAPI.xlua_tointeger(L, 3);
|
|
gen_to_be_invoked.SetLookIndex( _guid, _singleRowCount );
|
|
|
|
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.SetLookIndex( _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.PackModelInterface.SetLookIndex!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_CheckBetterEquip(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
RoleEquipType _ignoreType;translator.Get(L, 2, out _ignoreType);
|
|
bool gen_ret = gen_to_be_invoked.CheckBetterEquip( _ignoreType );
|
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_GetHighestScoreEquipByPlace(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _equipPlace = LuaAPI.xlua_tointeger(L, 2);
|
|
string gen_ret = gen_to_be_invoked.GetHighestScoreEquipByPlace( _equipPlace );
|
LuaAPI.lua_pushstring(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_SetBagSortBetterEquipList(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.ItemModel _itemModel = (Snxxz.UI.ItemModel)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemModel));
|
|
gen_to_be_invoked.SetBagSortBetterEquipList( _itemModel );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GetBagSortBetterEquip(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _equipPlace = LuaAPI.xlua_tointeger(L, 2);
|
int _index = LuaAPI.xlua_tointeger(L, 3);
|
|
Snxxz.UI.ItemModel gen_ret = gen_to_be_invoked.GetBagSortBetterEquip( _equipPlace, _index );
|
translator.Push(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_IsCanPutOn(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.ItemModel _itemModel = (Snxxz.UI.ItemModel)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemModel));
|
|
bool gen_ret = gen_to_be_invoked.IsCanPutOn( _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_GetItemQuality(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>>(L, 3))
|
{
|
int _itemId = LuaAPI.xlua_tointeger(L, 2);
|
System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>> _useDataDic = (System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>));
|
|
int gen_ret = gen_to_be_invoked.GetItemQuality( _itemId, _useDataDic );
|
LuaAPI.xlua_pushinteger(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
|
{
|
int _itemId = LuaAPI.xlua_tointeger(L, 2);
|
|
int gen_ret = gen_to_be_invoked.GetItemQuality( _itemId );
|
LuaAPI.xlua_pushinteger(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.PackModelInterface.GetItemQuality!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_OnChangeCoinsUnit(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
ulong _value = LuaAPI.lua_touint64(L, 2);
|
|
string gen_ret = gen_to_be_invoked.OnChangeCoinsUnit( _value );
|
LuaAPI.lua_pushstring(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_IsFightUp(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int __itemID = LuaAPI.xlua_tointeger(L, 2);
|
int __score = LuaAPI.xlua_tointeger(L, 3);
|
|
int gen_ret = gen_to_be_invoked.IsFightUp( __itemID, __score );
|
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_IsOverdue(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)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)&& translator.Assignable<System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>>(L, 4))
|
{
|
string _guid = LuaAPI.lua_tostring(L, 2);
|
int _itemId = LuaAPI.xlua_tointeger(L, 3);
|
System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>> _useDataDict = (System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>)translator.GetObject(L, 4, typeof(System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>));
|
|
bool gen_ret = gen_to_be_invoked.IsOverdue( _guid, _itemId, _useDataDict );
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
|
|
|
return 1;
|
}
|
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 _itemId = LuaAPI.xlua_tointeger(L, 3);
|
|
bool gen_ret = gen_to_be_invoked.IsOverdue( _guid, _itemId );
|
LuaAPI.lua_pushboolean(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.PackModelInterface.IsOverdue!");
|
|
}
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_preciousItemType(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.preciousItemType);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_betterEquipExceptDungeonDict(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.betterEquipExceptDungeonDict);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_isPackResetOk(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isPackResetOk);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_lookLineIndex(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.lookLineIndex);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_lookItemGUID(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushstring(L, gen_to_be_invoked.lookItemGUID);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_pushBuffTypeIds(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.pushBuffTypeIds);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_itemModelDict(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.itemModelDict);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_isPackResetOk(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.isPackResetOk = LuaAPI.lua_toboolean(L, 2);
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_pushBuffTypeIds(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.pushBuffTypeIds = (int[])translator.GetObject(L, 2, typeof(int[]));
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_itemModelDict(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.itemModelDict = (System.Collections.Generic.Dictionary<int, System.Collections.Generic.Dictionary<int, Snxxz.UI.ItemModel>>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<int, System.Collections.Generic.Dictionary<int, Snxxz.UI.ItemModel>>));
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_GetPreciousItemEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
System.Action<PackType, string> gen_delegate = translator.GetDelegate<System.Action<PackType, string>>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action<PackType, string>!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.GetPreciousItemEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.GetPreciousItemEvent -= gen_delegate;
|
return 0;
|
}
|
|
}
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.PackModelInterface.GetPreciousItemEvent!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_RefreshGetBetterEquipEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
System.Action<string> gen_delegate = translator.GetDelegate<System.Action<string>>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action<string>!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.RefreshGetBetterEquipEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.RefreshGetBetterEquipEvent -= gen_delegate;
|
return 0;
|
}
|
|
}
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.PackModelInterface.RefreshGetBetterEquipEvent!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_RefreshPickItemEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
System.Action<PackType, string> gen_delegate = translator.GetDelegate<System.Action<PackType, string>>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action<PackType, string>!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.RefreshPickItemEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.RefreshPickItemEvent -= gen_delegate;
|
return 0;
|
}
|
|
}
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.PackModelInterface.RefreshPickItemEvent!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_lookEquipEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1);
|
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.lookEquipEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.lookEquipEvent -= gen_delegate;
|
return 0;
|
}
|
|
}
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.PackModelInterface.lookEquipEvent!");
|
return 0;
|
}
|
|
|
|
}
|
}
|