Add TypeScript, generate stations and a line

This commit is contained in:
2018-04-05 22:41:19 -04:00
parent 434578cebc
commit edae3f76f4
12 changed files with 430 additions and 37 deletions

11
src/Station.ts Normal file
View 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;
}
}