コード例 #1
0
 protected bool tryHandle(List <Key> keys_down, EditorCommandList commands)
 {
     if (this.shouldHandle(keys_down))
     {
         this.handle(commands);
         return(true);
     }
     else
     {
         return(false);
     }
 }
コード例 #2
0
 public bool handle(List <Key> keys_down, EditorCommandList commands)
 {
     if (tryHandle(keys_down, commands))
     {
         return(true);
     }
     else
     {
         if (this.next != null)
         {
             return(this.next.handle(keys_down, commands));
         }
         else
         {
             return(false);
         }
     }
 }
コード例 #3
0
 protected override void handle(EditorCommandList commands)
 {
     commands.executeCommand("save_file");
 }
コード例 #4
0
 protected abstract void handle(EditorCommandList commands);
コード例 #5
0
 protected override void handle(EditorCommandList commands)
 {
     commands.executeCommand("add_time_68");
 }
コード例 #6
0
        public Hotkeys(Editor target)
        {
            this._commands = new EditorCommandList(target);

            this._setupChain();
        }