summaryrefslogblamecommitdiffstats
path: root/src/Chat.hpp
blob: 9ab56911d0bf4101f70e5f4fc66d9e2e89cee2bb (plain) (tree)
1
2
3
4


                 
                 




















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