Beispiel #1
0
 public override void Init()
 {
     GetSudo();
     if (!Sudo)
     {
         SudoContent sudoContent = new SudoContent(this);
         sudoContent.GetExtHash();
         throw new CannotLoadExecutionContentException();
     }
     handler = GetClientCommandHandler();
     handler.Add("damageTree", OnDamageTree);
 }
Beispiel #2
0
 public override void Init()
 {
     userSendMsgs = new List <Key <string, string> >();
     GetSudo();
     if (!Sudo)
     {
         SudoContent sudoContent = new SudoContent(this);
         sudoContent.GetExtHash();
         throw new CannotLoadExecutionContentException();
     }
     handler = GetClientCommandHandler();
     handler.Add("sendUserMsg", SendUserMsg);
 }
Beispiel #3
0
        public void AddClient(Client c)
        {
            ClientCommand cc = new ClientCommand(contexte);

            cc.Add(c);
        }