Exemple #1
0
        public CommandHandler()
        {
            EventHandler = Values.GetEventHandler();

            CommandList.Add(new RollDiceCommand());
            CommandList.Add(new HelpCommand());
        }
Exemple #2
0
 public static void SetEventHandler(Event.EventHandler handler)
 {
     if (eventHandler == null)
     {
         eventHandler = handler;
     }
 }
 public void Detach(EventCategory category, Event.EventHandler func)
 {
     GetEvent().Detach(category, func);
 }