#pragma once #include "V8Tree/Instance.h" #include "V8Tree/Service.h" namespace RBX { class ChatOption; // extern const char *const sSafeChat; class SafeChat { public: SafeChat() { // setName("SafeChat"); loadChatTree(); } static SafeChat& singleton(); ChatOption *getChatRoot() { return chatRoot.get(); } std::string getMessage(std::vector code); private: boost::scoped_ptr chatRoot; void loadChatTree(); void loadChildren(ChatOption *node, const XmlElement *DOMsubTree); }; class ChatOption { public: ChatOption() {} ~ChatOption(); ChatOption(std::string text) {this->text = text;} std::vector children; std::string text; }; } // namespace