mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-28 11:44:16 +00:00
combine ExecutionView & Execution
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { GameUpdates, GameUpdateType, MapPos, MessageType, NameViewData, Player, PlayerActions, PlayerProfile, PlayerUpdate, Unit, UnitUpdate } from './game/Game';
|
||||
import { Config } from "./configuration/Config";
|
||||
import { Alliance, AllianceRequest, AllPlayers, Cell, DefenseBonus, EmojiMessage, Execution, ExecutionView, Game, Gold, Nation, PlayerID, PlayerInfo, PlayerType, Relation, TerrainType, TerraNullius, Tick, UnitInfo, UnitType } from "./game/Game";
|
||||
import { Alliance, AllianceRequest, AllPlayers, Cell, DefenseBonus, EmojiMessage, Game, Gold, Nation, PlayerID, PlayerInfo, PlayerType, Relation, TerrainType, TerraNullius, Tick, UnitInfo, UnitType } from "./game/Game";
|
||||
import { ClientID } from "./Schemas";
|
||||
import { TerraNulliusImpl } from './game/TerraNulliusImpl';
|
||||
import { WorkerClient } from './worker/WorkerClient';
|
||||
|
||||
@@ -120,14 +120,9 @@ export enum PlayerType {
|
||||
FakeHuman = "FAKEHUMAN",
|
||||
}
|
||||
|
||||
export interface ExecutionView {
|
||||
export interface Execution {
|
||||
isActive(): boolean
|
||||
// TODO: remove owner
|
||||
owner(): Player
|
||||
activeDuringSpawnPhase(): boolean
|
||||
}
|
||||
|
||||
export interface Execution extends ExecutionView {
|
||||
init(mg: Game, ticks: number): void
|
||||
tick(ticks: number): void
|
||||
owner(): Player
|
||||
|
||||
Reference in New Issue
Block a user