Files
watrbx-game-engine/App/include/v8datamodel/SafeChat.h
T
2025-09-18 17:55:52 -04:00

46 lines
741 B
C++

#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<std::string> code);
private:
boost::scoped_ptr<ChatOption> chatRoot;
void loadChatTree();
void loadChildren(ChatOption *node, const XmlElement *DOMsubTree);
};
class ChatOption
{
public:
ChatOption() {}
~ChatOption();
ChatOption(std::string text) {this->text = text;}
std::vector<ChatOption *> children;
std::string text;
};
} // namespace