Ejemplo n.º 1
0
 public void RemoveBefore(KeyMap map)
 {
     for (int i = _before.Count; i-- > 0;)
     {
         if (_before[i].main == map)
         {
             _before.RemoveAt(i);
         }
     }
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 3
0
 public void AddBefore(KeyMap map, int priority)
 {
     AddBefore(new KeyMapNode(map, priority));
 }
Ejemplo n.º 4
0
 public void AddBefore(KeyMap map)
 {
     AddBefore(map, 0);
 }
Ejemplo n.º 5
0
 public KeyMapBuilder(KeyMap map, SwitchList <NamedAction> list)
 {
     this.map  = map;
     this.list = list;
 }