용어 재정의
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
import type { IResourceController } from "@sammo/game_logic";
|
||||
import type { City } from "@sammo/game_logic/src/City.js";
|
||||
import type { CityID, GeneralID, NationID, TroopID } from "@sammo/game_logic/src/defs.js";
|
||||
import type { CityID, GeneralID, NationID, SquadID } from "@sammo/game_logic/src/defs.js";
|
||||
import type { IGeneralEntity } from "@sammo/game_logic/src/Entity/GeneralEntity.js";
|
||||
import type { ICityEntity, ValidEntityType } from "@sammo/game_logic/src/Entity/index.js";
|
||||
import type { INationEntity } from "@sammo/game_logic/src/Entity/NationEntity.js";
|
||||
import type { IReservedTurn } from "@sammo/game_logic/src/Entity/ReservedTurn.js";
|
||||
import type { ITroopEntity } from "@sammo/game_logic/src/Entity/TroopEntity.js";
|
||||
import type { ISquadEntity } from "@sammo/game_logic/src/Entity/SquadEntity.js";
|
||||
import type { GameEnv } from "@sammo/game_logic/src/GameEnv.js";
|
||||
import { General } from "@sammo/game_logic/src/General.js";
|
||||
import type { LazyEntityUpdater } from "@sammo/game_logic/src/LazyEntityUpdater.js";
|
||||
import type { Nation } from "@sammo/game_logic/src/Nation.js";
|
||||
import type { Troop } from "@sammo/game_logic/src/Troop.js";
|
||||
import type { Squad } from "@sammo/game_logic/src/Squad.js";
|
||||
import { insertItemAtArrayLike, NotYetImplemented } from "@sammo/util";
|
||||
import Denque from "denque";
|
||||
import type { Mongoose } from "mongoose";
|
||||
@@ -27,7 +27,7 @@ export class ResourceController implements IResourceController{
|
||||
|
||||
private _nation: Map<number, Nation> = new Map();
|
||||
private _city: Map<number, City> = new Map();
|
||||
private _troop: Map<number, Troop> = new Map();
|
||||
private _squad: Map<number, Squad> = new Map();
|
||||
private _general: Map<number, General> = new Map();
|
||||
|
||||
//내부적으로 turntime asc, id asc로 동작하는 PriorityQueue
|
||||
@@ -38,7 +38,7 @@ export class ResourceController implements IResourceController{
|
||||
private changes = {
|
||||
Nation: new Map<number, [ChangeType, Nation]>(),
|
||||
City: new Map<number, [ChangeType, City]>(),
|
||||
Troop: new Map<number, [ChangeType, Troop]>(),
|
||||
Squad: new Map<number, [ChangeType, Squad]>(),
|
||||
General: new Map<number, [ChangeType, General]>(),
|
||||
|
||||
GameEnv: new Map<number, [ChangeType, GameEnv]>(),
|
||||
@@ -52,7 +52,7 @@ export class ResourceController implements IResourceController{
|
||||
throw new NotYetImplemented();
|
||||
}
|
||||
|
||||
troop(id: TroopID, nation: NationID): Troop | undefined {
|
||||
squad(id: SquadID, nation: NationID): Squad | undefined {
|
||||
throw new NotYetImplemented();
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ export class ResourceController implements IResourceController{
|
||||
throw new NotYetImplemented();
|
||||
}
|
||||
|
||||
allTroops(): Map<NationID, Map<TroopID, Troop>> {
|
||||
allSquads(): Map<NationID, Map<SquadID, Squad>> {
|
||||
throw new NotYetImplemented();
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ export class ResourceController implements IResourceController{
|
||||
throw new NotYetImplemented();
|
||||
}
|
||||
|
||||
generalByTroop(id: TroopID): Map<GeneralID, General> {
|
||||
generalBySquad(id: SquadID): Map<GeneralID, General> {
|
||||
throw new NotYetImplemented();
|
||||
}
|
||||
|
||||
@@ -112,7 +112,7 @@ export class ResourceController implements IResourceController{
|
||||
throw new NotYetImplemented();
|
||||
}
|
||||
|
||||
troopByNation(id: NationID): Map<TroopID, Troop> {
|
||||
squadByNation(id: NationID): Map<SquadID, Squad> {
|
||||
throw new NotYetImplemented();
|
||||
}
|
||||
|
||||
@@ -139,7 +139,7 @@ export class ResourceController implements IResourceController{
|
||||
throw new NotYetImplemented();
|
||||
}
|
||||
|
||||
createTroop(raw: ITroopEntity): Troop {
|
||||
createSquad(raw: ISquadEntity): Squad {
|
||||
throw new NotYetImplemented();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user