/// <summary>
        /// Handler of core commands.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="c"></param>
        protected void command(object sender, CoreCommandArgs c)
        {
            switch (c.Type)
            {
            case CoreCommandType.AbortCommand: {
                abortCommand(c);
                break;
            }

            case CoreCommandType.BuildCancel: {
                abort = true;
                break;
            }

            case CoreCommandType.Nop: {
                break;
            }

            case CoreCommandType.RawCommand: {
                rawCommand(c);
                break;
            }
            }
            receivedCommands.Push(c);
        }
Exemple #2
0
 /// <summary>
 /// Send the core command for all clients.
 /// </summary>
 /// <param name="c"></param>
 public void fire(CoreCommandArgs c)
 {
     CoreCommand(this, c);
 }
 private void command(object sender, CoreCommandArgs e)
 {
     log.info("CoreCommand: '{0}'", e.Type);
 }