summaryrefslogtreecommitdiffstats
path: root/src/Chat.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-10-14 18:40:34 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-01-13 03:39:32 +0100
commitabba018da3c2c8011b1485ee8e9e5b2690659c76 (patch)
tree88642b34e91957bbb5e6f05aca4107b512b7b4f2 /src/Chat.hpp
parent2017-10-09 (diff)
downloadAltCraft-abba018da3c2c8011b1485ee8e9e5b2690659c76.tar
AltCraft-abba018da3c2c8011b1485ee8e9e5b2690659c76.tar.gz
AltCraft-abba018da3c2c8011b1485ee8e9e5b2690659c76.tar.bz2
AltCraft-abba018da3c2c8011b1485ee8e9e5b2690659c76.tar.lz
AltCraft-abba018da3c2c8011b1485ee8e9e5b2690659c76.tar.xz
AltCraft-abba018da3c2c8011b1485ee8e9e5b2690659c76.tar.zst
AltCraft-abba018da3c2c8011b1485ee8e9e5b2690659c76.zip
Diffstat (limited to 'src/Chat.hpp')
-rw-r--r--src/Chat.hpp24
1 files changed, 24 insertions, 0 deletions
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 <vector>
+
+struct TextModifier {
+ size_t offset;
+ size_t length;
+ enum {
+ Italic,
+ Bold,
+ Underline,
+ } type;
+};
+
+struct Chat {
+ std::vector<TextModifier> modifiers;
+ std::string text;
+
+ Chat(const std::string &str);
+
+ Chat() = default;
+
+ std::string ToJson() const;
+}; \ No newline at end of file