Exemple #1
0
    //public int ExcessResidents { get { return Residents - residentsMax; } }

    public override void Load(ObjSave o)
    {
        base.Load(o);

        HouseSave h = (HouseSave)o;

        Hygiene           = h.Hygiene;
        Savings           = h.Savings;
        Corpses           = h.Corpses;
        DiseasedResidents = h.DiseasedResidents;

        //thirst
        Thirst           = h.Thirst;
        WaterQualCurrent = h.WaterQualCurrent;

        //hunger
        Hunger          = h.Hunger;
        FoodQualCurrent = h.FoodQualCurrent;

        Goods = h.Goods;

        VenueAccess = h.VenueAccess.GetDictionary();
        Culture     = h.Culture;

        Residents = h.Residents;
    }
Exemple #2
0
    public override void Load(ObjSave o)
    {
        base.Load(o);

        HouseSave h = (HouseSave)o;

        Residents  = h.Residents;
        HouseSize  = h.HouseSize;
        Prosperity = h.Prosperity;

        Water     = h.Water;
        WaterQual = h.WaterQual;

        Food = h.Food;

        Goods = h.Goods;

        VenueAccess = h.VenueAccess.GetDictionary();
        Culture     = h.Culture;

        Faith = h.Faith.GetDictionary();
    }