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

#include <SerializeContext.h>

Inherited by AZ::Internal::AZStdArrayEvents.

Public Member Functions

virtual void OnReadBegin (void *classPtr)
 Called right before we start reading from the instance pointed by classPtr.
 
virtual void OnReadEnd (void *classPtr)
 Called after we are done reading from the instance pointed by classPtr.
 
virtual void OnWriteBegin (void *classPtr)
 Called right before we start writing to the instance pointed by classPtr.
 
virtual void OnWriteEnd (void *classPtr)
 
virtual void OnPatchBegin (void *classPtr, const DataPatchNodeInfo &patchInfo)
 Called right before we start data patching the instance pointed by classPtr.
 
virtual void OnPatchEnd (void *classPtr, const DataPatchNodeInfo &patchInfo)
 Called after we are done data patching the instance pointed by classPtr.
 
virtual void OnLoadedFromObjectStream (void *classPtr)
 Called after an instance has been loaded from a source data stream, such as ObjectStream::Load or JsonSerialization::Load.
 
virtual void OnObjectCloned (void *classPtr)
 Called after an object is cloned in SerializeContext::EndCloneObject.
 

Detailed Description

Serialize class events. IMPORTANT: Serialize events can be called from serialization thread(s). So all functions should be thread safe.

Member Function Documentation

◆ OnWriteEnd()

virtual void AZ::Serialize::IEventHandler::OnWriteEnd ( void *  classPtr)
inlinevirtual

Called after we are done writing to the instance pointed by classPtr. NOTE: Care must be taken when using this callback. It is called when ID remapping occurs, an instance is clone or an instance is loaded from an objectstream. This means that this function can be invoked multiple times in the course of serializing a new instance from an ObjectStream or cloning an object.


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