32 #include "../../Core/System/databuffer.h"
236 void throw_if_not_complex()
const;
248 std::string value_string;
250 std::vector<NetGameEventValue> value_complex;
bool is_ucharacter() const
Is Ucharacter.
NetGameEventValue(char value)
Constructs a NetGameEventValue.
int get_integer() const
To integer.
Type get_type() const
Get Type.
NetGameEventValue(float value)
Constructs a NetGameEventValue.
NetGameEventValue(const char *str)
Constructs a NetGameEventValue.
NetGameEventValue(const wchar_t *str)
Constructs a NetGameEventValue.
NetGameEventValue.
Definition: event_value.h:41
void add_member(const NetGameEventValue &value)
Add member.
General purpose data buffer.
Definition: databuffer.h:43
unsigned char value_uchar
Definition: event_value.h:244
bool is_boolean() const
Is Boolean.
bool is_number() const
Is Number.
@ string
Definition: event_value.h:50
bool is_complex() const
Is Complex.
NetGameEventValue(unsigned char value)
Constructs a NetGameEventValue.
bool is_integer() const
Is Integer.
bool value_bool
Definition: event_value.h:246
const NetGameEventValue & get_member(unsigned int index) const
void set_member(unsigned int index, const NetGameEventValue &value)
Set member.
bool is_uinteger() const
Is Uinteger.
@ ucharacter
Definition: event_value.h:49
unsigned int value_uint
Definition: event_value.h:242
NetGameEventValue(int value)
Constructs a NetGameEventValue.
bool is_string() const
Is String.
float get_number() const
To number.
@ integer
Definition: event_value.h:46
bool is_null() const
Is Null.
DataBuffer get_binary() const
To binary.
int get_character() const
To character.
bool is_character() const
Is Character.
int value_int
Definition: event_value.h:241
NetGameEventValue(const std::string &value)
Constructs a NetGameEventValue.
NetGameEventValue(unsigned int value)
Constructs a NetGameEventValue.
NetGameEventValue(bool value)
Constructs a NetGameEventValue.
@ binary
Definition: event_value.h:54
unsigned int get_ucharacter() const
To unsigned character.
@ character
Definition: event_value.h:48
NetGameEventValue(Type type)
Constructs a NetGameEventValue.
@ uinteger
Definition: event_value.h:47
NetGameEventValue(const DataBuffer &value)
Constructs a NetGameEventValue.
float value_float
Definition: event_value.h:245
bool get_boolean() const
To boolean.
unsigned int get_member_count() const
std::string get_string() const
To string.
@ boolean
Definition: event_value.h:51
unsigned int get_uinteger() const
To unsigned integer.
bool is_binary() const
Is Binary.
@ complex
Definition: event_value.h:53
@ number
Definition: event_value.h:52
static std::string to_string(const NetGameEventValue &)
Helper function to obtain a string representation of an EventValue object.
char value_char
Definition: event_value.h:243
Type
Definition: event_value.h:44