refactor: 按键系统

This commit is contained in:
AncTe committed 2026-10-22 22:25:59 +08:00
1 parent d5b2a820d8
commit 564f53d82a
15 files changed
+569 -419

No files matched your search

+5 -1
View File
@@ -25,7 +25,9 @@ import {
TextureManager,
ISaveSystem,
SaveSystem,
IGameUIPropsBase
IGameUIPropsBase,
ClientHotkey,
IClientHotkey
} from '@user/client-base';
import {
IMapRenderer,
@@ -59,6 +61,7 @@ export class ClientCore extends CoreState implements IClientCore {
readonly mainMapExtension: IMapExtensionManager;
readonly sceneController: IUIController<IGameUIPropsBase>;
readonly mainUIController: IUIController<IGameUIPropsBase>;
readonly hotkey: IClientHotkey;
// Layer 5 渲染顶层 - 目前没东西
@@ -79,6 +82,7 @@ export class ClientCore extends CoreState implements IClientCore {
config.tilesetReserve,
config.tilesetUnit
);
this.hotkey = new ClientHotkey();
this.rafExcitation = new RafExcitation();
this.excitationDivider = new ExcitationDivider<number>();