static int Update(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); PlayerState_Run obj = (PlayerState_Run)LuaScriptMgr.GetNetObjectSelf(L, 1, "PlayerState_Run"); IM.Number arg0 = (IM.Number)LuaScriptMgr.GetNetObject(L, 2, typeof(IM.Number)); obj.Update(arg0); return(0); }
static int OnEnter(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); PlayerState_Run obj = (PlayerState_Run)LuaScriptMgr.GetNetObjectSelf(L, 1, "PlayerState_Run"); PlayerState arg0 = (PlayerState)LuaScriptMgr.GetNetObject(L, 2, typeof(PlayerState)); obj.OnEnter(arg0); return(0); }
public override bool Check() { PlayerState_Run state = MyState as PlayerState_Run; if (state.frame > 50) { return(true); } return(false); }
public override void MakeFsm() { CurFsm = new PlayerFsm(path); CurFsm.m_DoDrawSelected = true; PlayerState_Walk walk = new PlayerState_Walk(PlayerStateID.Walk.GetHashCode()); walk.AddTransition(new Tr_Move_Walk2Run(PlayerStateID.Run.GetHashCode())); CurFsm.AddState(walk); PlayerState_Run run = new PlayerState_Run(PlayerStateID.Run.GetHashCode()); run.AddTransition(new Tr_Move_Run2Walk(PlayerStateID.Walk.GetHashCode())); CurFsm.AddState(run); }
public override void MakeFsm() { m_Fsm = new PlayerFsm(path); m_Fsm.m_DoDrawSelected = true; PlayerState_Walk walk = new PlayerState_Walk(); walk.AddTransition(new Tr_Move_Walk2Run()); m_Fsm.AddState(walk); PlayerState_Run run = new PlayerState_Run(); run.AddTransition(new Tr_Move_Run2Walk()); m_Fsm.AddState(run); }
static int _CreatePlayerState_Run(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 2) { PlayerStateMachine arg0 = (PlayerStateMachine)LuaScriptMgr.GetNetObject(L, 1, typeof(PlayerStateMachine)); GameMatch arg1 = (GameMatch)LuaScriptMgr.GetNetObject(L, 2, typeof(GameMatch)); PlayerState_Run obj = new PlayerState_Run(arg0, arg1); LuaScriptMgr.PushObject(L, obj); return(1); } else { LuaDLL.luaL_error(L, "invalid arguments to method: PlayerState_Run.New"); } return(0); }
static int set_m_type(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); PlayerState_Run obj = (PlayerState_Run)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name m_type"); } else { LuaDLL.luaL_error(L, "attempt to index m_type on a nil value"); } } obj.m_type = (PlayerState_Run.Type)LuaScriptMgr.GetNetObject(L, 3, typeof(PlayerState_Run.Type)); return(0); }