PixelCrushers.DialogueSystem.DatabaseMerger Class Reference

This static utility class merges the contents of a dialogue database into another dialogue database. More...

Public Types

enum  ConflictingIDRule { ReplaceConflictingIDs , AllowConflictingIDs , AssignUniqueIDs }
 

Static Public Member Functions

static void Merge (DialogueDatabase destination, DialogueDatabase source, ConflictingIDRule conflictingIDRule, bool mergeProperties, bool mergeActors, bool mergeItems, bool mergeLocations, bool mergeVariables, bool mergeConversations)
 
static void Merge (DialogueDatabase destination, DialogueDatabase source, ConflictingIDRule conflictingIDRule, bool mergeProperties, bool mergeEmphases, bool mergeActors, bool mergeItems, bool mergeLocations, bool mergeVariables, bool mergeConversations)
 Merges a source database into a destination database.
 
static void Merge (DialogueDatabase destination, DialogueDatabase source, ConflictingIDRule conflictingIDRule)
 Merges a source database into a destination database.
 

Detailed Description

This static utility class merges the contents of a dialogue database into another dialogue database.

Member Enumeration Documentation

◆ ConflictingIDRule

Enumerator
ReplaceConflictingIDs 

If the same ID exists in both databases, replace the original one with the new one.

AllowConflictingIDs 

Add assets even if IDs conflict.

AssignUniqueIDs 

Assign new IDs to assets from source database.

Member Function Documentation

◆ Merge() [1/3]

static void PixelCrushers.DialogueSystem.DatabaseMerger.Merge ( DialogueDatabase  destination,
DialogueDatabase  source,
ConflictingIDRule  conflictingIDRule 
)
inlinestatic

Merges a source database into a destination database.

Note that if the destination database has an actor marked IsPlayer, then the source database will use this actor instead of any IsPlayer actors in the source database. Similarly, only one Alert variable will be added.

Parameters
destinationDestination.
sourceSource.
conflictingIDRuleSpecifies how to handle conflicting IDs.

◆ Merge() [2/3]

static void PixelCrushers.DialogueSystem.DatabaseMerger.Merge ( DialogueDatabase  destination,
DialogueDatabase  source,
ConflictingIDRule  conflictingIDRule,
bool  mergeProperties,
bool  mergeActors,
bool  mergeItems,
bool  mergeLocations,
bool  mergeVariables,
bool  mergeConversations 
)
inlinestatic

◆ Merge() [3/3]

static void PixelCrushers.DialogueSystem.DatabaseMerger.Merge ( DialogueDatabase  destination,
DialogueDatabase  source,
ConflictingIDRule  conflictingIDRule,
bool  mergeProperties,
bool  mergeEmphases,
bool  mergeActors,
bool  mergeItems,
bool  mergeLocations,
bool  mergeVariables,
bool  mergeConversations 
)
inlinestatic

Merges a source database into a destination database.

Note that if the destination database has an actor marked IsPlayer, then the source database will use this actor instead of any IsPlayer actors in the source database. Similarly, only one Alert variable will be added. This variation allows selective merge of only certain types of assets.

Parameters
destinationDestination.
sourceSource.
conflictingIDRuleSpecifies how to handle conflicting IDs.

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