Example #1
0
 private static PixelCrushers.DialogueSystem.ChatMapper.Assets AssetsToCmp(DialogueDatabase database, bool exportActors, bool exportItems, bool exportLocations, bool exportVariables, bool exportConversations, bool includeCanvasRect)
 {
     PixelCrushers.DialogueSystem.ChatMapper.Assets assets = new PixelCrushers.DialogueSystem.ChatMapper.Assets();
     if (exportActors)
     {
         assets.Actors = ActorsToCmp(database);
     }
     if (exportItems)
     {
         assets.Items = ItemsToCmp(database);
     }
     if (exportLocations)
     {
         assets.Locations = LocationsToCmp(database);
     }
     if (exportVariables)
     {
         assets.UserVariables = VariablesToCmp(database);
     }
     if (exportConversations)
     {
         assets.Conversations = ConversationsToCmp(database, includeCanvasRect);
     }
     AssignConnectors(assets.Conversations);
     return(assets);
 }
 private static Assets AssetsToCmp(DialogueDatabase database, bool exportActors, bool exportItems, bool exportLocations, bool exportVariables, bool exportConversations)
 {
     Assets assets = new Assets();
     if (exportActors) assets.Actors = ActorsToCmp(database);
     if (exportItems) assets.Items = ItemsToCmp(database);
     if (exportLocations) assets.Locations = LocationsToCmp(database);
     if (exportVariables) assets.UserVariables = VariablesToCmp(database);
     if (exportConversations) assets.Conversations = ConversationsToCmp(database);
     AssignConnectors(assets.Conversations);
     return assets;
 }