2015-06-03 20:54:22 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace TransportGame.Model.Config
|
|
|
|
|
{
|
|
|
|
|
public class BuildingGeneratorConfig
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2015-06-10 08:49:43 +00:00
|
|
|
|
/// Minimum lot size
|
2015-06-03 20:54:22 +00:00
|
|
|
|
/// </summary>
|
2015-06-10 08:49:43 +00:00
|
|
|
|
public float LotSquareMinSize { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Maximum lot size
|
|
|
|
|
/// </summary>
|
|
|
|
|
public float LotSquareMaxSize { get; set; }
|
2015-06-03 20:54:22 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Space between lots
|
|
|
|
|
/// </summary>
|
|
|
|
|
public float LotSpacing { get; set; }
|
|
|
|
|
|
2015-06-10 08:49:43 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Maximum number of attempts to generate a lot in a specific area
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int MaxLotAttempts { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Maximum number of levels on a building
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int MaxBuildingLevels { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Maximum height for a building
|
|
|
|
|
/// </summary>
|
2015-06-13 22:46:57 +00:00
|
|
|
|
public float MaxLevelHeight { get; set; }
|
|
|
|
|
public float MinLevelHeight { get; set; }
|
2015-06-13 18:36:32 +00:00
|
|
|
|
|
2015-06-10 08:49:43 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Maximum number of primitive polygons to be generated per level
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int MaxPolygonsPerLevel { get; set; }
|
|
|
|
|
|
2015-06-03 20:54:22 +00:00
|
|
|
|
public BuildingGeneratorConfig()
|
|
|
|
|
{
|
2015-06-10 08:49:43 +00:00
|
|
|
|
LotSquareMinSize = 5f;
|
|
|
|
|
LotSquareMaxSize = 20f;
|
2015-06-03 20:54:22 +00:00
|
|
|
|
LotSpacing = 0.1f;
|
2015-06-10 08:49:43 +00:00
|
|
|
|
MaxLotAttempts = 3;
|
2015-06-13 22:46:57 +00:00
|
|
|
|
MaxLevelHeight = 20f;
|
|
|
|
|
MinLevelHeight = 5f;
|
2015-06-10 11:43:57 +00:00
|
|
|
|
MaxBuildingLevels = 7;
|
2015-06-13 22:46:57 +00:00
|
|
|
|
MaxPolygonsPerLevel = 2;
|
2015-06-03 20:54:22 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|