예제 #1
0
        //protected void RadioButtonSet

        protected override void CloseAction(object sender)
        {
            base.CloseAction(sender);

            GameClientSettingsInformation gcsi = Parameter.GameClientSettingsInformation;

            //gcsi.AimType =
            gcsi.BGM = (int)(AudioHandler.BGMVolume * 100);
            gcsi.SFX = (int)(AudioHandler.SFXVolume * 100);
            //gcsi.IsBackgroundOn =
            //gcsi.InterfaceType =

            ConfigFileManager.OverwriteGameServerSettings(gcsi);
        }
예제 #2
0
        public static void Initialize()
        {
            GameClientSettingsInformation gcsi = Parameter.GameClientSettingsInformation;

#if DEBUGSCENE
            ChangeSFXVolume(20);
            ChangeBGMVolume(0);
#else
            ChangeSFXVolume(gcsi.SFX);
            ChangeBGMVolume(gcsi.BGM);
#endif
            //MediaPlayer.Volume = MasterVolume * FXVolume;
            //MediaPlayer.IsRepeating = true;

            currentActiveSonglist = new List <string>();
            songFadeoutQueue      = new Queue <List <string> >();
            playingSoundEffects   = new HashSet <SoundEffect>();
        }
예제 #3
0
        public static void Initialize(string[] args)
        {
            ConfigFileManager.CreateConfigFile(RequesterApplication.Launcher);
            ConfigFileManager.LoadConfigFile(RequesterApplication.Launcher);

            GameClientSettingsInformation = ConfigFileManager.ReadClientInformation();

            if (args.Length >= 2)
            {
                //Game has been patched
                string previousVersion = args[0];
                string currentVersion  = args[1];

                GameClientSettingsInformation.ClientVersionHistory = ObjectWrapper.DeserializeFile <PatchHistory>(
                    $@"{Directory.GetCurrentDirectory()}\{NetworkObjectParameters.LatestPatchHistoryFilename}");
                GameClientSettingsInformation.ClientVersionHistory.PatchHistoryList.Clear();
            }

            ConfigFileManager.OverwriteGameServerSettings(GameClientSettingsInformation);
        }
예제 #4
0
 public static void Initialize()
 {
     ConfigFileManager.CreateConfigFile(RequesterApplication.Launcher);
     ConfigFileManager.LoadConfigFile(RequesterApplication.Launcher);
     GameClientSettingsInformation = ConfigFileManager.ReadClientInformation();
 }
예제 #5
0
 public LauncherInformation(LauncherOperationStatus launcherDialogResult, GameClientSettingsInformation gameClientSettingsInformation, Player player)
 {
     LauncherOperationStatus       = launcherDialogResult;
     GameClientSettingsInformation = gameClientSettingsInformation;
     Player = player;
 }