Add TypeScript, generate stations and a line
This commit is contained in:
11
src/Station.ts
Normal file
11
src/Station.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export default class Station {
|
||||
public location: PIXI.Point;
|
||||
public population: number;
|
||||
public connections: Station[];
|
||||
|
||||
constructor(location: PIXI.Point, population: number, connections?: Station[]) {
|
||||
this.location = location;
|
||||
this.population = population;
|
||||
this.connections = connections;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user