static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); FightManager.MemberType o = (FightManager.MemberType)arg0; ToLua.Push(L, o); return(1); }
static int DoMemberDeadAction(IntPtr L) { try { ToLua.CheckArgsCount(L, 4); FightManager obj = (FightManager)ToLua.CheckObject(L, 1, typeof(FightManager)); UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.GameObject)); int arg1 = (int)LuaDLL.luaL_checknumber(L, 3); FightManager.MemberType arg2 = (FightManager.MemberType)ToLua.CheckObject(L, 4, typeof(FightManager.MemberType)); obj.DoMemberDeadAction(arg0, arg1, arg2); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetPos(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); FightManager obj = (FightManager)ToLua.CheckObject(L, 1, typeof(FightManager)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); FightManager.MemberType arg1 = (FightManager.MemberType)ToLua.CheckObject(L, 3, typeof(FightManager.MemberType)); UnityEngine.Vector3 o = obj.GetPos(arg0, arg1); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetMemberPos(IntPtr L) { try { ToLua.CheckArgsCount(L, 4); FightManager obj = (FightManager)ToLua.CheckObject(L, 1, typeof(FightManager)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); FightManager.MemberType arg1 = (FightManager.MemberType)ToLua.CheckObject(L, 3, typeof(FightManager.MemberType)); UnityEngine.Vector3 arg2 = ToLua.ToVector3(L, 4); obj.SetMemberPos(arg0, arg1, arg2); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }