IEntitySerializationContext

IEntitySerializationContextabstract

#include

Public Member Functions

virtual void Release ()=0
Call to release this interface.
virtual void SetStream (CStream *pStream)
Assign stream to save or load entity.
virtual CStream * GetStream () const =0
virtual void SetCloneState (EntityCloneState *pCloneState)
Assign current clone state.
virtual EntityCloneState * GetCloneState () const =0

Detailed Description

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

Member Function Documentation

◆ GetCloneState()

virtual EntityCloneState* IEntitySerializationContext::GetCloneState ( ) const
pure virtual
Returns
Currently assigned current clone state.

◆ GetStream()

virtual CStream* IEntitySerializationContext::GetStream ( ) const
pure virtual
Note
Always returns valid CStream pointer, no need to check if stream is NULL.
Returns
Currently assigned stream.