public StarbaseCategory GenerateCmdCategory(BaseComposition unitComposition) { int elementCount = unitComposition.GetTotalElementsCount(); //D.Log(ShowDebugLog, "{0}'s known elements count = {1}.", DebugName, elementCount); if (elementCount >= 8) { return StarbaseCategory.TerritorialBase; } if (elementCount >= 6) { return StarbaseCategory.RegionalBase; } if (elementCount >= 4) { return StarbaseCategory.DistrictBase; } if (elementCount >= 2) { return StarbaseCategory.LocalBase; } if (elementCount >= 1) { return StarbaseCategory.Outpost; } return StarbaseCategory.None; }
public SettlementCategory GenerateCmdCategory(BaseComposition unitComposition) { int elementCount = unitComposition.GetTotalElementsCount(); //D.Log(ShowDebugLog, "{0}'s known elements count = {1}.", DebugName, elementCount); if (elementCount >= 8) { return SettlementCategory.Territory; } if (elementCount >= 6) { return SettlementCategory.Province; } if (elementCount >= 4) { return SettlementCategory.CityState; } if (elementCount >= 2) { return SettlementCategory.City; } if (elementCount >= 1) { return SettlementCategory.Colony; } return SettlementCategory.None; }