#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 SnxxzUIItemOverdueModelWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(Snxxz.UI.ItemOverdueModel);
|
Utils.BeginObjectRegister(type, L, translator, 0, 15, 4, 0);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnSwitchAccount", _m_OnSwitchAccount);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetItem", _m_TryGetItem);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ReportConfirmUseItem", _m_ReportConfirmUseItem);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowUseItemAble", _m_ShowUseItemAble);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendRenewalQuest", _m_SendRenewalQuest);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetOverdueGuard", _m_GetOverdueGuard);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsMoneyEnough", _m_IsMoneyEnough);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAllGuardIdlist", _m_SetAllGuardIdlist);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRenewallist", _m_GetRenewallist);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetGuardOverdueIcon", _m_GetGuardOverdueIcon);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "showItemRefreshEvent", _e_showItemRefreshEvent);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "guardOverdueIconDict", _g_get_guardOverdueIconDict);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "currentShowItem", _g_get_currentShowItem);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "VipExperirnceID", _g_get_VipExperirnceID);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "VipCardID", _g_get_VipCardID);
|
|
|
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
null, null, null);
|
|
Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "FirstGoldWPOver", _e_FirstGoldWPOver);
|
|
|
|
|
|
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.ItemOverdueModel gen_ret = new Snxxz.UI.ItemOverdueModel();
|
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.ItemOverdueModel constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Init(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOverdueModel gen_to_be_invoked = (Snxxz.UI.ItemOverdueModel)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.ItemOverdueModel gen_to_be_invoked = (Snxxz.UI.ItemOverdueModel)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_OnSwitchAccount(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOverdueModel gen_to_be_invoked = (Snxxz.UI.ItemOverdueModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.OnSwitchAccount( );
|
|
|
|
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.ItemOverdueModel gen_to_be_invoked = (Snxxz.UI.ItemOverdueModel)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_TryGetItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOverdueModel gen_to_be_invoked = (Snxxz.UI.ItemOverdueModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string __guid = LuaAPI.lua_tostring(L, 2);
|
Snxxz.UI.ItemOverdueModel.OverdueItem __itemModel;
|
|
bool gen_ret = gen_to_be_invoked.TryGetItem( __guid, out __itemModel );
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
translator.Push(L, __itemModel);
|
|
|
|
|
return 2;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_ReportConfirmUseItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOverdueModel gen_to_be_invoked = (Snxxz.UI.ItemOverdueModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string _guid = LuaAPI.lua_tostring(L, 2);
|
|
gen_to_be_invoked.ReportConfirmUseItem( _guid );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_ShowUseItemAble(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOverdueModel gen_to_be_invoked = (Snxxz.UI.ItemOverdueModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
bool gen_ret = gen_to_be_invoked.ShowUseItemAble( );
|
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_UnInit(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOverdueModel gen_to_be_invoked = (Snxxz.UI.ItemOverdueModel)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_SendRenewalQuest(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOverdueModel gen_to_be_invoked = (Snxxz.UI.ItemOverdueModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _index = LuaAPI.xlua_tointeger(L, 2);
|
int _moneyType = LuaAPI.xlua_tointeger(L, 3);
|
|
gen_to_be_invoked.SendRenewalQuest( _index, _moneyType );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GetOverdueGuard(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOverdueModel gen_to_be_invoked = (Snxxz.UI.ItemOverdueModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.GetOverdueGuard( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_IsMoneyEnough(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOverdueModel gen_to_be_invoked = (Snxxz.UI.ItemOverdueModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _moneyType = LuaAPI.xlua_tointeger(L, 2);
|
int _needMoney = LuaAPI.xlua_tointeger(L, 3);
|
|
bool gen_ret = gen_to_be_invoked.IsMoneyEnough( _moneyType, _needMoney );
|
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_SetAllGuardIdlist(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOverdueModel gen_to_be_invoked = (Snxxz.UI.ItemOverdueModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.SetAllGuardIdlist( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GetRenewallist(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOverdueModel gen_to_be_invoked = (Snxxz.UI.ItemOverdueModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _itemID = LuaAPI.xlua_tointeger(L, 2);
|
|
System.Collections.Generic.List<int> gen_ret = gen_to_be_invoked.GetRenewallist( _itemID );
|
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_GetGuardOverdueIcon(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.ItemOverdueModel gen_to_be_invoked = (Snxxz.UI.ItemOverdueModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _itemId = LuaAPI.xlua_tointeger(L, 2);
|
|
string gen_ret = gen_to_be_invoked.GetGuardOverdueIcon( _itemId );
|
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 _g_get_guardOverdueIconDict(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.ItemOverdueModel gen_to_be_invoked = (Snxxz.UI.ItemOverdueModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.guardOverdueIconDict);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_currentShowItem(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.ItemOverdueModel gen_to_be_invoked = (Snxxz.UI.ItemOverdueModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.currentShowItem);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_VipExperirnceID(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.ItemOverdueModel gen_to_be_invoked = (Snxxz.UI.ItemOverdueModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.VipExperirnceID);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_VipCardID(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.ItemOverdueModel gen_to_be_invoked = (Snxxz.UI.ItemOverdueModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.VipCardID);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_showItemRefreshEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.ItemOverdueModel gen_to_be_invoked = (Snxxz.UI.ItemOverdueModel)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.showItemRefreshEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.showItemRefreshEvent -= 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.ItemOverdueModel.showItemRefreshEvent!");
|
return 0;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_FirstGoldWPOver(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 2);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#2 need System.Action!");
|
}
|
|
|
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
|
Snxxz.UI.ItemOverdueModel.FirstGoldWPOver += gen_delegate;
|
return 0;
|
}
|
|
|
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
|
Snxxz.UI.ItemOverdueModel.FirstGoldWPOver -= gen_delegate;
|
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.ItemOverdueModel.FirstGoldWPOver!");
|
}
|
|
}
|
}
|