static int ChangeState(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2 && TypeChecker.CheckTypes <Mugen.PlayerState>(L, 2)) { PlayerDisplay obj = (PlayerDisplay)ToLua.CheckObject <PlayerDisplay>(L, 1); Mugen.PlayerState arg0 = (Mugen.PlayerState)ToLua.ToObject(L, 2); bool o = obj.ChangeState(arg0); LuaDLL.lua_pushboolean(L, o); return(1); } else if (count == 2 && TypeChecker.CheckTypes <int>(L, 2)) { PlayerDisplay obj = (PlayerDisplay)ToLua.CheckObject <PlayerDisplay>(L, 1); int arg0 = (int)LuaDLL.lua_tonumber(L, 2); bool o = obj.ChangeState(arg0); LuaDLL.lua_pushboolean(L, o); return(1); } else if (count == 3 && TypeChecker.CheckTypes <int, bool>(L, 2)) { PlayerDisplay obj = (PlayerDisplay)ToLua.CheckObject <PlayerDisplay>(L, 1); int arg0 = (int)LuaDLL.lua_tonumber(L, 2); bool arg1 = LuaDLL.lua_toboolean(L, 3); bool o = obj.ChangeState(arg0, arg1); LuaDLL.lua_pushboolean(L, o); return(1); } else if (count == 3 && TypeChecker.CheckTypes <Mugen.PlayerState, bool>(L, 2)) { PlayerDisplay obj = (PlayerDisplay)ToLua.CheckObject <PlayerDisplay>(L, 1); Mugen.PlayerState arg0 = (Mugen.PlayerState)ToLua.ToObject(L, 2); bool arg1 = LuaDLL.lua_toboolean(L, 3); bool o = obj.ChangeState(arg0, arg1); LuaDLL.lua_pushboolean(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: PlayerDisplay.ChangeState")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int HasAniGroup(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); PlayerDisplay obj = (PlayerDisplay)ToLua.CheckObject <PlayerDisplay>(L, 1); Mugen.PlayerState arg0 = (Mugen.PlayerState)ToLua.CheckObject(L, 2, typeof(Mugen.PlayerState)); bool o = obj.HasAniGroup(arg0); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int PlayAni(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { PlayerDisplay obj = (PlayerDisplay)ToLua.CheckObject <PlayerDisplay>(L, 1); Mugen.PlayerState arg0 = (Mugen.PlayerState)ToLua.CheckObject(L, 2, typeof(Mugen.PlayerState)); bool o = obj.PlayAni(arg0); LuaDLL.lua_pushboolean(L, o); return(1); } else if (count == 3) { PlayerDisplay obj = (PlayerDisplay)ToLua.CheckObject <PlayerDisplay>(L, 1); Mugen.PlayerState arg0 = (Mugen.PlayerState)ToLua.CheckObject(L, 2, typeof(Mugen.PlayerState)); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); bool o = obj.PlayAni(arg0, arg1); LuaDLL.lua_pushboolean(L, o); return(1); } else if (count == 4) { PlayerDisplay obj = (PlayerDisplay)ToLua.CheckObject <PlayerDisplay>(L, 1); Mugen.PlayerState arg0 = (Mugen.PlayerState)ToLua.CheckObject(L, 2, typeof(Mugen.PlayerState)); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); bool arg2 = LuaDLL.luaL_checkboolean(L, 4); bool o = obj.PlayAni(arg0, arg1, arg2); LuaDLL.lua_pushboolean(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: PlayerDisplay.PlayAni")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }