Example #1
0
 public UserSettingsCommand(QualitySettingsModule qualitySettingsModule, DisplaySettingsModule displaySettingsModule, AudioSettingsModule audioSettingsModule,
                            WindowSettingsModule windowSettingsModule, GameplaySettingsModule gameplaySettingsModule)
 {
     QualitySettingsModule  = qualitySettingsModule;
     DisplaySettingsModule  = displaySettingsModule;
     AudioSettingsModule    = audioSettingsModule;
     WindowSettingsModule   = windowSettingsModule;
     GameplaySettingsModule = gameplaySettingsModule;
 }
Example #2
0
        public static Command write(QualitySettingsModule qualitySettingsModule, DisplaySettingsModule displaySettingsModule, AudioSettingsModule audioSettingsModule,
                                    WindowSettingsModule windowSettingsModule, GameplaySettingsModule gameplaySettingsModule)
        {
            var cmd = new ByteArray(ID);

            cmd.AddBytes(qualitySettingsModule.write());
            cmd.AddBytes(displaySettingsModule.write());
            cmd.AddBytes(audioSettingsModule.write());
            cmd.AddBytes(windowSettingsModule.write());
            cmd.AddBytes(gameplaySettingsModule.write());
            return(new Command(cmd.ToByteArray(), false));
        }