- 补充游戏核心逻辑

- 完成 TodOList P0
    - 添加游戏内控制台便于调试
    - 增加敌人互斥机制提高运算负载
    - 优化互斥算法将游戏性能基准线拉到 1k 敌人
This commit is contained in:
SepComet
2026-02-20 18:08:27 +08:00
parent b4bc8b0445
commit 3742110e9a
196 changed files with 4868 additions and 31326 deletions
@@ -35,6 +35,8 @@ namespace Procedure
private Dictionary<GameStateType, GameStateBase> _gameStates;
public Player Player;
public GameStateBase CurrentGameState => _gameStates[_currentGameState];
private void InitGameState()
{
_gameStates = new Dictionary<GameStateType, GameStateBase>
@@ -93,7 +95,7 @@ namespace Procedure
CurrentLevel = 1;
_currentPlayerData = new PlayerData(-1, 1001);
GameEntry.Entity.ShowPlayer(_currentPlayerData);
GameEntry.UIRouter.OpenUI(UIFormType.HudForm);
}
@@ -127,11 +129,11 @@ namespace Procedure
_gameStates.Clear();
GameEntry.UIRouter.CloseUI(UIFormType.HudForm);
_hudForm = null;
Player = null;
_procedureOwner = null;
GameEntry.Event.Unsubscribe(OpenUIFormSuccessEventArgs.EventId, OpenUIFormSuccess);