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 { IGeneralEntity } from "@sammo/game_logic/src/Entity/GeneralEntity.js"; import type { 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 { GameEnv } from "@sammo/game_logic/src/GameEnv.js"; import type { 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 { NotYetImplemented } from "@sammo/util"; //TODO: Implement! export class ResourceController implements IResourceController{ constructor() { } nation(id: NationID): Nation | undefined { throw new NotYetImplemented(); } city(id: CityID): City | undefined { throw new NotYetImplemented(); } troop(id: TroopID, nation: NationID): Troop | undefined { throw new NotYetImplemented(); } general(id: GeneralID): General | undefined { throw new NotYetImplemented(); } upcomingGeneral(): General | undefined { throw new NotYetImplemented(); } gameEnv(): GameEnv { throw new NotYetImplemented(); } allNations(): Map { throw new NotYetImplemented(); } allCities(): Map { throw new NotYetImplemented(); } allCitiesByNation(): Map> { throw new NotYetImplemented(); } allTroops(): Map> { throw new NotYetImplemented(); } allGenerals(): Map { throw new NotYetImplemented(); } generalByNation(id: NationID): Map { throw new NotYetImplemented(); } generalByCity(id: CityID, nationID?: NationID): Map { throw new NotYetImplemented(); } generalByTroop(id: TroopID): Map { throw new NotYetImplemented(); } cityByNation(id: NationID): Map { throw new NotYetImplemented(); } troopByNation(id: NationID): Map { throw new NotYetImplemented(); } //----Insert, Update, Delete reserveUpdate(entity: LazyEntityUpdater): void { throw new NotYetImplemented(); } reserveDelete(entity: LazyEntityUpdater): void { throw new NotYetImplemented(); } reserveInsert(entity: LazyEntityUpdater): void { throw new NotYetImplemented(); } createGeneral(raw: IGeneralEntity): General { throw new NotYetImplemented(); } createNation(raw: INationEntity): Nation { throw new NotYetImplemented(); } createTroop(raw: ITroopEntity): Troop { throw new NotYetImplemented(); } _getAllChanges(): Record]>> { throw new NotYetImplemented(); } //---- DB 접근 --- getReservedTurn(general: General): Promise { throw new NotYetImplemented(); } nationReservedTurn(general: General): Promise { throw new NotYetImplemented(); } resetAndFill(): Promise { throw new NotYetImplemented(); } saveAll(): Promise { throw new NotYetImplemented(); } }