Exemple #1
0
 public override void Load(LoadObjectStore ObjectStore)
 {
     base.Load(ObjectStore);
     _Bottom             = ObjectStore.LoadDoubleProperty("bottom");
     _Height             = ObjectStore.LoadDoubleProperty("height");
     _Left               = ObjectStore.LoadDoubleProperty("left");
     _MinutesUntilBroken = ObjectStore.LoadDoubleProperty("minutes-until-broken");
     _Office             = ObjectStore.LoadOfficeProperty("office");
     _Width              = ObjectStore.LoadDoubleProperty("width");
 }
Exemple #2
0
 public override void Load(LoadObjectStore ObjectStore)
 {
     base.Load(ObjectStore);
     _BackgroundColor = ObjectStore.LoadColorProperty("background-color");
     _BorderColor     = ObjectStore.LoadColorProperty("border-color");
     _Floor           = ObjectStore.LoadDoubleProperty("floor");
     _Height          = ObjectStore.LoadDoubleProperty("height");
     _Left            = ObjectStore.LoadDoubleProperty("left");
     _Width           = ObjectStore.LoadDoubleProperty("width");
 }
Exemple #3
0
 public override void Load(LoadObjectStore ObjectStore)
 {
     base.Load(ObjectStore);
     _BackgroundColor = ObjectStore.LoadColorProperty("background-color");
     _BorderColor     = ObjectStore.LoadColorProperty("border-color");
     _Height          = ObjectStore.LoadDoubleProperty("height");
     _Office          = ObjectStore.LoadOfficeProperty("office");
     _Width           = ObjectStore.LoadDoubleProperty("width");
     _X = ObjectStore.LoadDoubleProperty("x");
     _Y = ObjectStore.LoadDoubleProperty("y");
 }
Exemple #4
0
 public override void Load(LoadObjectStore ObjectStore)
 {
     // read these at first, so we can initialize the free space and minimum/maximum per floor
     _HighestFloor = ObjectStore.LoadInt32Property("highest-floor");
     _LeftBorder   = ObjectStore.LoadInt32Property("left-border");
     _LowestFloor  = ObjectStore.LoadInt32Property("lowest-floor");
     _RightBorder  = ObjectStore.LoadInt32Property("right-border");
     _InitializeFreeSpaceAndMinimumMaximum();
     foreach (var BrokenThing in ObjectStore.LoadObjects("broken-things"))
     {
         _BrokenThings.Add(BrokenThing);
     }
     foreach (var Building in ObjectStore.LoadBuildings("buildings"))
     {
         _AddBuilding(Building);
     }
     _CatStock = ObjectStore.LoadUInt32Property("cat-stock");
     _Cents    = ObjectStore.LoadUInt64Property("cents");
     _Minutes  = ObjectStore.LoadDoubleProperty("minutes");
     _NextCatAtNumberOfEmployees = ObjectStore.LoadUInt32Property("next-cat-at-number-of-employees");
     foreach (var Person in ObjectStore.LoadPersons("persons"))
     {
         _AddPerson(Person);
     }
 }
Exemple #5
0
 public override void Load(LoadObjectStore ObjectStore)
 {
     base.Load(ObjectStore);
     _Computer   = ObjectStore.LoadComputerProperty("computer");
     _Janitor    = ObjectStore.LoadJanitorProperty("janitor");
     _Office     = ObjectStore.LoadOfficeProperty("office");
     _Person     = ObjectStore.LoadPersonProperty("person");
     _Rectangle  = ObjectStore.LoadRectangleProperty("rectangle");
     _TrashLevel = ObjectStore.LoadDoubleProperty("trash-level");
 }
Exemple #6
0
 public override void Load(LoadObjectStore ObjectStore)
 {
     base.Load(ObjectStore);
     _ActionFraction       = ObjectStore.LoadDoubleProperty("action-fraction");
     _AnimationFraction    = ObjectStore.LoadDoubleProperty("animation-fraction");
     _AnimationState       = ObjectStore.LoadAnimationStateProperty("animation-state");
     _ArrivesAtMinute      = ObjectStore.LoadUInt64Property("arrives-at-minute");
     _ArrivesAtMinuteOfDay = ObjectStore.LoadUInt64Property("arrives-at-minute-of-day");
     _AtDesk          = ObjectStore.LoadBooleanProperty("at-desk");
     _BackgroundColor = ObjectStore.LoadColorProperty("background-color");
     _BorderColor     = ObjectStore.LoadColorProperty("border-color");
     _Desk            = ObjectStore.LoadDeskProperty("desk");
     _Height          = ObjectStore.LoadDoubleProperty("height");
     _LeavesAtMinute  = ObjectStore.LoadUInt64Property("leaves-at-minute");
     _LivingSide      = ObjectStore.LoadLivingSideProperty("living-side");
     _Name            = ObjectStore.LoadStringProperty("name");
     _Wage            = ObjectStore.LoadUInt64Property("wage");
     _Width           = ObjectStore.LoadDoubleProperty("width");
     _WorkMinutes     = ObjectStore.LoadUInt64Property("work-minutes");
     _X = ObjectStore.LoadDoubleProperty("x");
     _Y = ObjectStore.LoadDoubleProperty("y");
 }
Exemple #7
0
 public void Load(LoadObjectStore ObjectStore)
 {
     X = ObjectStore.LoadDoubleProperty("x");
     X = ObjectStore.LoadDoubleProperty("y");
 }
Exemple #8
0
 public override void Load(LoadObjectStore ObjectStore)
 {
     base.Load(ObjectStore);
     _MinutesUntilBroken = ObjectStore.LoadDoubleProperty("minutes-until-broken");
     _Rectangle          = ObjectStore.LoadRectangleProperty("rectangle");
 }