Example #1
0
 public void RemoveBefore(KeyMap map)
 {
     for (int i = _before.Count; i-- > 0;)
     {
         if (_before[i].main == map)
         {
             _before.RemoveAt(i);
         }
     }
 }
Example #2
0
        public KeyMapNode(KeyMap main, int priority)
        {
            this.main     = main;
            this.priority = priority;

            _before = new RWList <KeyMapNode>();
            before  = _before;

            _after = new RWList <KeyMapNode>();
            after  = _after;
        }
Example #3
0
 public void AddBefore(KeyMap map, int priority)
 {
     AddBefore(new KeyMapNode(map, priority));
 }
Example #4
0
 public void AddBefore(KeyMap map)
 {
     AddBefore(map, 0);
 }
 public KeyMapBuilder(KeyMap map, SwitchList <NamedAction> list)
 {
     this.map  = map;
     this.list = list;
 }