mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-26 07:24:36 +00:00
added test
This commit is contained in:
@@ -44,13 +44,13 @@ export class TestServerConfig implements ServerConfig {
|
||||
throw new Error("Method not implemented.");
|
||||
}
|
||||
turnIntervalMs(): number {
|
||||
throw new Error("Method not implemented.");
|
||||
return 100;
|
||||
}
|
||||
spawnPhaseTicks(gameType: GameType): number {
|
||||
throw new Error("Method not implemented.");
|
||||
return gameType === GameType.Singleplayer ? 100 : 300;
|
||||
}
|
||||
spawnPhaseSeconds(gameType: GameType): number {
|
||||
throw new Error("Method not implemented.");
|
||||
return this.spawnPhaseTicks(gameType) / (1000 / this.turnIntervalMs());
|
||||
}
|
||||
gameCreationRate(): number {
|
||||
throw new Error("Method not implemented.");
|
||||
|
||||
Reference in New Issue
Block a user