Open 3D Engine EMotionFX Gem API Reference  24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
EMotionFX::SharedHelperData Class Reference

#include <ChunkProcessors.h>

Inherits EMotionFX::SharedData.

Public Types

enum  { TYPE_ID = 0x00000001 }
 

Public Member Functions

uint32 GetType () const
 
void Reset ()
 
- Public Member Functions inherited from MCore::RefCounted
 RefCounted ()
 
virtual ~RefCounted ()
 
void IncreaseReferenceCount ()
 
void DecreaseReferenceCount ()
 
void Destroy ()
 
uint32 GetReferenceCount () const
 

Static Public Member Functions

static SharedHelperDataCreate ()
 
static const char * ReadString (MCore::Stream *file, AZStd::vector< SharedData * > *sharedData, MCore::Endian::EEndianType endianType)
 

Public Attributes

uint32 m_fileHighVersion
 
uint32 m_fileLowVersion
 
uint32 m_stringStorageSize
 
bool m_isUnicodeFile
 
char * m_stringStorage
 

Protected Member Functions

 SharedHelperData ()
 
 ~SharedHelperData ()
 
- Protected Member Functions inherited from MCore::RefCounted
virtual void Delete ()
 

Detailed Description

Helper class for reading strings from files and file information storage.

Constructor & Destructor Documentation

◆ SharedHelperData()

EMotionFX::SharedHelperData::SharedHelperData ( )
protected

The constructor.

◆ ~SharedHelperData()

EMotionFX::SharedHelperData::~SharedHelperData ( )
protected

The destructor.

Member Function Documentation

◆ GetType()

uint32 EMotionFX::SharedHelperData::GetType ( ) const
inlinevirtual

Get the unique attribute type.

Returns
The attribute ID.

Implements EMotionFX::SharedData.

◆ ReadString()

static const char* EMotionFX::SharedHelperData::ReadString ( MCore::Stream file,
AZStd::vector< SharedData * > *  sharedData,
MCore::Endian::EEndianType  endianType 
)
static

Read a string chunk from a file.

Parameters
fileThe stream to read the string chunk from.
sharedDataThe array which holds the shared data objects.
endianTypeThe endian type to read the string in.
Returns
The actual string.

◆ Reset()

void EMotionFX::SharedHelperData::Reset ( )
virtual

Get rid of the information provided by the shared data.

Reimplemented from EMotionFX::SharedData.

Member Data Documentation

◆ m_fileHighVersion

uint32 EMotionFX::SharedHelperData::m_fileHighVersion

The high file version. For example 3 in case of v3.10.

◆ m_fileLowVersion

uint32 EMotionFX::SharedHelperData::m_fileLowVersion

The low file version. For example 10 in case of v3.10.

◆ m_isUnicodeFile

bool EMotionFX::SharedHelperData::m_isUnicodeFile

True in case strings in the file are saved using unicode character set, false in case they are saved using multi-byte.

◆ m_stringStorage

char* EMotionFX::SharedHelperData::m_stringStorage

The shared string buffer.

◆ m_stringStorageSize

uint32 EMotionFX::SharedHelperData::m_stringStorageSize

The size of the string buffer.


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