Class DaggerfallStringTableImporter
Helper to import classic text data into StringTables.
Namespace: DaggerfallWorkshop.Localization
Assembly: Assembly-CSharp.dll
Syntax
public static class DaggerfallStringTableImporter
Methods
| Improve this Doc View SourceConvertRSCTokensToString(Int32, TextFile.Token[])
Converts RSC tokens into a string. Tokens will be converted into simple markup. This string can be converted back into the original RSC token stream.
Declaration
public static string ConvertRSCTokensToString(int id, TextFile.Token[] tokens)
Parameters
Type | Name | Description |
---|---|---|
Int32 | id | |
TextFile.Token[] | tokens | RSC token input. |
Returns
Type | Description |
---|---|
String | String with markup converted from RSC tokens. |
ConvertStringToRSCTokens(String)
Converts string back into RSC tokens.
Declaration
public static TextFile.Token[] ConvertStringToRSCTokens(string input)
Parameters
Type | Name | Description |
---|---|---|
String | input | Input string formatted with RSC markup. |
Returns
Type | Description |
---|---|
TextFile.Token[] | Array of RSC tokens converted from TextElements. |
ExcludeFromStartTrim(Int32)
Declaration
public static bool ExcludeFromStartTrim(int id)
Parameters
Type | Name | Description |
---|---|---|
Int32 | id |
Returns
Type | Description |
---|---|
Boolean |
MakeTextRSCKey(Int32)
Create TEXT.RSC key in format "text.nnnn" where "nnnn" is numeric ID from TEXT.RSC entry.
Declaration
public static string MakeTextRSCKey(int id)
Parameters
Type | Name | Description |
---|---|---|
Int32 | id |
Returns
Type | Description |
---|---|
String | Key for TEXT.RSC ID. |