Initial commit

This commit is contained in:
2025-12-17 16:47:48 +00:00
commit 13813f3363
4964 changed files with 1079753 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
#pragma once
#include "Tree/Service.hpp"
#include "Tree/Instance.hpp"
#include "Player.hpp"
namespace Aya
{
class PartInstance;
extern const char* const sChatService;
class ChatService
: public DescribedCreatable<ChatService, Instance, sChatService, Reflection::ClassDescriptor::INTERNAL>
, public Service
{
private:
void gotFilteredStringSuccess(std::string response, Network::Player* player, boost::function<void(std::string)> resumeFunction,
boost::function<void(std::string)> errorFunction);
void gotFilterStringError(std::string error, boost::function<void(std::string)> errorFunction);
public:
enum ChatColor
{
CHAT_BLUE,
CHAT_GREEN,
CHAT_RED
};
ChatService();
void chat(shared_ptr<Instance> instance, std::string message, ChatService::ChatColor chatColor);
void filterStringForPlayer(std::string stringToFilter, shared_ptr<Instance> playerToFilterFor, boost::function<void(std::string)> resumeFunction,
boost::function<void(std::string)> errorFunction);
Aya::remote_signal<void(shared_ptr<Instance>, std::string, ChatService::ChatColor)> chattedSignal;
};
} // namespace Aya