mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-14 11:34:52 +00:00
city test
This commit is contained in:
@@ -79,6 +79,10 @@ export class UnitView {
|
||||
troops(): number {
|
||||
return this.data.troops;
|
||||
}
|
||||
createdAtTick(): number | undefined {
|
||||
return this.data.createdAtTick;
|
||||
}
|
||||
|
||||
tile(): TileRef {
|
||||
return this.data.pos;
|
||||
}
|
||||
@@ -228,6 +232,9 @@ export class PlayerView {
|
||||
adjustedPopulation(): number {
|
||||
return this.data.adjustedPopulation;
|
||||
}
|
||||
maxPopulation(): number {
|
||||
return this.data.maxPopulation;
|
||||
}
|
||||
workers(): number {
|
||||
return this.data.workers;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user