Plasma Engine  2.0
Loading...
Searching...
No Matches
plPrefabUtils Class Reference

Static Public Member Functions

static void LoadGraph (plAbstractObjectGraph &out_graph, plStringView sGraph)
 
static plAbstractObjectNodeGetFirstRootNode (plAbstractObjectGraph &ref_graph)
 
static void GetRootNodes (plAbstractObjectGraph &ref_graph, plHybridArray< plAbstractObjectNode *, 4 > &out_nodes)
 
static plUuid GetPrefabRoot (const plDocumentObject *pObject, const plObjectMetaData< plUuid, plDocumentObjectMetaData > &documentObjectMetaData, plInt32 *pDepth=nullptr)
 
static plVariant GetDefaultValue (const plAbstractObjectGraph &graph, const plUuid &objectGuid, plStringView sProperty, plVariant index=plVariant(), bool *pValueFound=nullptr)
 
static void WriteDiff (const plDeque< plAbstractGraphDiffOperation > &mergedDiff, plStringBuilder &out_sText)
 
static void Merge (const plAbstractObjectGraph &baseGraph, const plAbstractObjectGraph &leftGraph, const plAbstractObjectGraph &rightGraph, plDeque< plAbstractGraphDiffOperation > &out_mergedDiff)
 Merges diffs of left and right graphs relative to their base graph. Conflicts prefer the right graph.
 
static void Merge (plStringView sBase, plStringView sLeft, plDocumentObject *pRight, bool bRightIsNotPartOfPrefab, const plUuid &prefabSeed, plStringBuilder &out_sNewGraph)
 Merges diffs of left and right graphs relative to their base graph. Conflicts prefer the right graph. Base and left are provided as serialized DDL graphs and the right graph is build directly from pRight and its PrefabSeed.
 
static plString ReadDocumentAsString (plStringView sFile)
 

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