Renamed Map to CityMap

This commit is contained in:
2015-06-17 12:07:02 +03:00
parent c40690eb85
commit 670f260a4c
23 changed files with 30 additions and 39 deletions

View File

@ -14,10 +14,10 @@ namespace TransportGame.Unity
public Texture2D[] Textures { get; set; }
private GameObject parent = new GameObject("buildings");
private Map map;
private CityMap map;
private System.Random random = new System.Random();
public IEnumerable Generate(Map map)
public IEnumerable Generate(CityMap map)
{
this.map = map;
int i = 0;

View File

@ -35,7 +35,7 @@ namespace TransportGame.Unity
#region Private fields
private Map map;
private CityMap map;
private Dictionary<int, Vector2[]> segmentTerminal1Limit = new Dictionary<int, Vector2[]>();
private Dictionary<int, Vector2[]> segmentTerminal2Limit = new Dictionary<int, Vector2[]>();
@ -47,7 +47,7 @@ namespace TransportGame.Unity
public Material RoadMaterial { get; set; }
public Material SidewalkMaterial { get; set; }
public IEnumerable Generate(Map map)
public IEnumerable Generate(CityMap map)
{
this.map = map;

View File

@ -9,7 +9,7 @@ using UnityEngine;
public class TerrainGeneratorScript : MonoBehaviour
{
private Map map = null;
private CityMap map = null;
public int TerrainWidth = 1024;
public int TerrainHeight = 1024;