Class Parser
Reads a quest source file and generates new quest object.
Final step of parsing may be handed off to components as text at construction time.
This allows parser to handle high-level structure while components take care of their own specific needs.
Assembly: Assembly-CSharp.dll
Syntax
Constructors
|
Improve this Doc
View Source
Parser()
Declaration
Methods
|
Improve this Doc
View Source
GetFieldIntValue(String)
Declaration
public static int GetFieldIntValue(string text)
Parameters
Type |
Name |
Description |
String |
text |
|
Returns
|
Improve this Doc
View Source
GetFieldStringValue(String)
Declaration
public static string GetFieldStringValue(string text)
Parameters
Type |
Name |
Description |
String |
text |
|
Returns
|
Improve this Doc
View Source
GetInnerSymbolName(String)
Declaration
public static string GetInnerSymbolName(string symbol)
Parameters
Type |
Name |
Description |
String |
symbol |
|
Returns
|
Improve this Doc
View Source
Parse(String[], Int32, Boolean)
Attempts to parse a text source file.
Declaration
public Quest Parse(string[] source, int factionId, bool partialParse = false)
Parameters
Type |
Name |
Description |
String[] |
source |
Array of text lines from quest source.
|
Int32 |
factionId |
Faction id of quest giver for guilds.
|
Boolean |
partialParse |
If true the QRC and QBN sections will not be parsed.
|
Returns
|
Improve this Doc
View Source
ParseInt(String)
Declaration
public static int ParseInt(string text)
Parameters
Type |
Name |
Description |
String |
text |
|
Returns
|
Improve this Doc
View Source
SplitField(String, Int32, Boolean)
Declaration
public static string[] SplitField(string text, int expectedCount = 2, bool trim = true)
Parameters
Returns
|
Improve this Doc
View Source
SplitLine(String, Boolean)
Declaration
public static string[] SplitLine(string text, bool trim = true)
Parameters
Returns
|
Improve this Doc
View Source
TrimLines(ref String[])
Declaration
public static void TrimLines(ref string[] lines)
Parameters
Type |
Name |
Description |
String[] |
lines |
|