Пример #1
0
 // Token: 0x06000E27 RID: 3623 RVA: 0x003E7990 File Offset: 0x003E5B90
 public void Processkey(TriggersSet set, string newKey)
 {
     foreach (KeyValuePair <string, List <string> > current in this.KeyStatus)
     {
         if (current.Value.Contains(newKey))
         {
             set.KeyStatus[current.Key] = true;
         }
     }
     if (set.Up || set.Down || set.Left || set.Right || set.HotbarPlus || set.HotbarMinus || ((Main.gameMenu || Main.ingameOptionsWindow) && (set.MenuUp || set.MenuDown || set.MenuLeft || set.MenuRight)))
     {
         set.UsedMovementKey = true;
     }
 }
Пример #2
0
 public void Processkey(TriggersSet set, string newKey)
 {
     foreach (KeyValuePair <string, List <string> > keyStatu in this.KeyStatus)
     {
         if (keyStatu.Value.Contains(newKey))
         {
             set.KeyStatus[keyStatu.Key] = true;
         }
     }
     if (!set.Up && !set.Down && (!set.Left && !set.Right) && (!set.HotbarPlus && !set.HotbarMinus) && (!Main.gameMenu && !Main.ingameOptionsWindow || !set.MenuUp && !set.MenuDown && (!set.MenuLeft && !set.MenuRight)))
     {
         return;
     }
     set.UsedMovementKey = true;
 }
Пример #3
0
 public void Reset()
 {
     this.Old = this.Current.Clone();
     this.Current.Reset();
 }
Пример #4
0
 public void Reset()
 {
     Old = Current.Clone();
     Current.Reset();
 }