v1.4.4
This commit is contained in:
commit
9c94d113d3
10260 changed files with 1237388 additions and 0 deletions
40
source/game/StarChatAction.hpp
Normal file
40
source/game/StarChatAction.hpp
Normal file
|
@ -0,0 +1,40 @@
|
|||
#ifndef STAR_CHAT_ACTION_HPP
|
||||
#define STAR_CHAT_ACTION_HPP
|
||||
|
||||
#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;
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue