mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-04 03:40:39 +00:00
thread_split: have structure layer draw updated structures
This commit is contained in:
@@ -308,6 +308,9 @@ export class GameView implements GameMap {
|
||||
units(...types: UnitType[]): UnitView[] {
|
||||
return Array.from(this._units.values())
|
||||
}
|
||||
unit(id: number): UnitView {
|
||||
return this._units.get(id)
|
||||
}
|
||||
unitInfo(type: UnitType): UnitInfo {
|
||||
return this._config.unitInfo(type)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user