Nameless Engine
Loading...
Searching...
No Matches
ne::Node::SerializableObjectInformationWithGcPointer Struct Reference
Inheritance diagram for ne::Node::SerializableObjectInformationWithGcPointer:
ne::SerializableObjectInformation

Public Member Functions

 SerializableObjectInformationWithGcPointer (Serializable *pObject, const std::string &sObjectUniqueId, const std::unordered_map< std::string, std::string > &customAttributes={}, Serializable *pOriginalObject=nullptr, sgc::GcPtr< Node > pDeserializedOriginalObject=nullptr)
 
- Public Member Functions inherited from ne::SerializableObjectInformation
 SerializableObjectInformation (Serializable *pObject, const std::string &sObjectUniqueId, const std::unordered_map< std::string, std::string > &customAttributes={}, Serializable *pOriginalObject=nullptr)
 

Public Attributes

sgc::GcPtr< NodepDeserializedOriginalObject = nullptr
 
- Public Attributes inherited from ne::SerializableObjectInformation
SerializablepObject = nullptr
 
SerializablepOriginalObject = nullptr
 
std::string sObjectUniqueId
 
std::unordered_map< std::string, std::string > customAttributes
 

Detailed Description

Small helper struct to temporary hold a GC pointer for serializeNodeTree.

Constructor & Destructor Documentation

◆ SerializableObjectInformationWithGcPointer()

ne::Node::SerializableObjectInformationWithGcPointer::SerializableObjectInformationWithGcPointer ( Serializable pObject,
const std::string &  sObjectUniqueId,
const std::unordered_map< std::string, std::string > &  customAttributes = {},
Serializable pOriginalObject = nullptr,
sgc::GcPtr< Node pDeserializedOriginalObject = nullptr 
)
inline

Initialized object information for serialization.

Parameters
pObjectObject to serialize.
sObjectUniqueIdObject's unique ID. Don't use dots in IDs.
customAttributesOptional. Pairs of values to serialize with this object.
pOriginalObjectOptional. Use if the object was previously deserialized and you now want to only serialize changed fields of this object and additionally store the path to the original file (to deserialize unchanged fields).
pDeserializedOriginalObjectOptional. GC pointer to original object.

Member Data Documentation

◆ pDeserializedOriginalObject

sgc::GcPtr<Node> ne::Node::SerializableObjectInformationWithGcPointer::pDeserializedOriginalObject = nullptr

GC pointer to the deserialized original object.


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