From abba018da3c2c8011b1485ee8e9e5b2690659c76 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sat, 14 Oct 2017 21:40:34 +0500 Subject: 2017-10-14 --- src/Chat.hpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/Chat.hpp (limited to 'src/Chat.hpp') diff --git a/src/Chat.hpp b/src/Chat.hpp new file mode 100644 index 0000000..4d147be --- /dev/null +++ b/src/Chat.hpp @@ -0,0 +1,24 @@ +#pragma once + +#include + +struct TextModifier { + size_t offset; + size_t length; + enum { + Italic, + Bold, + Underline, + } type; +}; + +struct Chat { + std::vector modifiers; + std::string text; + + Chat(const std::string &str); + + Chat() = default; + + std::string ToJson() const; +}; \ No newline at end of file -- cgit v1.2.3