summaryrefslogtreecommitdiffstats
path: root/src/Chat.hpp
blob: 4d147beb6bc6ef2ceebc5625a4276f9142af5295 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;
};