#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 RealmPracticeModelWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(RealmPracticeModel);
|
Utils.BeginObjectRegister(type, L, translator, 0, 16, 4, 1);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAfterPlayerDataInitialize", _m_OnAfterPlayerDataInitialize);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshOpenPracModel", _m_RefreshOpenPracModel);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAllOpenRealmPra", _m_GetAllOpenRealmPra);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRealmPracticelist", _m_GetRealmPracticelist);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTagSuccessModel", _m_GetTagSuccessModel);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GeTagChinItemModel", _m_GeTagChinItemModel);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAchievement", _m_SetAchievement);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPracticePointStr", _m_GetPracticePointStr);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRealmPraPointByType", _m_GetRealmPraPointByType);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RealmTypeRedPointCtrl", _m_RealmTypeRedPointCtrl);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshAchieveState", _m_RefreshAchieveState);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsReachAchieve", _m_IsReachAchieve);
|
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "AchieveModel", _g_get_AchieveModel);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "realmFirstTypeDict", _g_get_realmFirstTypeDict);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "realmSecondTypeDict", _g_get_realmSecondTypeDict);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "realmPraRedPoint", _g_get_realmPraRedPoint);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "realmPraRedPoint", _s_set_realmPraRedPoint);
|
|
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
null, null, null);
|
|
Utils.BeginClassRegister(type, L, __CreateInstance, 4, 0, 0);
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PLAYERLV_KEY", RealmPracticeModel.PLAYERLV_KEY);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "REALMREDPOINT_KEY", RealmPracticeModel.REALMREDPOINT_KEY);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "REALMPRAFUNCREDPOINT_KEY", RealmPracticeModel.REALMPRAFUNCREDPOINT_KEY);
|
|
|
|
|
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)
|
{
|
|
RealmPracticeModel gen_ret = new RealmPracticeModel();
|
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 RealmPracticeModel constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Init(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
RealmPracticeModel gen_to_be_invoked = (RealmPracticeModel)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);
|
|
|
RealmPracticeModel gen_to_be_invoked = (RealmPracticeModel)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_OnAfterPlayerDataInitialize(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
RealmPracticeModel gen_to_be_invoked = (RealmPracticeModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.OnAfterPlayerDataInitialize( );
|
|
|
|
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);
|
|
|
RealmPracticeModel gen_to_be_invoked = (RealmPracticeModel)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);
|
|
|
RealmPracticeModel gen_to_be_invoked = (RealmPracticeModel)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_RefreshOpenPracModel(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
RealmPracticeModel gen_to_be_invoked = (RealmPracticeModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.RefreshOpenPracModel( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GetAllOpenRealmPra(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
RealmPracticeModel gen_to_be_invoked = (RealmPracticeModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
System.Collections.Generic.Dictionary<int, System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<TableConfig.RealmPracticeConfig>>> gen_ret = gen_to_be_invoked.GetAllOpenRealmPra( );
|
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_GetRealmPracticelist(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
RealmPracticeModel gen_to_be_invoked = (RealmPracticeModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _firstType = LuaAPI.xlua_tointeger(L, 2);
|
int _secondType = LuaAPI.xlua_tointeger(L, 3);
|
|
System.Collections.Generic.List<TableConfig.RealmPracticeConfig> gen_ret = gen_to_be_invoked.GetRealmPracticelist( _firstType, _secondType );
|
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_GetTagSuccessModel(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
RealmPracticeModel gen_to_be_invoked = (RealmPracticeModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _achievementId = LuaAPI.xlua_tointeger(L, 2);
|
|
TableConfig.SuccessConfig gen_ret = gen_to_be_invoked.GetTagSuccessModel( _achievementId );
|
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_GeTagChinItemModel(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
RealmPracticeModel gen_to_be_invoked = (RealmPracticeModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _Id = LuaAPI.xlua_tointeger(L, 2);
|
|
TableConfig.ItemConfig gen_ret = gen_to_be_invoked.GeTagChinItemModel( _Id );
|
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_SetAchievement(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
RealmPracticeModel gen_to_be_invoked = (RealmPracticeModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int[] _idlist = (int[])translator.GetObject(L, 2, typeof(int[]));
|
Snxxz.UI.Achievement _achieve;
|
|
int gen_ret = gen_to_be_invoked.SetAchievement( _idlist, out _achieve );
|
LuaAPI.xlua_pushinteger(L, gen_ret);
|
translator.Push(L, _achieve);
|
|
|
|
|
return 2;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GetPracticePointStr(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
RealmPracticeModel gen_to_be_invoked = (RealmPracticeModel)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)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
|
{
|
int _firstType = LuaAPI.xlua_tointeger(L, 2);
|
int _secondType = LuaAPI.xlua_tointeger(L, 3);
|
|
string gen_ret = gen_to_be_invoked.GetPracticePointStr( _firstType, _secondType );
|
LuaAPI.lua_pushstring(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
|
{
|
int _firstType = LuaAPI.xlua_tointeger(L, 2);
|
|
string gen_ret = gen_to_be_invoked.GetPracticePointStr( _firstType );
|
LuaAPI.lua_pushstring(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 RealmPracticeModel.GetPracticePointStr!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GetRealmPraPointByType(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
RealmPracticeModel gen_to_be_invoked = (RealmPracticeModel)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4))
|
{
|
int _firstType = LuaAPI.xlua_tointeger(L, 2);
|
int _secondType = LuaAPI.xlua_tointeger(L, 3);
|
bool _isSumRealmPraPoint = LuaAPI.lua_toboolean(L, 4);
|
|
int gen_ret = gen_to_be_invoked.GetRealmPraPointByType( _firstType, _secondType, _isSumRealmPraPoint );
|
LuaAPI.xlua_pushinteger(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
|
{
|
int _firstType = LuaAPI.xlua_tointeger(L, 2);
|
int _secondType = LuaAPI.xlua_tointeger(L, 3);
|
|
int gen_ret = gen_to_be_invoked.GetRealmPraPointByType( _firstType, _secondType );
|
LuaAPI.xlua_pushinteger(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
|
{
|
int _firstType = LuaAPI.xlua_tointeger(L, 2);
|
|
int gen_ret = gen_to_be_invoked.GetRealmPraPointByType( _firstType );
|
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 RealmPracticeModel.GetRealmPraPointByType!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_RealmTypeRedPointCtrl(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
RealmPracticeModel gen_to_be_invoked = (RealmPracticeModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.RealmTypeRedPointCtrl( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_RefreshAchieveState(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
RealmPracticeModel gen_to_be_invoked = (RealmPracticeModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
|
gen_to_be_invoked.RefreshAchieveState( _id );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_IsReachAchieve(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
RealmPracticeModel gen_to_be_invoked = (RealmPracticeModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.Achievement _achieve = (Snxxz.UI.Achievement)translator.GetObject(L, 2, typeof(Snxxz.UI.Achievement));
|
|
bool gen_ret = gen_to_be_invoked.IsReachAchieve( _achieve );
|
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 _g_get_AchieveModel(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
RealmPracticeModel gen_to_be_invoked = (RealmPracticeModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.AchieveModel);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_realmFirstTypeDict(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
RealmPracticeModel gen_to_be_invoked = (RealmPracticeModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.realmFirstTypeDict);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_realmSecondTypeDict(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
RealmPracticeModel gen_to_be_invoked = (RealmPracticeModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.realmSecondTypeDict);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_realmPraRedPoint(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
RealmPracticeModel gen_to_be_invoked = (RealmPracticeModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.realmPraRedPoint);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_realmPraRedPoint(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
RealmPracticeModel gen_to_be_invoked = (RealmPracticeModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.realmPraRedPoint = (Snxxz.UI.Redpoint)translator.GetObject(L, 2, typeof(Snxxz.UI.Redpoint));
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
|
|
|
|
}
|
}
|