Station and train colors

This commit is contained in:
2018-04-10 01:31:49 -04:00
parent e686a854d8
commit 902645d46a
3 changed files with 57 additions and 19 deletions

View File

@@ -30,10 +30,12 @@ export default class Station {
public connections: Station[];
public id: number;
public label: PIXI.Text;
public color: number;
constructor(location: PIXI.Point, population: number, connections?: Station[]) {
constructor(location: PIXI.Point, population: number, color: number, connections?: Station[]) {
this.location = location;
this.population = population;
this.color = color;
this.connections = connections;
// for debugging