Пример #1
0
        private void StorageSetup()
        {
            if (ModSet == null)
            {
                ModSet = new ModulatorSettings(Modulator);
            }
            if (ModState == null)
            {
                ModState = new ModulatorState(Modulator);
            }
            ModState.StorageInit();

            ModSet.LoadSettings();
            ModState.LoadState();
        }
Пример #2
0
        private void StorageSetup()
        {
            if (ModSet == null)
            {
                ModSet = new ModulatorSettings(Modulator);
            }
            if (ModState == null)
            {
                ModState = new ModulatorState(Modulator);
            }
            ModState.StorageInit();

            ModSet.LoadSettings();
            ModState.LoadState();
            if (MyAPIGateway.Multiplayer.IsServer)
            {
                ModState.State.Backup = false;
                ModState.State.Online = false;
                ModState.State.Link   = false;
            }
        }