mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-07 22:07:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user