blob: b099be8fecdce00afd24b762306d5a0cf74c419b (
plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
|
#pragma once
#include "StarJson.hpp"
#include "StarGameTypes.hpp"
namespace Star {
struct SayChatAction {
SayChatAction();
SayChatAction(EntityId entity, String const& text, Vec2F const& position);
SayChatAction(EntityId entity, String const& text, Vec2F const& position, Json const& config);
explicit operator bool() const;
EntityId entity;
String text;
Vec2F position;
Json config;
};
struct PortraitChatAction {
PortraitChatAction();
PortraitChatAction(EntityId entity, String const& portrait, String const& text, Vec2F const& position);
PortraitChatAction(EntityId entity, String const& portrait, String const& text, Vec2F const& position, Json const& config);
explicit operator bool() const;
EntityId entity;
String portrait;
String text;
Vec2F position;
Json config;
};
typedef MVariant<SayChatAction, PortraitChatAction> ChatAction;
}
|