PixelCrushers.DialogueSystem.CSVExporter Class Reference

This part of the Dialogue Editor window contains the CSV export code. More...

Static Public Member Functions

static void Export (DialogueDatabase database, string filename, bool exportActors, bool exportItems, bool exportLocations, bool exportVariables, bool exportConversations, EntrytagFormat entrytagFormat)
 The main export method. More...
 
static void Export (DialogueDatabase database, string filename, bool exportActors, bool exportItems, bool exportLocations, bool exportVariables, bool exportConversations, bool exportConversationsAfterEntries, EntrytagFormat entrytagFormat)
 
static string CleanField (string s)
 
static string[] GetValues (string line)
 Returns the individual comma-separated values in a line. More...
 
static string UnwrapValue (string value)
 Returns a "fixed" version of a comma-separated value where escaped newlines have been converted back into real newlines, and optional surrounding quotes have been removed. More...
 

Detailed Description

This part of the Dialogue Editor window contains the CSV export code.

Member Function Documentation

◆ CleanField()

static string PixelCrushers.DialogueSystem.CSVExporter.CleanField ( string  s)
static

◆ Export() [1/2]

static void PixelCrushers.DialogueSystem.CSVExporter.Export ( DialogueDatabase  database,
string  filename,
bool  exportActors,
bool  exportItems,
bool  exportLocations,
bool  exportVariables,
bool  exportConversations,
bool  exportConversationsAfterEntries,
EntrytagFormat  entrytagFormat 
)
static

◆ Export() [2/2]

static void PixelCrushers.DialogueSystem.CSVExporter.Export ( DialogueDatabase  database,
string  filename,
bool  exportActors,
bool  exportItems,
bool  exportLocations,
bool  exportVariables,
bool  exportConversations,
EntrytagFormat  entrytagFormat 
)
static

The main export method.

Exports a database to a CSV file.

Parameters
databaseSource database.
filenameTarget CSV filename.
exportActorsIf set to true export actors.
exportItemsIf set to true export items.
exportLocationsIf set to true export locations.
exportVariablesIf set to true export variables.
exportConversationsIf set to true export conversations.

◆ GetValues()

static string [] PixelCrushers.DialogueSystem.CSVExporter.GetValues ( string  line)
static

Returns the individual comma-separated values in a line.

Returns
The values.
Parameters
lineLine.

◆ UnwrapValue()

static string PixelCrushers.DialogueSystem.CSVExporter.UnwrapValue ( string  value)
static

Returns a "fixed" version of a comma-separated value where escaped newlines have been converted back into real newlines, and optional surrounding quotes have been removed.

Returns
The value.
Parameters
valueValue.

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