#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 HeavenBattleModelWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(HeavenBattleModel);
|
Utils.BeginObjectRegister(type, L, translator, 0, 26, 8, 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, "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, "SetHeavenBattleModel", _m_SetHeavenBattleModel);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetHeavenBattlePlayerModel", _m_SetHeavenBattlePlayerModel);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBattleStart", _m_SetBattleStart);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendSignQuest", _m_SendSignQuest);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendBettingQuest", _m_SendBettingQuest);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendGetAwardQuest", _m_SendGetAwardQuest);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendCampSoreQuest", _m_SendCampSoreQuest);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendBattleInfoQuest", _m_SendBattleInfoQuest);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshBattleInfo", _m_RefreshBattleInfo);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBatterInfoListByType", _m_GetBatterInfoListByType);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetActivityRemainTime", _m_GetActivityRemainTime);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAchievelist", _m_GetAchievelist);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAchievement", _m_SetAchievement);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsReachAchieve", _m_IsReachAchieve);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "AchieveRedPointCtrl", _m_AchieveRedPointCtrl);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshAchieveState", _m_RefreshAchieveState);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetHeavenBattleDailyRed", _m_SetHeavenBattleDailyRed);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshGameRecInfoAct", _e_RefreshGameRecInfoAct);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshBattleInfoAct", _e_RefreshBattleInfoAct);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshPlayerBattleInfoAct", _e_RefreshPlayerBattleInfoAct);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshBattlePrepareTimeAct", _e_RefreshBattlePrepareTimeAct);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "heavenAwardDict", _g_get_heavenAwardDict);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "campVicRewardDict", _g_get_campVicRewardDict);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "campFailRewardDict", _g_get_campFailRewardDict);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "battlePrepareTime", _g_get_battlePrepareTime);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsBattlePrepare", _g_get_IsBattlePrepare);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "AchieveModel", _g_get_AchieveModel);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "heavenBattleTargets", _g_get_heavenBattleTargets);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "XMZZAchieveRed", _g_get_XMZZAchieveRed);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "IsBattlePrepare", _s_set_IsBattlePrepare);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "heavenBattleTargets", _s_set_heavenBattleTargets);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "XMZZAchieveRed", _s_set_XMZZAchieveRed);
|
|
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
null, null, null);
|
|
Utils.BeginClassRegister(type, L, __CreateInstance, 5, 0, 0);
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "HEAVEBATTLE_MAPID", HeavenBattleModel.HEAVEBATTLE_MAPID);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "HEAVEBATTLE_TargetID", HeavenBattleModel.HEAVEBATTLE_TargetID);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "HeavenBattleDailyId", HeavenBattleModel.HeavenBattleDailyId);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RedPoint_XMZZAchieve_Key", HeavenBattleModel.RedPoint_XMZZAchieve_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)
|
{
|
|
HeavenBattleModel gen_ret = new HeavenBattleModel();
|
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 HeavenBattleModel constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Init(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)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);
|
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)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);
|
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)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);
|
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)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);
|
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)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_SetHeavenBattleModel(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
HAC02_tagGCXMZZInfo _info = (HAC02_tagGCXMZZInfo)translator.GetObject(L, 2, typeof(HAC02_tagGCXMZZInfo));
|
|
gen_to_be_invoked.SetHeavenBattleModel( _info );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SetHeavenBattlePlayerModel(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
HAC03_tagGCXMZZSelfInfo _info = (HAC03_tagGCXMZZSelfInfo)translator.GetObject(L, 2, typeof(HAC03_tagGCXMZZSelfInfo));
|
|
gen_to_be_invoked.SetHeavenBattlePlayerModel( _info );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SetBattleStart(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.SetBattleStart( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SendSignQuest(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.SendSignQuest( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SendBettingQuest(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _betIndex = LuaAPI.xlua_tointeger(L, 2);
|
int _camp = LuaAPI.xlua_tointeger(L, 3);
|
|
gen_to_be_invoked.SendBettingQuest( _betIndex, _camp );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SendGetAwardQuest(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _victoryCnt = LuaAPI.xlua_tointeger(L, 2);
|
|
gen_to_be_invoked.SendGetAwardQuest( _victoryCnt );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SendCampSoreQuest(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.SendCampSoreQuest( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SendBattleInfoQuest(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.SendBattleInfoQuest( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_RefreshBattleInfo(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
HA003_tagUniversalGameRecInfo _info = (HA003_tagUniversalGameRecInfo)translator.GetObject(L, 2, typeof(HA003_tagUniversalGameRecInfo));
|
|
gen_to_be_invoked.RefreshBattleInfo( _info );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GetBatterInfoListByType(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _type = LuaAPI.xlua_tointeger(L, 2);
|
|
System.Collections.Generic.List<GameRecInfo> gen_ret = gen_to_be_invoked.GetBatterInfoListByType( _type );
|
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_GetActivityRemainTime(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
int gen_ret = gen_to_be_invoked.GetActivityRemainTime( );
|
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_GetAchievelist(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
System.Collections.Generic.List<TableConfig.XMZZAchievementConfig> gen_ret = gen_to_be_invoked.GetAchievelist( );
|
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);
|
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)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_IsReachAchieve(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)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 _m_AchieveRedPointCtrl(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.AchieveRedPointCtrl( );
|
|
|
|
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);
|
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)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_SetHeavenBattleDailyRed(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.SetHeavenBattleDailyRed( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_heavenAwardDict(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.heavenAwardDict);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_campVicRewardDict(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.campVicRewardDict);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_campFailRewardDict(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.campFailRewardDict);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_battlePrepareTime(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.battlePrepareTime);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_IsBattlePrepare(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsBattlePrepare);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_AchieveModel(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)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_heavenBattleTargets(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.heavenBattleTargets);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_XMZZAchieveRed(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.XMZZAchieveRed);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_IsBattlePrepare(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.IsBattlePrepare = 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_heavenBattleTargets(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.heavenBattleTargets = (string[])translator.GetObject(L, 2, typeof(string[]));
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_XMZZAchieveRed(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.XMZZAchieveRed = (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;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_RefreshGameRecInfoAct(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
System.Action<int> gen_delegate = translator.GetDelegate<System.Action<int>>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action<int>!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.RefreshGameRecInfoAct += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.RefreshGameRecInfoAct -= 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 HeavenBattleModel.RefreshGameRecInfoAct!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_RefreshBattleInfoAct(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)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.RefreshBattleInfoAct += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.RefreshBattleInfoAct -= 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 HeavenBattleModel.RefreshBattleInfoAct!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_RefreshPlayerBattleInfoAct(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)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.RefreshPlayerBattleInfoAct += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.RefreshPlayerBattleInfoAct -= 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 HeavenBattleModel.RefreshPlayerBattleInfoAct!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_RefreshBattlePrepareTimeAct(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
HeavenBattleModel gen_to_be_invoked = (HeavenBattleModel)translator.FastGetCSObj(L, 1);
|
System.Action<int> gen_delegate = translator.GetDelegate<System.Action<int>>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action<int>!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.RefreshBattlePrepareTimeAct += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.RefreshBattlePrepareTimeAct -= 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 HeavenBattleModel.RefreshBattlePrepareTimeAct!");
|
return 0;
|
}
|
|
|
|
}
|
}
|