コード例 #1
0
        void LoadLSSettings(string[] allMaps)
        {
            lsHelper = new GamesHelper(
                LSGame.Instance, ls_cbStart, ls_cbMap, ls_cbMain,
                ls_btnStart, ls_btnStop, ls_btnEnd,
                ls_btnAdd, ls_btnRemove, ls_lstUsed, ls_lstNotUsed);
            lsHelper.Load(allMaps);

            LSConfig cfg = LSGame.Config;

            ls_numMax.Value = cfg.MaxLives;
        }
コード例 #2
0
        void SaveLSSettings()
        {
            try {
                LSConfig cfg = LSGame.Config;
                cfg.MaxLives = (int)ls_numMax.Value;

                lsHelper.Save();
                SaveLSMapSettings();
            } catch (Exception ex) {
                Logger.LogError("Error saving Lava Survival settings", ex);
            }
        }