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
BSTSmartPointer< Array > GetArray() const
std::uint32_t GetUInt() const
Variable(const Variable &a_rhs)
bool IsLiteralArray() const
void SetFloat(float a_val)
bool IsObjectArray() const
void SetObject(BSTSmartPointer< Object > a_val, TypeInfo::RawType a_type)
Variable & operator=(const Variable &a_rhs)
bool IsObject(void) const
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
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)
Variable & operator=(Variable &&a_rhs)
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)
BSTSmartPointer< Object > GetObject() const
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)