refactor(character): 重构角色动作与动画系统
- 移除自动回退动作生成逻辑,改为严格检查动作定义 - 增加动作资源缺失时的详细错误报告机制 - 统一输入事件处理接口,优化角色对象生命周期管理 - 改进动画标签管理,移除隐式回退逻辑 - 增强状态机对无效动作的处理能力
This commit is contained in:
@@ -10,7 +10,7 @@ namespace frostbite2D {
|
||||
class CharacterInputRouter {
|
||||
public:
|
||||
bool OnKeyDown(const KeyEvent& event);
|
||||
bool OnKeyUp(KeyCode keyCode);
|
||||
bool OnKeyUp(const KeyUpEvent& event);
|
||||
bool OnJoystickAxis(const JoystickAxisEvent& event);
|
||||
bool OnJoystickButtonDown(const JoystickButtonDownEvent& event);
|
||||
bool OnJoystickButtonUp(const JoystickButtonUpEvent& event);
|
||||
|
||||
Reference in New Issue
Block a user