Rebel Fork Framework
|
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 | |
Context * | context_ {} |
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_ |
Utility class to remap and resolve prefab IDs. Similar to SceneResolver.