protected void OnlyMode(Mode mode) { RemoveAllModesBut(mode); if (!CurrentModes.Contains(mode)) { CurrentModes.Add(mode); } }
protected virtual void NormalUsage() { Console.WriteLine("Accessing normal functions..."); OnlyMode(Mode.Normal); if (CurrentModes.Contains(Mode.Director)) { CurrentModes.Remove(Mode.Director); } }
protected void OnlyModes(List <Mode> modes) { RemoveAllModesBut(modes); foreach (var mode in modes) { if (!CurrentModes.Contains(mode)) { CurrentModes.Add(mode); } } }
protected override void NormalUsage() { Console.WriteLine("Accessing normal functions..."); OnlyModes(new List <Mode> () { Mode.Normal, Mode.Weapon }); if (CurrentModes.Contains(Mode.Director)) { CurrentModes.Remove(Mode.Director); } }