public void LoadState(ObjectAttachmentState state)
        {
            GameValuesUnloadedState valuesState = state as GameValuesUnloadedState;

            for (int i = 0; i < valuesState.values.Count; i++)
            {
                gameValues[valuesState.values[i].name] = valuesState.values[i];
            }
        }
Esempio n. 2
0
        public void LoadState(ObjectAttachmentState state)
        {
            PerksContainerState perksState = state as PerksContainerState;

            // RemoveAllPerks ();
            for (int i = 0; i < perksState.perksSaved.Count; i++)
            {
                string[] split = perksState.perksSaved[i].Split(splitKey, StringSplitOptions.RemoveEmptyEntries);
                AddPerk(PerksCollection.GetPerk(split[0]), int.Parse(split[1]));
            }
        }
Esempio n. 3
0
        public void LoadState(ObjectAttachmentState state)
        {
            RandomEncounterState encounterState = state as RandomEncounterState;

            aliasPrefix = encounterState.aliasPrefix;
        }
Esempio n. 4
0
        public void LoadState(ObjectAttachmentState state)
        {
            ActorState actorState = state as ActorState;

            actorName = actorState.actorName;
        }
Esempio n. 5
0
        public void LoadState(ObjectAttachmentState state)
        {
            InventoryState inventoryState = state as InventoryState;

            items = inventoryState.items;
        }
Esempio n. 6
0
        public void LoadState(ObjectAttachmentState state)
        {
            RandomEncounterSpotState encounterState = state as RandomEncounterSpotState;

            hasActiveEncounter = encounterState.hasActiveEncounter;
        }
Esempio n. 7
0
 public void LoadState(ObjectAttachmentState state)
 {
     SceneItemState itemState = state as SceneItemState;
 }