IEntitySerializationContext

C++
struct IEntitySerializationContext {
};
File

IEntitySerialize.h

Description

IEntitySerializer interface is passed to IEntity::Serialize method. It provides entity with all the data needed to serialize or deserialize an entity.

IEntitySerializationContext::GetCloneState Method
C++
virtual EntityCloneState* GetCloneState() const = 0;
Description

Returns currently Assign current clone state.

IEntitySerializationContext::GetStream Method
C++
virtual CStream* GetStream() const = 0;
Returns

Always return valid CStream pointer, no need to check if stream is NULL.

Description

Returns currently assigned stream.

IEntitySerializationContext::Release Method
C++
virtual void Release() = 0;
Description

Call to release this interface.

IEntitySerializationContext::SetCloneState Method
C++
virtual void SetCloneState(EntityCloneState * pCloneState);
Description

Assign current clone state.

IEntitySerializationContext::SetStream Method
C++
virtual void SetStream(CStream * pStream);
Description

Assign stream to save or load entity.