Example #1
0
 public SettlementCitizenRecord(int settlementId, int citizenTypeId, int amount)
 {
     Id            = GameDataSequences.GetNextSequence("SettlementCitizen");
     SettlementId  = new SettlementId(settlementId);
     CitizenTypeId = new CitizenTypeId(citizenTypeId);
     Amount        = new Amount(amount);
 }
Example #2
0
 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);
 }
Example #3
0
        }                                             // Foreign key -> GameMetadata.BuildingType

        public SettlementBuildingRecord(int settlementId, int buildingTypeId)
        {
            Id             = GameDataSequences.GetNextSequence("SettlementBuilding");
            SettlementId   = new SettlementId(settlementId);
            BuildingTypeId = new BuildingTypeId(buildingTypeId);
        }