summaryrefslogtreecommitdiffstats
path: root/src/Chat.hpp
blob: 9ab56911d0bf4101f70e5f4fc66d9e2e89cee2bb (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
25
#pragma once

#include <vector>
#include <string>

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;
};