feat: RSC TurntimeQueue

This commit is contained in:
2024-03-09 09:19:28 +00:00
parent 3d67f8bb55
commit ff23cd27b8
2 changed files with 42 additions and 8 deletions
+4 -1
View File
@@ -19,7 +19,9 @@ export interface IResourceController {
troop(id: TroopID, nation: NationID): Troop | undefined;
general(id: GeneralID): General | undefined;
upcomingGeneral(): General | undefined;
peekGeneralTurntimeQueue(): General | undefined;
popGeneralTurntimeQueue(): General | undefined;
insertGeneralTurntimeQueue(general: General, maybeTail: boolean): void;
gameEnv(): GameEnv;
@@ -50,6 +52,7 @@ export interface IResourceController {
createNation(raw: INationEntity): Nation;
createTroop(raw: ITroopEntity): Troop;
_getAllChanges(): Record<
ValidEntityType,
Map<number, [op: 'insert' | 'update' | 'delete', value: LazyEntityUpdater<any>]>