Added lot allocation.

This commit is contained in:
2015-06-03 23:54:22 +03:00
parent f9b20b0226
commit 352f212ae9
28 changed files with 488 additions and 65 deletions

View File

@ -12,7 +12,7 @@ public class InitializeScript : MonoBehaviour
{
// Load configuration
Logger.Info("Loading configuration...");
ConfigurationManager.LoadConfiguration();
ConfigManager.LoadConfiguration();
// Load biomes
Logger.Info("Loading biomes...");

View File

@ -3,6 +3,7 @@ using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TransportGame.Business;
using TransportGame.Model;
using TransportGame.Model.Road;
using TransportGame.Utils;
@ -16,13 +17,19 @@ namespace TransportGame.Unity
class RoadMeshGenerator
{
#region Constants
private const float SidewalkWidth = .8f;
private const float LaneWidth = 1f;
private const float RaiseOffset = 0.8f; // Raises road above actual height of terrain
private const float SidewalkHeight = 0.1f; // Height of sidewalk
private const float SideCoverHeight = 0.1f; // On the sides of the roads, so that we can't see the road from the underside
private float SidewalkWidth { get { return ConfigManager.Roadgen.SidewalkWidth; } }
private float LaneWidth { get { return ConfigManager.Roadgen.LaneWidth; } }
// Raises road above actual height of terrain
private float RaiseOffset { get { return ConfigManager.Roadgen.RaiseOffset; } }
// Height of sidewalk
private float SidewalkHeight { get { return ConfigManager.Roadgen.SidewalkHeight; } }
// On the sides of the roads, so that we can't see the road from the underside
private float SideCoverHeight { get { return ConfigManager.Roadgen.SideCoverHeight; } }
#endregion