mirror of
https://github.com/motajs/template.git
synced 2026-11-05 00:34:34 +08:00
refactor: 按键系统
This commit is contained in:
1 parent
d5b2a820d8
commit
564f53d82a
15 files changed
+569
-419
No files matched your search
@@ -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>();
|
||||
|
||||
Reference in new issue
Block a user