city-generation/Game/Assets/Scripts/Model/Config/BuildingGeneratorConfig.cs

59 lines
1.6 KiB
C#
Raw Normal View History

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>
public float MaxBuildingHeight { get; set; }
2015-06-10 11:43:57 +00:00
public float MinBuildingHeight { 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 18:36:32 +00:00
MaxBuildingHeight = 25f;
MinBuildingHeight = 5f;
2015-06-10 11:43:57 +00:00
MaxBuildingLevels = 7;
MaxPolygonsPerLevel = 4;
2015-06-03 20:54:22 +00:00
}
}
}