Rebel Fork Framework
Urho3D::PrefabNormalizer Class Reference

Utility class to remap and resolve prefab IDs. Similar to SceneResolver. More...

#include <Urho3D/Scene/NodePrefab.h>

Public Member Functions

 PrefabNormalizer (Context *context)
 
void ScanNode (NodePrefab &node)
 
void RemapAndPrune (NodePrefab &node)
 

Private Member Functions

void ScanSerializable (SerializablePrefab &prefab)
 
void ScanAttribute (AttributePrefab &attributePrefab, const AttributeInfo &attr)
 
void RemapReferencedIds ()
 
void PatchAttributes ()
 
void PruneUnreferencedIds (NodePrefab &node)
 
void PruneUnreferencedId (SerializablePrefab &prefab, bool isNode)
 

Private Attributes

Contextcontext_ {}
 
ea::vector< AttributePrefab * > nodeIdAttributes_
 
ea::vector< AttributePrefab * > componentIdAttributes_
 
ea::vector< SerializableId > referencedNodeIds_
 
ea::vector< SerializableId > referencedComponentIds_
 
ea::unordered_map< SerializableId, SerializableId > nodeIdRemap_
 
ea::unordered_map< SerializableId, SerializableId > componentIdRemap_
 

Detailed Description

Utility class to remap and resolve prefab IDs. Similar to SceneResolver.


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