mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-21 12:35:05 +00:00
add difficulties
This commit is contained in:
+15
-8
@@ -1,10 +1,10 @@
|
||||
import {info} from "console"
|
||||
import {Config} from "../configuration/Config"
|
||||
import {GameEvent} from "../EventBus"
|
||||
import {ClientID, GameID} from "../Schemas"
|
||||
import {DisplayMessageEvent, MessageType} from "../../client/graphics/layers/EventsDisplay"
|
||||
import {BreakAllianceExecution} from "../execution/alliance/BreakAllianceExecution"
|
||||
import {DonateExecution} from "../execution/DonateExecution"
|
||||
import { info } from "console"
|
||||
import { Config } from "../configuration/Config"
|
||||
import { GameEvent } from "../EventBus"
|
||||
import { ClientID, GameID } from "../Schemas"
|
||||
import { DisplayMessageEvent, MessageType } from "../../client/graphics/layers/EventsDisplay"
|
||||
import { BreakAllianceExecution } from "../execution/alliance/BreakAllianceExecution"
|
||||
import { DonateExecution } from "../execution/DonateExecution"
|
||||
|
||||
export type PlayerID = string
|
||||
export type Tick = number
|
||||
@@ -12,6 +12,13 @@ export type Currency = number
|
||||
|
||||
export const AllPlayers = "AllPlayers" as const;
|
||||
|
||||
export enum Difficulty {
|
||||
Easy = 1,
|
||||
Medium = 3,
|
||||
Hard = 6,
|
||||
Impossible = 12,
|
||||
}
|
||||
|
||||
export enum GameMap {
|
||||
World,
|
||||
Europe
|
||||
@@ -45,7 +52,7 @@ export class Cell {
|
||||
this.strRepr = `Cell[${this.x},${this.y}]`
|
||||
}
|
||||
|
||||
toString(): string {return this.strRepr}
|
||||
toString(): string { return this.strRepr }
|
||||
}
|
||||
|
||||
export enum TerrainType {
|
||||
|
||||
Reference in New Issue
Block a user