mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-16 20:11:22 +00:00
Created mini map for a star search
This commit is contained in:
@@ -20,6 +20,9 @@ export class UnitImpl implements MutableUnit {
|
||||
}
|
||||
|
||||
move(tile: Tile): void {
|
||||
if(tile == null) {
|
||||
throw new Error("tile cannot be null")
|
||||
}
|
||||
const oldTile = this._tile;
|
||||
this._tile = tile;
|
||||
this.g.fireUnitUpdateEvent(this, oldTile);
|
||||
|
||||
Reference in New Issue
Block a user