예제 #1
0
 public override void Save(SaveObjectStore ObjectStore)
 {
     base.Save(ObjectStore);
     ObjectStore.Save("has-count", Count.HasValue);
     ObjectStore.Save("count", (Count.HasValue == true) ? (Count.Value) : (0));
     ObjectStore.Save("behavior", Behavior);
 }
예제 #2
0
        public override void Save(SaveObjectStore ObjectStore)
        {
            base.Save(ObjectStore);
            foreach (var Item in _Items)
            {
                var ItemObjectStore = ObjectStore.Save("item");

                ItemObjectStore.Save("key", Item.Key);
                if (Item.Value is PersistentObject)
                {
                    ItemObjectStore.SaveReference("value", Item.Value);
                }
                else
                {
                    ItemObjectStore.SaveContained("value", Item.Value);
                }
            }
        }
예제 #3
0
 public override void Save(SaveObjectStore ObjectStore)
 {
     base.Save(ObjectStore);
     ObjectStore.Save("desk", _Desk);
 }
예제 #4
0
 public override void Save(SaveObjectStore ObjectStore)
 {
     Debug.Assert(_TargetFloor != null);
     base.Save(ObjectStore);
     ObjectStore.Save("target-floor", _TargetFloor.Value);
 }
 public override void Save(SaveObjectStore ObjectStore)
 {
     base.Save(ObjectStore);
     ObjectStore.Save("x", X);
 }
예제 #6
0
 public override void Save(SaveObjectStore ObjectStore)
 {
     base.Save(ObjectStore);
     ObjectStore.Save("state", _State);
     ObjectStore.Save("sub-goals", _SubGoals);
 }
예제 #7
0
 public override void Save(SaveObjectStore ObjectStore)
 {
     base.Save(ObjectStore);
     ObjectStore.Save("cleaning-target", _CleaningTarget);
     ObjectStore.Save("start-trash-level", _StartTrashLevel);
 }
예제 #8
0
 public override void Save(SaveObjectStore ObjectStore)
 {
     base.Save(ObjectStore);
     ObjectStore.Save("mind", Mind);
 }
예제 #9
0
 public override void Save(SaveObjectStore ObjectStore)
 {
     ObjectStore.Save("state", State);
 }
예제 #10
0
 public override void Save(SaveObjectStore ObjectStore)
 {
     base.Save(ObjectStore);
     ObjectStore.Save("root-goal", _RootGoal);
 }
예제 #11
0
 public override void Save(SaveObjectStore ObjectStore)
 {
     base.Save(ObjectStore);
     ObjectStore.Save("action-state", _ActionState);
     ObjectStore.Save("minutes-to-action-state-change", _MinutesToActionStateChange);
 }
예제 #12
0
 public override void Save(SaveObjectStore ObjectStore)
 {
     base.Save(ObjectStore);
     ObjectStore.Save("memory", Memory);
 }
 public override void Save(SaveObjectStore ObjectStore)
 {
     base.Save(ObjectStore);
     ObjectStore.Save("travel-actions", _TravelActions);
 }
예제 #14
0
 public override void Save(SaveObjectStore ObjectStore)
 {
     base.Save(ObjectStore);
     ObjectStore.Save("location", _Location);
 }
예제 #15
0
 public override void Save(SaveObjectStore ObjectStore)
 {
     base.Save(ObjectStore);
     ObjectStore.Save("behaviors", Behaviors);
     ObjectStore.Save("behavior-index", _BehaviorIndex);
 }