public SettlementCitizenRecord(int settlementId, int citizenTypeId, int amount) { Id = GameDataSequences.GetNextSequence("SettlementCitizen"); SettlementId = new SettlementId(settlementId); CitizenTypeId = new CitizenTypeId(citizenTypeId); Amount = new Amount(amount); }
public SettlementProducingRecord(int settlementId, int productionTypeId, int productionId, int productionAccrued) { Id = GameDataSequences.GetNextSequence("SettlementProducing"); SettlementId = new SettlementId(settlementId); ProductionTypeId = new ProductionTypeId(productionTypeId); ProductionId = new ProductionId(productionId); ProductionAccrued = new ProductionAccrued(productionAccrued); }
} // Foreign key -> GameMetadata.BuildingType public SettlementBuildingRecord(int settlementId, int buildingTypeId) { Id = GameDataSequences.GetNextSequence("SettlementBuilding"); SettlementId = new SettlementId(settlementId); BuildingTypeId = new BuildingTypeId(buildingTypeId); }