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; }
protected override void UnloadData() { RichHudCore.LateMessageEntered -= MessageHandler; instance = null; }