32 static_assert(
sizeof(
Value) == 0x8);
53 [[nodiscard]]
bool IsInt()
const;
61 [[nodiscard]] std::int32_t
GetSInt()
const;
62 [[nodiscard]] std::uint32_t
GetUInt()
const;
83 [[nodiscard]] T
Unpack()
const;
94 static_assert(
sizeof(
Variable) == 0x10);
Definition: TypeInfo.h:10
RawType
Definition: TypeInfo.h:13
Definition: Variable.h:15
bool IsNoneObject() const
std::uint32_t GetUInt() const
Variable(const Variable &a_rhs)
bool IsLiteralArray() const
void SetFloat(float a_val)
BSTSmartPointer< Array > GetArray() const
bool IsObjectArray() const
void SetObject(BSTSmartPointer< Object > a_val, TypeInfo::RawType a_type)
bool IsObject(void) const
Variable & operator=(const Variable &a_rhs)
void SetString(std::string_view a_val)
void Pack(T &&a_src)
Definition: PackUnpack.h:292
Variable(Variable &&a_rhs)
bool operator<=(const Variable &a_rhs) const
bool operator>=(const Variable &a_rhs) const
T Unpack() const
Definition: PackUnpack.h:298
Variable & operator=(Variable &&a_rhs)
bool operator!=(const Variable &a_rhs) const
std::string_view GetString() const
void SetSInt(std::int32_t a_val)
void SetObject(BSTSmartPointer< Object > a_val)
void SetUInt(std::uint32_t a_val)
BSTSmartPointer< Object > GetObject() const
std::int32_t GetSInt() const
bool operator==(const Variable &a_rhs) const
Variable(const TypeInfo &a_type)
bool operator<(const Variable &a_rhs) const
bool operator>(const Variable &a_rhs) const
void SetArray(BSTSmartPointer< Array > a_val)
Definition: BSTSmartPointer.h:37
Definition: AbsorbEffect.h:6
Definition: Variable.h:18
float f
Definition: Variable.h:25
std::int32_t i
Definition: Variable.h:23
std::uint32_t u
Definition: Variable.h:24
void * p
Definition: Variable.h:27
BSFixedString str
Definition: Variable.h:30
BSTSmartPointer< Object > obj
Definition: Variable.h:29
bool b
Definition: Variable.h:26
BSTSmartPointer< Array > arr
Definition: Variable.h:28
Value(void *a_val=nullptr)