41 lines
905 B
C#
41 lines
905 B
C#
using UnityEngine;
|
|
using UnityEditor;
|
|
|
|
[CreateAssetMenu(fileName = "Building Preset", menuName = "New Building Preset")]
|
|
public class BuildingPreset : ScriptableObject
|
|
{
|
|
public int buildCost;
|
|
public int costPerTurn;
|
|
public GameObject prefab;
|
|
public int maxPopulation;
|
|
public float populationPerTurn;
|
|
public int population;
|
|
public int jobs;
|
|
public int foodPerTurn;
|
|
public int waterPerTurn;
|
|
public int steelPerTurn;
|
|
public int faithPerTurn;
|
|
public int woodPerTurn;
|
|
public int powerPerTurn;
|
|
|
|
public enum BuildingType
|
|
{
|
|
Residential,
|
|
Commercial,
|
|
Industrial,
|
|
Park,
|
|
School,
|
|
Hospital,
|
|
PoliceStation,
|
|
FireStation,
|
|
Church,
|
|
Road,
|
|
PowerPlant,
|
|
WaterPlant,
|
|
Factory,
|
|
Farm,
|
|
Mine,
|
|
Sawmill
|
|
}
|
|
public BuildingType buildingType;
|
|
} |