public void Dispose() { Array.Clear(tileGrid, 0, tileGrid.Length); intersectionList.Clear(); townList.Clear(); worldVehicles = null; }
bool firstDownOutsideWorld; //Hack to make sure our first down is in the world public World(int worldWidth, int worldHeight, Tile[,] tileGrid, List <Intersection> intersectionList, List <Town> townList) { this.worldWidth = worldWidth; this.worldHeight = worldHeight; this.tileGrid = tileGrid; this.intersectionList = intersectionList; this.townList = townList; UpdateWorldParameters(); UpdateShadowSide(); dragSprite = GraphicsManager.GetSpriteColour(20); worldVehicles = new WorldVehicles(); WorldController.worldFire = new WorldFire(); }