14 namespace GFxValueImpl
154 [[nodiscard]]
double GetX()
const;
155 [[nodiscard]]
double GetY()
const;
156 [[nodiscard]]
double GetZ()
const;
163 void Initialize(
Flag a_varsSet,
double a_x,
double a_y,
double a_rotation,
double a_xScale,
double a_yScale,
double a_alpha,
bool a_visible,
double a_z,
double a_xRotation,
double a_yRotation,
double a_zScale,
double a_fov,
const GMatrix3D* a_viewM,
const GMatrix3D* a_perspM);
166 void Set(
double a_x,
double a_y,
double a_rotation,
double a_xScale,
double a_yScale,
double a_alpha,
bool a_visible);
167 void Set(
double a_x,
double a_y,
double a_rotation,
double a_xScale,
double a_yScale,
double a_alpha,
bool a_visible,
double a_z,
double a_xRotation,
double a_yRotation,
double a_zScale);
237 bool HasMember(
void* a_data,
const char* a_name,
bool a_isDObj)
const;
253 bool SetText(
void* a_data,
const char* a_text,
bool a_isHTML);
255 bool AttachMovie(
void* a_data,
GFxValue* a_movieClip,
const char* a_symbolName,
const char* a_instanceName, std::int32_t a_depth,
const GFxValue* a_initObj);
284 GFxValueImpl::is_integer_v<T>,
287 GFxValue(static_cast<double>(a_val))
305 GFxValueImpl::is_integer_v<T>,
309 return *
this =
static_cast<double>(a_val);
355 template <std::
size_t N>
356 inline bool Invoke(
const char* a_name,
const std::array<GFxValue, N>& a_args)
358 return Invoke(a_name,
nullptr, a_args);
361 template <std::
size_t N>
362 inline bool Invoke(
const char* a_name,
GFxValue* a_result,
const std::array<GFxValue, N>& a_args)
364 return Invoke(a_name, a_result, a_args.data(), a_args.size());
386 bool AttachMovie(
GFxValue* a_movieClip,
const char* a_symbolName,
const char* a_instanceName, std::int32_t a_depth = -1,
const GFxValue* a_initObj =
nullptr);
420 static_assert(
sizeof(
GFxValue) == 0x18);
Definition: GFxMovieRoot.h:10
Definition: GFxValue.h:120
double _fov
Definition: GFxValue.h:202
double _rotation
Definition: GFxValue.h:190
void SetFOV(double a_fov)
std::uint32_t _padD4
Definition: GFxValue.h:207
void SetAlpha(double a_alpha)
double _y
Definition: GFxValue.h:189
double _zScale
Definition: GFxValue.h:201
double _xScale
Definition: GFxValue.h:191
double GetYRotation() const
void SetXScale(double a_xScale)
DisplayInfo(double a_rotation)
GMatrix3D _viewMatrix3D
Definition: GFxValue.h:203
void Set(double a_x, double a_y, double a_rotation, double a_xScale, double a_yScale, double a_alpha, bool a_visible, double a_z, double a_xRotation, double a_yRotation, double a_zScale)
std::uint16_t _pad32
Definition: GFxValue.h:196
void SetZScale(double a_zScale)
const GMatrix3D * GetPerspectiveMatrix3D() const
bool _visible
Definition: GFxValue.h:194
void SetRotation(double a_degrees)
void SetViewMatrix3D(const GMatrix3D *a_mat)
double _alpha
Definition: GFxValue.h:193
double _z
Definition: GFxValue.h:198
void SetVisible(bool a_visible)
std::uint8_t _pad31
Definition: GFxValue.h:195
double GetRotation() const
bool IsFlagSet(Flag a_flag) const
DisplayInfo(bool a_visible)
Flag
Definition: GFxValue.h:124
const GMatrix3D * GetViewMatrix3D() const
void SetScale(double a_xScale, double a_yScale)
double _x
Definition: GFxValue.h:188
void SetXRotation(double a_degrees)
std::uint32_t _pad34
Definition: GFxValue.h:197
stl::enumeration< Flag, std::uint16_t > _flags
Definition: GFxValue.h:205
void SetYRotation(double a_degrees)
std::uint16_t _padD2
Definition: GFxValue.h:206
void ClearFlags(Flag a_flags)
double _yRotation
Definition: GFxValue.h:200
double GetXRotation() const
void SetPosition(double a_x, double a_y)
void SetFlags(Flag a_flags)
DisplayInfo(double a_x, double a_y)
void Initialize(Flag a_varsSet, double a_x, double a_y, double a_rotation, double a_xScale, double a_yScale, double a_alpha, bool a_visible, double a_z, double a_xRotation, double a_yRotation, double a_zScale, double a_fov, const GMatrix3D *a_viewM, const GMatrix3D *a_perspM)
void SetYScale(double a_yScale)
GMatrix3D _perspMatrix3D
Definition: GFxValue.h:204
double _yScale
Definition: GFxValue.h:192
void SetPerspectiveMatrix3D(const GMatrix3D *a_mat)
double _xRotation
Definition: GFxValue.h:199
void Set(double a_x, double a_y, double a_rotation, double a_xScale, double a_yScale, double a_alpha, bool a_visible)
Definition: GFxValue.h:224
virtual void Visit(std::uint32_t a_idx, const GFxValue &a_val)=0
Definition: GFxValue.h:215
virtual void Visit(const char *a_name, const GFxValue &a_val)=0
Definition: GFxValue.h:212
bool SetMember(void *a_data, const char *a_name, const GFxValue &a_value, bool a_isDObj)
bool RemoveElements(void *a_data, std::uint32_t a_idx, std::int32_t a_count)
ObjectInterface(GFxMovieRoot *a_movieRoot)
bool GotoAndPlay(void *a_data, const char *a_frame, bool a_stop)
bool SetElement(void *a_data, std::uint32_t a_idx, const GFxValue &a_val)
bool PushBack(void *a_data, const GFxValue &a_value)
bool HasMember(void *a_data, const char *a_name, bool a_isDObj) const
bool IsSameContext(const ObjectInterface *a_rhs) const
GFxMovieRoot * _movieRoot
Definition: GFxValue.h:262
void ObjectRelease(GFxValue *a_val, void *a_obj)
bool Invoke(void *a_data, GFxValue *a_result, const char *a_name, const GFxValue *a_args, UPInt a_numArgs, bool a_isDObj)
void ObjectAddRef(GFxValue *a_val, void *a_obj)
std::uint32_t GetArraySize(void *a_data) const
bool SetArraySize(void *a_data, std::uint32_t a_size)
bool SetText(void *a_data, const char *a_text, bool a_isHTML)
bool SetDisplayInfo(void *a_data, const DisplayInfo &a_info)
bool AttachMovie(void *a_data, GFxValue *a_movieClip, const char *a_symbolName, const char *a_instanceName, std::int32_t a_depth, const GFxValue *a_initObj)
bool GetMember(void *a_data, const char *a_name, GFxValue *a_val, bool a_isDObj) const
bool GetElement(void *a_data, std::uint32_t a_idx, GFxValue *a_val) const
bool GetDisplayInfo(void *a_data, DisplayInfo *a_info) const
bool DeleteMember(void *a_data, const char *a_name, bool a_isDObj)
Definition: GFxValue.h:90
bool operator==(const GFxValue &a_rhs) const
bool SetMember(const char *a_name, const GFxValue &a_val)
GFxValue(const char *a_rhs)
GFxValue(std::wstring_view a_rhs)
GFxValue & operator=(const GFxValue &a_rhs)
GFxValue & operator=(const char *a_rhs)
GFxValue(ValueType a_rhs)
void SetString(std::string_view a_str)
bool RemoveElements(std::uint32_t a_idx, std::int32_t a_count=-1)
bool AttachMovie(GFxValue *a_movieClip, const char *a_symbolName, const char *a_instanceName, std::int32_t a_depth=-1, const GFxValue *a_initObj=nullptr)
GFxValue & operator=(bool a_rhs)
ValueType
Definition: GFxValue.h:96
ObjectInterface * _objectInterface
Definition: GFxValue.h:415
bool HasMember(const char *a_name) const
ValueUnion _value
Definition: GFxValue.h:418
GFxValue & operator=(std::string_view a_rhs)
void AcquireManagedValue(const GFxValue &a_rhs)
GFxValue & operator=(std::nullptr_t)
bool Invoke(const char *a_name, const std::array< GFxValue, N > &a_args)
Definition: GFxValue.h:356
bool Invoke(const char *a_name, GFxValue *a_result=nullptr)
std::size_t GetUInt() const
bool IsDisplayObject() const
GFxValue & operator=(GFxValue &&a_rhs)
bool SetArraySize(std::uint32_t a_size)
GFxValue(const GFxValue &a_rhs)
bool GetElement(std::uint32_t a_idx, GFxValue *a_val) const
bool GotoAndPlay(const char *a_frame)
bool PushBack(const GFxValue &a_val)
void SetString(const char *a_str)
GFxValue & operator=(double a_rhs)
bool DeleteMember(const char *a_name)
GFxValue(std::string_view a_rhs)
bool SetText(const char *a_text)
ValueType GetType() const
bool IsManagedValue() const
GFxValue & operator=(T a_val)
Definition: GFxValue.h:307
bool GetMember(const char *a_name, GFxValue *a_val) const
bool GetDisplayInfo(DisplayInfo *a_info) const
GFC_MEMORY_REDEFINE_NEW(GFxValue, GStatGroups::kGStatGroup_Default)
void SetStringW(std::wstring_view a_str)
GFxValue(GFxValue &&a_rhs)
bool SetDisplayInfo(const DisplayInfo &a_info)
bool SetElement(std::uint32_t a_idx, const GFxValue &a_val)
stl::enumeration< ValueType, std::uint32_t > _type
Definition: GFxValue.h:416
bool Invoke(const char *a_name, GFxValue *a_result, const std::array< GFxValue, N > &a_args)
Definition: GFxValue.h:362
void SetNumber(double a_val)
void ReleaseManagedValue()
bool Invoke(const char *a_name, GFxValue *a_result, const GFxValue *a_args, UPInt a_numArgs)
std::uint32_t _pad0C
Definition: GFxValue.h:417
bool RemoveElement(std::uint32_t a_idx)
GFxValue(const wchar_t *a_rhs)
std::uint32_t GetArraySize() const
void ChangeType(ValueType a_type)
const wchar_t * GetStringW() const
void SetBoolean(bool a_val)
const char * GetString() const
GFxValue & operator=(const wchar_t *a_rhs)
GFxValue(T a_val)
Definition: GFxValue.h:286
std::ptrdiff_t GetSInt() const
bool GotoAndStop(const char *a_frame)
void SetStringW(const wchar_t *a_str)
bool SetTextHTML(const char *a_html)
GFxValue & operator=(std::wstring_view a_rhs)
Definition: GMatrix3D.h:6
Definition: GNewOverrideBase.h:9
constexpr bool is_integer_v
Definition: GFxValue.h:86
Definition: AbsorbEffect.h:6
std::size_t UPInt
Definition: SFTypes.h:5
Definition: GFxValue.h:19
Definition: GFxValue.h:83
@ kGStatGroup_Default
Definition: GStats.h:12
Definition: GFxValue.h:399
const char * string
Definition: GFxValue.h:406
double number
Definition: GFxValue.h:404
constexpr ValueUnion()
Definition: GFxValue.h:400
const char ** managedString
Definition: GFxValue.h:407
bool boolean
Definition: GFxValue.h:405
void * obj
Definition: GFxValue.h:410
const wchar_t * wideString
Definition: GFxValue.h:408
const wchar_t ** managedWideString
Definition: GFxValue.h:409