#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 BFBattleConfigureWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(BF.BattleConfigure); Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); Utils.EndObjectRegister(type, L, translator, null, null, null, null, null); Utils.BeginClassRegister(type, L, __CreateInstance, 1, 26, 26); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "TimeScale", _g_get_TimeScale); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "NormalMoveTime", _g_get_NormalMoveTime); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "NormalBackTime", _g_get_NormalBackTime); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "CameraMinX", _g_get_CameraMinX); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "CameraMaxX", _g_get_CameraMaxX); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "SceneMinX", _g_get_SceneMinX); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "SceneMaxX", _g_get_SceneMaxX); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "SceneMinZ", _g_get_SceneMinZ); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "SceneMaxZ", _g_get_SceneMaxZ); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "DistanceAttack", _g_get_DistanceAttack); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "DistanceDash", _g_get_DistanceDash); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "DistanceBack", _g_get_DistanceBack); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "BattleCenterPosX", _g_get_BattleCenterPosX); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "WorldToScreenWidth", _g_get_WorldToScreenWidth); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "CheckMonsterTowardInterval", _g_get_CheckMonsterTowardInterval); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "CheckAITargetPositionInterval", _g_get_CheckAITargetPositionInterval); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "MonsterScaleFactorXZ", _g_get_MonsterScaleFactorXZ); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "SceneMidX", _g_get_SceneMidX); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "SceneMidZ", _g_get_SceneMidZ); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "DistanceHitBack", _g_get_DistanceHitBack); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "DistanceHitFly", _g_get_DistanceHitFly); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "HeightHitFly", _g_get_HeightHitFly); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "TimeHitFly", _g_get_TimeHitFly); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "TimeLie", _g_get_TimeLie); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "HitBackTime", _g_get_HitBackTime); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "HitBackSpeed", _g_get_HitBackSpeed); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "TimeScale", _s_set_TimeScale); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "NormalMoveTime", _s_set_NormalMoveTime); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "NormalBackTime", _s_set_NormalBackTime); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "CameraMinX", _s_set_CameraMinX); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "CameraMaxX", _s_set_CameraMaxX); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "SceneMinX", _s_set_SceneMinX); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "SceneMaxX", _s_set_SceneMaxX); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "SceneMinZ", _s_set_SceneMinZ); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "SceneMaxZ", _s_set_SceneMaxZ); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "DistanceAttack", _s_set_DistanceAttack); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "DistanceDash", _s_set_DistanceDash); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "DistanceBack", _s_set_DistanceBack); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "BattleCenterPosX", _s_set_BattleCenterPosX); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "WorldToScreenWidth", _s_set_WorldToScreenWidth); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "CheckMonsterTowardInterval", _s_set_CheckMonsterTowardInterval); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "CheckAITargetPositionInterval", _s_set_CheckAITargetPositionInterval); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "MonsterScaleFactorXZ", _s_set_MonsterScaleFactorXZ); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "SceneMidX", _s_set_SceneMidX); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "SceneMidZ", _s_set_SceneMidZ); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "DistanceHitBack", _s_set_DistanceHitBack); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "DistanceHitFly", _s_set_DistanceHitFly); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "HeightHitFly", _s_set_HeightHitFly); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "TimeHitFly", _s_set_TimeHitFly); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "TimeLie", _s_set_TimeLie); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "HitBackTime", _s_set_HitBackTime); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "HitBackSpeed", _s_set_HitBackSpeed); Utils.EndClassRegister(type, L, translator); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int __CreateInstance(RealStatePtr L) { return LuaAPI.luaL_error(L, "BF.BattleConfigure does not have a constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_TimeScale(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.TimeScale); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_NormalMoveTime(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.NormalMoveTime); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_NormalBackTime(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.NormalBackTime); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_CameraMinX(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.CameraMinX); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_CameraMaxX(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.CameraMaxX); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_SceneMinX(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.SceneMinX); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_SceneMaxX(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.SceneMaxX); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_SceneMinZ(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.SceneMinZ); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_SceneMaxZ(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.SceneMaxZ); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_DistanceAttack(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.DistanceAttack); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_DistanceDash(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.DistanceDash); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_DistanceBack(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.DistanceBack); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_BattleCenterPosX(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.BattleCenterPosX); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_WorldToScreenWidth(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.WorldToScreenWidth); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_CheckMonsterTowardInterval(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.CheckMonsterTowardInterval); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_CheckAITargetPositionInterval(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.CheckAITargetPositionInterval); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_MonsterScaleFactorXZ(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.MonsterScaleFactorXZ); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_SceneMidX(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.SceneMidX); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_SceneMidZ(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.SceneMidZ); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_DistanceHitBack(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.DistanceHitBack); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_DistanceHitFly(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.DistanceHitFly); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_HeightHitFly(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.HeightHitFly); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_TimeHitFly(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.TimeHitFly); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_TimeLie(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.TimeLie); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_HitBackTime(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.HitBackTime); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_HitBackSpeed(RealStatePtr L) { try { LuaAPI.lua_pushnumber(L, BF.BattleConfigure.HitBackSpeed); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_TimeScale(RealStatePtr L) { try { BF.BattleConfigure.TimeScale = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_NormalMoveTime(RealStatePtr L) { try { BF.BattleConfigure.NormalMoveTime = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_NormalBackTime(RealStatePtr L) { try { BF.BattleConfigure.NormalBackTime = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_CameraMinX(RealStatePtr L) { try { BF.BattleConfigure.CameraMinX = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_CameraMaxX(RealStatePtr L) { try { BF.BattleConfigure.CameraMaxX = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_SceneMinX(RealStatePtr L) { try { BF.BattleConfigure.SceneMinX = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_SceneMaxX(RealStatePtr L) { try { BF.BattleConfigure.SceneMaxX = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_SceneMinZ(RealStatePtr L) { try { BF.BattleConfigure.SceneMinZ = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_SceneMaxZ(RealStatePtr L) { try { BF.BattleConfigure.SceneMaxZ = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_DistanceAttack(RealStatePtr L) { try { BF.BattleConfigure.DistanceAttack = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_DistanceDash(RealStatePtr L) { try { BF.BattleConfigure.DistanceDash = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_DistanceBack(RealStatePtr L) { try { BF.BattleConfigure.DistanceBack = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_BattleCenterPosX(RealStatePtr L) { try { BF.BattleConfigure.BattleCenterPosX = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_WorldToScreenWidth(RealStatePtr L) { try { BF.BattleConfigure.WorldToScreenWidth = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_CheckMonsterTowardInterval(RealStatePtr L) { try { BF.BattleConfigure.CheckMonsterTowardInterval = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_CheckAITargetPositionInterval(RealStatePtr L) { try { BF.BattleConfigure.CheckAITargetPositionInterval = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_MonsterScaleFactorXZ(RealStatePtr L) { try { BF.BattleConfigure.MonsterScaleFactorXZ = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_SceneMidX(RealStatePtr L) { try { BF.BattleConfigure.SceneMidX = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_SceneMidZ(RealStatePtr L) { try { BF.BattleConfigure.SceneMidZ = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_DistanceHitBack(RealStatePtr L) { try { BF.BattleConfigure.DistanceHitBack = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_DistanceHitFly(RealStatePtr L) { try { BF.BattleConfigure.DistanceHitFly = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_HeightHitFly(RealStatePtr L) { try { BF.BattleConfigure.HeightHitFly = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_TimeHitFly(RealStatePtr L) { try { BF.BattleConfigure.TimeHitFly = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_TimeLie(RealStatePtr L) { try { BF.BattleConfigure.TimeLie = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_HitBackTime(RealStatePtr L) { try { BF.BattleConfigure.HitBackTime = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_HitBackSpeed(RealStatePtr L) { try { BF.BattleConfigure.HitBackSpeed = (float)LuaAPI.lua_tonumber(L, 1); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } } }