#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 BFBattleManagerWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(BF.BattleManager); Utils.BeginObjectRegister(type, L, translator, 0, 42, 6, 3); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Destroy", _m_Destroy); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMono", _m_SetMono); Utils.RegisterFunc(L, Utils.METHOD_IDX, "InitBattle", _m_InitBattle); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMainHero", _m_SetMainHero); Utils.RegisterFunc(L, Utils.METHOD_IDX, "StartFight", _m_StartFight); Utils.RegisterFunc(L, Utils.METHOD_IDX, "EndFight", _m_EndFight); Utils.RegisterFunc(L, Utils.METHOD_IDX, "PauseFight", _m_PauseFight); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResumeFight", _m_ResumeFight); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetShadow", _m_SetShadow); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetHpBar", _m_SetHpBar); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSkillToast", _m_SetSkillToast); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowNormalSkillToast", _m_ShowNormalSkillToast); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowLegacySkillToast", _m_ShowLegacySkillToast); Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveSkillToastSet", _m_RemoveSkillToastSet); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetEffectTextParent", _m_SetEffectTextParent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowEffectNumber", _m_ShowEffectNumber); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateEffectTextRootNode", _m_UpdateEffectTextRootNode); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateUIPosition", _m_UpdateUIPosition); Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddLuaOnPlayFxFunc", _m_AddLuaOnPlayFxFunc); Utils.RegisterFunc(L, Utils.METHOD_IDX, "PlayFx", _m_PlayFx); Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddLuaOnWarningHeroNumChangedFunc", _m_AddLuaOnWarningHeroNumChangedFunc); Utils.RegisterFunc(L, Utils.METHOD_IDX, "WarningHeroNumChanged", _m_WarningHeroNumChanged); Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddEffectHeroWarning", _m_AddEffectHeroWarning); Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveEffectHeroWarning", _m_RemoveEffectHeroWarning); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEffectHeroWarningCount", _m_GetEffectHeroWarningCount); Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddLuaOnWarningNumChangedFunc", _m_AddLuaOnWarningNumChangedFunc); Utils.RegisterFunc(L, Utils.METHOD_IDX, "WarningNumChanged", _m_WarningNumChanged); Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddEffectWarning", _m_AddEffectWarning); Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveEffectWarning", _m_RemoveEffectWarning); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEffectWarningCount", _m_GetEffectWarningCount); Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddToAtkUnitsList", _m_AddToAtkUnitsList); Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveFromAtkUnitsList", _m_RemoveFromAtkUnitsList); Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddToDefUnitsList", _m_AddToDefUnitsList); Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveFromDefUnitsList", _m_RemoveFromDefUnitsList); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetUnitsList", _m_GetUnitsList); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDefUnitsCount", _m_GetDefUnitsCount); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNearestUnit", _m_GetNearestUnit); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNearestDefUnit", _m_GetNearestDefUnit); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNearestDefUnitOnCurrDirection", _m_GetNearestDefUnitOnCurrDirection); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); Utils.RegisterFunc(L, Utils.GETTER_IDX, "PoolHelper", _g_get_PoolHelper); Utils.RegisterFunc(L, Utils.GETTER_IDX, "UpdateEnabled", _g_get_UpdateEnabled); Utils.RegisterFunc(L, Utils.GETTER_IDX, "BattleRoot", _g_get_BattleRoot); Utils.RegisterFunc(L, Utils.GETTER_IDX, "AtkUnitsList", _g_get_AtkUnitsList); Utils.RegisterFunc(L, Utils.GETTER_IDX, "DefUnitsList", _g_get_DefUnitsList); Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsAutoUpdateNumberRootPosition", _g_get_IsAutoUpdateNumberRootPosition); Utils.RegisterFunc(L, Utils.SETTER_IDX, "AtkUnitsList", _s_set_AtkUnitsList); Utils.RegisterFunc(L, Utils.SETTER_IDX, "DefUnitsList", _s_set_DefUnitsList); Utils.RegisterFunc(L, Utils.SETTER_IDX, "IsAutoUpdateNumberRootPosition", _s_set_IsAutoUpdateNumberRootPosition); Utils.EndObjectRegister(type, L, translator, null, null, null, null, null); Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_); Utils.EndClassRegister(type, L, translator); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int __CreateInstance(RealStatePtr L) { return LuaAPI.luaL_error(L, "BF.BattleManager does not have a constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Create_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { var gen_ret = BF.BattleManager.Create( ); 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_Init(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)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_Destroy(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Destroy( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Update(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Update( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetMono(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { UnityEngine.MonoBehaviour _mono = (UnityEngine.MonoBehaviour)translator.GetObject(L, 2, typeof(UnityEngine.MonoBehaviour)); gen_to_be_invoked.SetMono( _mono ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_InitBattle(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { UnityEngine.Transform _sceneNode = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); UnityEngine.Camera _uiCamera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); UnityEngine.Camera _battleCamera = (UnityEngine.Camera)translator.GetObject(L, 4, typeof(UnityEngine.Camera)); gen_to_be_invoked.InitBattle( _sceneNode, _uiCamera, _battleCamera ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetMainHero(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { BF.BattleControlHero _mainHero = (BF.BattleControlHero)translator.GetObject(L, 2, typeof(BF.BattleControlHero)); gen_to_be_invoked.SetMainHero( _mainHero ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_StartFight(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.StartFight( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_EndFight(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.EndFight( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_PauseFight(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.PauseFight( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ResumeFight(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.ResumeFight( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetShadow(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { UnityEngine.GameObject _shadow = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); gen_to_be_invoked.SetShadow( _shadow ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetHpBar(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { UnityEngine.GameObject _hpBarRoot = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); UnityEngine.GameObject _hpAtk = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject)); UnityEngine.GameObject _hpDef = (UnityEngine.GameObject)translator.GetObject(L, 4, typeof(UnityEngine.GameObject)); gen_to_be_invoked.SetHpBar( _hpBarRoot, _hpAtk, _hpDef ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetSkillToast(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { UnityEngine.GameObject _skillToastRoot = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); UnityEngine.GameObject _skillToast = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject)); gen_to_be_invoked.SetSkillToast( _skillToastRoot, _skillToast ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ShowNormalSkillToast(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { string _iconName = LuaAPI.lua_tostring(L, 2); string _str = LuaAPI.lua_tostring(L, 3); float _x = (float)LuaAPI.lua_tonumber(L, 4); float _y = (float)LuaAPI.lua_tonumber(L, 5); float _z = (float)LuaAPI.lua_tonumber(L, 6); float _addY = (float)LuaAPI.lua_tonumber(L, 7); gen_to_be_invoked.ShowNormalSkillToast( _iconName, _str, _x, _y, _z, _addY ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ShowLegacySkillToast(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { string _qltName = LuaAPI.lua_tostring(L, 2); string _iconName = LuaAPI.lua_tostring(L, 3); string _str = LuaAPI.lua_tostring(L, 4); float _x = (float)LuaAPI.lua_tonumber(L, 5); float _y = (float)LuaAPI.lua_tonumber(L, 6); float _z = (float)LuaAPI.lua_tonumber(L, 7); float _addY = (float)LuaAPI.lua_tonumber(L, 8); gen_to_be_invoked.ShowLegacySkillToast( _qltName, _iconName, _str, _x, _y, _z, _addY ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_RemoveSkillToastSet(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { BF.BattleSkillToast _skillToast = (BF.BattleSkillToast)translator.GetObject(L, 2, typeof(BF.BattleSkillToast)); gen_to_be_invoked.RemoveSkillToastSet( _skillToast ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetEffectTextParent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { UnityEngine.GameObject _numberRoot = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); UnityEngine.GameObject _effectText = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject)); UnityEngine.GameObject _effectTextRed = (UnityEngine.GameObject)translator.GetObject(L, 4, typeof(UnityEngine.GameObject)); UnityEngine.GameObject _effectTextGreen = (UnityEngine.GameObject)translator.GetObject(L, 5, typeof(UnityEngine.GameObject)); UnityEngine.GameObject _effectTextYellow = (UnityEngine.GameObject)translator.GetObject(L, 6, typeof(UnityEngine.GameObject)); gen_to_be_invoked.SetEffectTextParent( _numberRoot, _effectText, _effectTextRed, _effectTextGreen, _effectTextYellow ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ShowEffectNumber(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { int _colorType = LuaAPI.xlua_tointeger(L, 2); int _effectType = LuaAPI.xlua_tointeger(L, 3); string _effectNumber = LuaAPI.lua_tostring(L, 4); float _x = (float)LuaAPI.lua_tonumber(L, 5); float _y = (float)LuaAPI.lua_tonumber(L, 6); float _z = (float)LuaAPI.lua_tonumber(L, 7); float _addY = (float)LuaAPI.lua_tonumber(L, 8); gen_to_be_invoked.ShowEffectNumber( _colorType, _effectType, _effectNumber, _x, _y, _z, _addY ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_UpdateEffectTextRootNode(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.UpdateEffectTextRootNode( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_UpdateUIPosition(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { UnityEngine.Vector3 _worldPosition;translator.Get(L, 2, out _worldPosition); float _addY = (float)LuaAPI.lua_tonumber(L, 3); UnityEngine.RectTransform _uiTransform = (UnityEngine.RectTransform)translator.GetObject(L, 4, typeof(UnityEngine.RectTransform)); gen_to_be_invoked.UpdateUIPosition( _worldPosition, _addY, _uiTransform ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_AddLuaOnPlayFxFunc(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { System.Action _luaFunc = translator.GetDelegate>(L, 2); gen_to_be_invoked.AddLuaOnPlayFxFunc( _luaFunc ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_PlayFx(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { int _fxId = LuaAPI.xlua_tointeger(L, 2); int _direction = LuaAPI.xlua_tointeger(L, 3); float _x = (float)LuaAPI.lua_tonumber(L, 4); float _z = (float)LuaAPI.lua_tonumber(L, 5); gen_to_be_invoked.PlayFx( _fxId, _direction, _x, _z ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_AddLuaOnWarningHeroNumChangedFunc(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { System.Action _luaFunc = translator.GetDelegate>(L, 2); gen_to_be_invoked.AddLuaOnWarningHeroNumChangedFunc( _luaFunc ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_WarningHeroNumChanged(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { int _changedNum = LuaAPI.xlua_tointeger(L, 2); int _totalNum = LuaAPI.xlua_tointeger(L, 3); gen_to_be_invoked.WarningHeroNumChanged( _changedNum, _totalNum ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_AddEffectHeroWarning(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { int _uniqueId = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.AddEffectHeroWarning( _uniqueId ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_RemoveEffectHeroWarning(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { int _uniqueId = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.RemoveEffectHeroWarning( _uniqueId ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetEffectHeroWarningCount(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.GetEffectHeroWarningCount( ); 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_AddLuaOnWarningNumChangedFunc(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { System.Action _luaFunc = translator.GetDelegate>(L, 2); gen_to_be_invoked.AddLuaOnWarningNumChangedFunc( _luaFunc ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_WarningNumChanged(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { int _changedNum = LuaAPI.xlua_tointeger(L, 2); int _totalNum = LuaAPI.xlua_tointeger(L, 3); gen_to_be_invoked.WarningNumChanged( _changedNum, _totalNum ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_AddEffectWarning(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { int _uniqueId = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.AddEffectWarning( _uniqueId ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_RemoveEffectWarning(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { int _uniqueId = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.RemoveEffectWarning( _uniqueId ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetEffectWarningCount(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.GetEffectWarningCount( ); 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_AddToAtkUnitsList(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { BF.BattleControlUnit _unit = (BF.BattleControlUnit)translator.GetObject(L, 2, typeof(BF.BattleControlUnit)); gen_to_be_invoked.AddToAtkUnitsList( _unit ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_RemoveFromAtkUnitsList(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { BF.BattleControlUnit _unit = (BF.BattleControlUnit)translator.GetObject(L, 2, typeof(BF.BattleControlUnit)); gen_to_be_invoked.RemoveFromAtkUnitsList( _unit ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_AddToDefUnitsList(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { BF.BattleControlUnit _unit = (BF.BattleControlUnit)translator.GetObject(L, 2, typeof(BF.BattleControlUnit)); gen_to_be_invoked.AddToDefUnitsList( _unit ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_RemoveFromDefUnitsList(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { BF.BattleControlUnit _unit = (BF.BattleControlUnit)translator.GetObject(L, 2, typeof(BF.BattleControlUnit)); gen_to_be_invoked.RemoveFromDefUnitsList( _unit ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetUnitsList(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { int _side = LuaAPI.xlua_tointeger(L, 2); var gen_ret = gen_to_be_invoked.GetUnitsList( _side ); 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_GetDefUnitsCount(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.GetDefUnitsCount( ); 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_GetNearestUnit(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { int _side = LuaAPI.xlua_tointeger(L, 2); var gen_ret = gen_to_be_invoked.GetNearestUnit( _side ); 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_GetNearestDefUnit(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { float _x = (float)LuaAPI.lua_tonumber(L, 2); float _z = (float)LuaAPI.lua_tonumber(L, 3); BF.BattleControlUnit _leftUnit; BF.BattleControlUnit _rightUnit; gen_to_be_invoked.GetNearestDefUnit( _x, _z, out _leftUnit, out _rightUnit ); translator.Push(L, _leftUnit); translator.Push(L, _rightUnit); return 2; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetNearestDefUnitOnCurrDirection(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { float _x = (float)LuaAPI.lua_tonumber(L, 2); float _z = (float)LuaAPI.lua_tonumber(L, 3); int _direction = LuaAPI.xlua_tointeger(L, 4); var gen_ret = gen_to_be_invoked.GetNearestDefUnitOnCurrDirection( _x, _z, _direction ); 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_Clear(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Clear( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_PoolHelper(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.PoolHelper); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_UpdateEnabled(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.UpdateEnabled); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_BattleRoot(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.BattleRoot); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_AtkUnitsList(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.AtkUnitsList); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_DefUnitsList(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.DefUnitsList); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_IsAutoUpdateNumberRootPosition(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsAutoUpdateNumberRootPosition); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_AtkUnitsList(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); gen_to_be_invoked.AtkUnitsList = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_DefUnitsList(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); gen_to_be_invoked.DefUnitsList = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_IsAutoUpdateNumberRootPosition(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BF.BattleManager gen_to_be_invoked = (BF.BattleManager)translator.FastGetCSObj(L, 1); gen_to_be_invoked.IsAutoUpdateNumberRootPosition = LuaAPI.lua_toboolean(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } } }