osb/source/game/StarChatAction.hpp

38 lines
886 B
C++
Raw Normal View History

#pragma once
2023-06-20 04:33:09 +00:00
#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;
}