public void Start(Grid grid = null) { _grid = grid != null ? grid : new Grid(this, 20, 20); TrainNetworkRegistry.Initialize(this); InputHandler.OnClick += OnClick; UpdateTimer.Start(); _grid.AddObject(new TransportMayhem.Model.MovingObjects.Train(3, 2, Rotation.Left)); _grid.AddObject(new Station(2, 1, 3, 3)); }
public TrainNetwork() { _rails = new List <IRail>(); _networkId = TrainNetworkRegistry.RegisterToNetwork(this); }