#include <nodesystem_data.h>
NodeSystemData represents the serializable data of a NodeSystem. Node systems themselves can't be serialized, however you can call NodeSystem::GetNodeSystemData() to extract their persistent, serializable data and serialize that. After deserialization you have to call Instantiate to obtain a node system from the pure data.
Public Member Functions | |
MAXON_METHOD Result< NodeSystem > | Instantiate (const NodeSystemClass &cls, const AssetRepositoryRef &repo, Bool *updateReferences) const |
MAXON_METHOD SerializationNodeData * | GetData () |
MAXON_METHOD Result< NodeSystem > | Instantiate (const NodeSystemClass &cls, const AssetRepositoryRef &repo, const DataDictionary &additionalContext, Bool *updateReferences) const |
Private Member Functions | |
MAXON_INTERFACE (NodeSystemDataInterface, MAXON_REFERENCE_COPY_ON_WRITE, "net.maxon.node.interface.nodesystemdata") | |
|
private |
MAXON_METHOD Result<NodeSystem> Instantiate | ( | const NodeSystemClass & | cls, |
const AssetRepositoryRef & | repo, | ||
Bool * | updateReferences | ||
) | const |
Instantiates the node system described by this NodeSystemData for the given node system class. To resolve asset references #repo will be used.
[in] | cls | The node system class to use for the instantiation. |
[in] | repo | The asset repository to use for asset resolution. |
[out] | updateReferences | If nullptr, asset references won't be updated to the latest version. Otherwise they will (where the ASSET_UPDATE_POLICY allows), and the Bool will be set to true if at least one asset reference was updated. |
MAXON_METHOD SerializationNodeData* GetData | ( | ) |
MAXON_METHOD Result<NodeSystem> Instantiate | ( | const NodeSystemClass & | cls, |
const AssetRepositoryRef & | repo, | ||
const DataDictionary & | additionalContext, | ||
Bool * | updateReferences | ||
) | const |
Instantiates the node system described by this NodeSystemData for the given node system class. To resolve asset references #repo will be used.
[in] | cls | The node system class to use for the instantiation. |
[in] | repo | The asset repository to use for asset resolution. |
[in] | additionalContext | Supplementary instantiation context parameters. |
[out] | updateReferences | If nullptr, asset references won't be updated to the latest version. Otherwise they will (where the ASSET_UPDATE_POLICY allows), and the Bool will be set to true if at least one asset reference was updated. |