Open 3D Engine AzCore API Reference 26.05.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::ScriptPropertyNumber Class Reference

Inherits AZ::ScriptProperty.

Public Member Functions

 AZ_CLASS_ALLOCATOR (ScriptPropertyNumber, AZ::SystemAllocator)
 
 AZ_TYPE_INFO_WITH_NAME_DECL_API (AZCORE_API, ScriptPropertyNumber)
 
 AZ_RTTI_NO_TYPE_INFO_DECL ()
 
 ScriptPropertyNumber (const char *name, double value)
 
const voidGetDataAddress () const override
 
AZ::TypeId GetDataTypeUuid () const override
 
bool DoesTypeMatch (AZ::ScriptDataContext &context, int valueIndex) const override
 
ScriptPropertyNumberClone (const char *name) const override
 
bool Write (AZ::ScriptContext &context) override
 
bool TryRead (AZ::ScriptDataContext &context, int valueIndex) override
 
- Public Member Functions inherited from AZ::ScriptProperty
 AZ_TYPE_INFO_WITH_NAME_DECL_API (AZCORE_API, ScriptProperty)
 
 AZ_RTTI_NO_TYPE_INFO_DECL ()
 
 ScriptProperty (const char *name)
 
bool TryUpdate (const AZ::ScriptProperty *scriptProperty)
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *reflection)
 
static ScriptPropertyTryCreateProperty (AZ::ScriptDataContext &context, int valueIndex, const char *name)
 
- Static Public Member Functions inherited from AZ::ScriptProperty
static void UpdateScriptProperty (AZ::ScriptDataContext &sdc, int valueIndex, ScriptProperty **targetProperty)
 
static void Reflect (AZ::ReflectContext *reflection)
 

Public Attributes

double m_value
 
- Public Attributes inherited from AZ::ScriptProperty
AZ::u64 m_id
 
AZStd::string m_name
 

Protected Member Functions

void CloneDataFrom (const AZ::ScriptProperty *scriptProperty) override
 

Member Function Documentation

◆ Clone()

ScriptPropertyNumber * AZ::ScriptPropertyNumber::Clone ( const char name) const
overridevirtual

Implements AZ::ScriptProperty.

◆ CloneDataFrom()

void AZ::ScriptPropertyNumber::CloneDataFrom ( const AZ::ScriptProperty scriptProperty)
overrideprotectedvirtual

Implements AZ::ScriptProperty.

◆ DoesTypeMatch()

bool AZ::ScriptPropertyNumber::DoesTypeMatch ( AZ::ScriptDataContext ,
int   
) const
overridevirtual

Test if the value at the index valueIndex is of the same type as that of the instance of ScriptProperty's subclass.

Reimplemented from AZ::ScriptProperty.

◆ GetDataAddress()

const void * AZ::ScriptPropertyNumber::GetDataAddress ( ) const
inlineoverridevirtual

Implements AZ::ScriptProperty.

◆ GetDataTypeUuid()

AZ::TypeId AZ::ScriptPropertyNumber::GetDataTypeUuid ( ) const
overridevirtual

Implements AZ::ScriptProperty.

◆ TryRead()

bool AZ::ScriptPropertyNumber::TryRead ( AZ::ScriptDataContext context,
int  valueIndex 
)
overridevirtual

Reimplemented from AZ::ScriptProperty.

◆ Write()

bool AZ::ScriptPropertyNumber::Write ( AZ::ScriptContext context)
overridevirtual

Implements AZ::ScriptProperty.


The documentation for this class was generated from the following file: