Show / Hide Table of Contents

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.

Inheritance
Object
Parser
Namespace: DaggerfallWorkshop.Game.Questing
Assembly: Assembly-CSharp.dll
Syntax
public class Parser

Constructors

| Improve this Doc View Source

Parser()

Default constructor.

Declaration
public Parser()

Methods

| Improve this Doc View Source

GetFieldIntValue(String)

Declaration
public static int GetFieldIntValue(string text)
Parameters
Type Name Description
String text
Returns
Type Description
Int32
| Improve this Doc View Source

GetFieldStringValue(String)

Declaration
public static string GetFieldStringValue(string text)
Parameters
Type Name Description
String text
Returns
Type Description
String
| Improve this Doc View Source

GetInnerSymbolName(String)

Declaration
public static string GetInnerSymbolName(string symbol)
Parameters
Type Name Description
String symbol
Returns
Type Description
String
| 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
Type Description
Quest
| Improve this Doc View Source

ParseInt(String)

Declaration
public static int ParseInt(string text)
Parameters
Type Name Description
String text
Returns
Type Description
Int32
| Improve this Doc View Source

SplitField(String, Int32, Boolean)

Declaration
public static string[] SplitField(string text, int expectedCount = 2, bool trim = true)
Parameters
Type Name Description
String text
Int32 expectedCount
Boolean trim
Returns
Type Description
String[]
| Improve this Doc View Source

SplitLine(String, Boolean)

Declaration
public static string[] SplitLine(string text, bool trim = true)
Parameters
Type Name Description
String text
Boolean trim
Returns
Type Description
String[]
| Improve this Doc View Source

TrimLines(ref String[])

Declaration
public static void TrimLines(ref string[] lines)
Parameters
Type Name Description
String[] lines
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX