Initial import
This commit is contained in:
90
Assets/Scripts/Core/GameConstants.cs
Normal file
90
Assets/Scripts/Core/GameConstants.cs
Normal file
@@ -0,0 +1,90 @@
|
||||
namespace EE2Clone.Core
|
||||
{
|
||||
public enum UnitClass
|
||||
{
|
||||
Citizen,
|
||||
Infantry,
|
||||
Ranged,
|
||||
Cavalry,
|
||||
Siege,
|
||||
Priest
|
||||
}
|
||||
|
||||
public enum ResourceType
|
||||
{
|
||||
Food,
|
||||
Wood,
|
||||
Stone,
|
||||
Gold,
|
||||
Tin
|
||||
}
|
||||
|
||||
public enum Epoch
|
||||
{
|
||||
StoneAge = 0,
|
||||
BronzeAge = 1,
|
||||
IronAge = 2
|
||||
}
|
||||
|
||||
public enum BuildingType
|
||||
{
|
||||
TownCenter,
|
||||
House,
|
||||
Barracks,
|
||||
ArcheryRange,
|
||||
Stable,
|
||||
SiegeWorkshop,
|
||||
Temple,
|
||||
University,
|
||||
Farm,
|
||||
LumberCamp,
|
||||
MiningCamp,
|
||||
Quarry,
|
||||
Wall,
|
||||
Tower
|
||||
}
|
||||
|
||||
public enum CitizenState
|
||||
{
|
||||
Idle,
|
||||
MovingToGather,
|
||||
Gathering,
|
||||
MovingToDropoff,
|
||||
Depositing,
|
||||
MovingToBuild,
|
||||
Building,
|
||||
Repairing,
|
||||
Fighting
|
||||
}
|
||||
|
||||
public enum UnitState
|
||||
{
|
||||
Idle,
|
||||
Moving,
|
||||
Attacking,
|
||||
Dying
|
||||
}
|
||||
|
||||
public static class GameConstants
|
||||
{
|
||||
public const int MaxPlayers = 8;
|
||||
public const int MaxPopulationCap = 200;
|
||||
public const int PopulationPerHouse = 5;
|
||||
public const int StartingPopulationCap = 10;
|
||||
|
||||
public const float GatherTickInterval = 1.0f;
|
||||
public const float ConstructionTickInterval = 0.5f;
|
||||
|
||||
public const int FlowFieldWidth = 256;
|
||||
public const int FlowFieldHeight = 256;
|
||||
public const float FlowFieldCellSize = 1.0f;
|
||||
|
||||
public const float MinDamage = 1f;
|
||||
|
||||
// Counter bonus multipliers (rock-paper-scissors)
|
||||
public const float CounterBonusStrong = 1.5f;
|
||||
public const float CounterBonusWeak = 0.75f;
|
||||
public const float CounterBonusNeutral = 1.0f;
|
||||
public const float SiegeBuildingBonus = 3.0f;
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/Core/GameConstants.cs.meta
Normal file
2
Assets/Scripts/Core/GameConstants.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 986c0d6aa51063547b8a637d1a4b4986
|
||||
Reference in New Issue
Block a user