void LoadCTFSettings(string[] allMaps) { ctfHelper = new GamesHelper( CTFGame.Instance, ctf_cbStart, ctf_cbMap, ctf_cbMain, ctf_btnStart, ctf_btnStop, ctf_btnEnd, ctf_btnAdd, ctf_btnRemove, ctf_lstUsed, ctf_lstNotUsed); ctfHelper.Load(allMaps); }
void HandleStateChanged(IGame game) { GamesHelper helper = GetGameHelper(game); if (helper == null) { return; } RunOnUI_Async(() => helper.UpdateButtons()); }
void HandleMapsChanged(RoundsGame game) { GamesHelper helper = GetGameHelper(game); if (helper == null) { return; } RunOnUI_Async(() => helper.UpdateMaps()); }
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; }
void LoadTWSettings(string[] allMaps) { twHelper = new GamesHelper( TWGame.Instance, tw_cbStart, tw_cbMap, tw_cbMain, tw_btnStart, tw_btnStop, tw_btnEnd, tw_btnAdd, tw_btnRemove, tw_lstUsed, tw_lstNotUsed); twHelper.Load(allMaps); TWConfig cfg = TWGame.Config; tw_cmbDiff.SelectedIndex = (int)cfg.Difficulty; tw_cmbMode.SelectedIndex = (int)cfg.Mode; }
void LoadZSSettings(string[] allMaps) { zsHelper = new GamesHelper( ZSGame.Instance, zs_cbStart, zs_cbMap, zs_cbMain, zs_btnStart, zs_btnStop, zs_btnEnd, zs_btnAdd, zs_btnRemove, zs_lstUsed, zs_lstNotUsed); zsHelper.Load(allMaps); ZSConfig cfg = ZSGame.Config; zs_numInvHumanDur.Value = cfg.InvisibilityDuration; zs_numInvHumanMax.Value = cfg.InvisibilityPotions; zs_numInvZombieDur.Value = cfg.ZombieInvisibilityDuration; zs_numInvZombieMax.Value = cfg.ZombieInvisibilityPotions; zs_numReviveMax.Value = cfg.ReviveTimes; zs_numReviveEff.Value = cfg.ReviveChance; zs_numReviveLimit.Value = cfg.ReviveTooSlow; zs_txtName.Text = cfg.ZombieName; zs_txtModel.Text = cfg.ZombieModel; }