Ejemplo n.º 1
0
        public void Load()
        {
            StoreSaveState saveState = storeIO.Load(resourceRegistry, factoryRegistry, modifierRegistry);

            ResourceCheckpoint = saveState.ResourceCheckpoint;
            FactoryManager     = saveState.FactoryManager;
            ModifierManager    = saveState.ModiferManager;
        }
Ejemplo n.º 2
0
        public void Save()
        {
            StoreSaveState saveState = new StoreSaveState()
            {
                ResourceCheckpoint = ResourceCheckpoint,
                FactoryManager     = FactoryManager,
                ModiferManager     = ModifierManager
            };

            storeIO.Save(saveState);
        }