Пример #1
0
        public CmdManager()
        {
            if (instance == null)
            {
                instance = this;
            }
            else
            {
                throw new Exception("Only one instance of CmdManager can exist at any given time.");
            }

            commandGroups = new List <CommandGroup>();
            commands      = new Dictionary <string, Command>();
            cmdParser     = new Regex(@"((\s*?[\s,;|]\s*?)((\w+)|("".+"")))+");
            RichHudCore.LateMessageEntered += MessageHandler;
        }
Пример #2
0
 protected override void UnloadData()
 {
     RichHudCore.LateMessageEntered -= MessageHandler;
     instance = null;
 }