示例#1
0
 protected void OnlyMode(Mode mode)
 {
     RemoveAllModesBut(mode);
     if (!CurrentModes.Contains(mode))
     {
         CurrentModes.Add(mode);
     }
 }
示例#2
0
        protected virtual void NormalUsage()
        {
            Console.WriteLine("Accessing normal functions...");

            OnlyMode(Mode.Normal);
            if (CurrentModes.Contains(Mode.Director))
            {
                CurrentModes.Remove(Mode.Director);
            }
        }
示例#3
0
 protected void OnlyModes(List <Mode> modes)
 {
     RemoveAllModesBut(modes);
     foreach (var mode in modes)
     {
         if (!CurrentModes.Contains(mode))
         {
             CurrentModes.Add(mode);
         }
     }
 }
示例#4
0
 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);
     }
 }