mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-05 13:42:06 +00:00
created PlayerType enum add FakeHuman type
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import {Cell, Game, Tile, TileEvent} from "../Game";
|
||||
import {Cell, Game, PlayerType, Tile, TileEvent} from "../Game";
|
||||
import {PseudoRandom} from "../PseudoRandom";
|
||||
import {SpawnIntent} from "../Schemas";
|
||||
import {bfs, dist as dist, manhattanDist} from "../Util";
|
||||
@@ -40,7 +40,7 @@ export class BotSpawner {
|
||||
return {
|
||||
type: 'spawn',
|
||||
name: botName,
|
||||
isBot: true,
|
||||
playerType: PlayerType.Bot,
|
||||
x: tile.cell().x,
|
||||
y: tile.cell().y
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user