mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-10-23 18:23:15 +02:00
23 lines
429 B
TypeScript
23 lines
429 B
TypeScript
|
/**
|
||
|
* Class representing a City in the game
|
||
|
*/
|
||
|
import { Location } from "./Location";
|
||
|
import { CityName } from "./data/CityNames";
|
||
|
|
||
|
export class City {
|
||
|
/**
|
||
|
* List of all locations in this city
|
||
|
*/
|
||
|
locations: Location[];
|
||
|
|
||
|
/**
|
||
|
* Name of this city
|
||
|
*/
|
||
|
name: CityName;
|
||
|
|
||
|
constructor(name: CityName, locations: Location[]) {
|
||
|
this.name = name;
|
||
|
this.locations = locations;
|
||
|
}
|
||
|
}
|