This wrapper for PixelCrushers.TextTable keeps references intact if you switch between the compiled assembly and source code versions of the original class. More...
Additional Inherited Members | |
Public Member Functions inherited from PixelCrushers.TextTable | |
void | OnBeforeSerialize () |
void | OnAfterDeserialize () |
bool | HasLanguage (string languageName) |
Returns true if the text table has the named language. | |
bool | HasLanguage (int languageID) |
Returns true if the text table has a language with the specified ID. | |
string | GetLanguageName (int languageID) |
Returns the name of the language with the specified ID. | |
int | GetLanguageID (string languageName) |
Returns the ID of the named language. | |
string[] | GetLanguageNames () |
Returns the names of all languages in the text table. | |
int[] | GetLanguageIDs () |
Gets the IDs of all languages in the text table. | |
void | AddLanguage (string languageName) |
Adds a language to the text table. | |
void | RemoveLanguage (string languageName) |
Removes a language from the text table, including all of its fields. | |
void | RemoveLanguage (int languageID) |
Removes a language from the text table, including all of its fields. | |
void | RemoveAll () |
Removes all languages and fields. | |
void | SortLanguages () |
Sort languages alphabetically, always keeping Default first. | |
bool | HasField (int fieldID) |
Returns true if the text table has a field with the specified field ID. | |
bool | HasField (string fieldName) |
Returns true if the text table has a field with the specified name. | |
TextTableField | GetField (int fieldID) |
Looks up a field by ID. | |
TextTableField | GetField (string fieldName) |
Looks up a field by name. | |
int | GetFieldID (string fieldName) |
Returns the ID associated with a field name. | |
string | GetFieldName (int fieldID) |
Returns the name of the field with the specified ID. | |
bool | HasFieldTextForLanguage (int fieldID, int languageID) |
Returns true if the field has text for a specified language. | |
bool | HasFieldTextForLanguage (int fieldID, string languageName) |
Returns true if the field has text for a specified language. | |
bool | HasFieldTextForLanguage (string fieldName, int languageID) |
Returns true if the field has text for a specified language. | |
bool | HasFieldTextForLanguage (string fieldName, string languageName) |
Returns true if the field has text for a specified language. | |
string | GetFieldTextForLanguage (int fieldID, int languageID) |
Looks up a field's localized text for a specified language. | |
string | GetFieldTextForLanguage (int fieldID, string languageName) |
Looks up a field's localized text for a specified language. | |
string | GetFieldTextForLanguage (string fieldName, int languageID) |
Looks up a field's localized text for a specified language. | |
string | GetFieldTextForLanguage (string fieldName, string languageName) |
Looks up a field's localized text for a specified language. | |
string | GetFieldText (int fieldID) |
Looks up a fields localized text for the current language specified by TextTable.currentLanguageID. | |
string | GetFieldText (string fieldName) |
Looks up a fields localized text for the current language specified by TextTable.currentLanguageID. | |
int[] | GetFieldIDs () |
Returns all field IDs in the text table. | |
string[] | GetFieldNames () |
Returns all field names in the text table. | |
void | AddField (string fieldName) |
Adds a field to the text table. | |
void | SetFieldTextForLanguage (int fieldID, int languageID, string text) |
Sets a field's localized text for a specified language. | |
void | SetFieldTextForLanguage (string fieldName, int languageID, string text) |
Sets a field's localized text for a specified language. | |
void | SetFieldTextForLanguage (int fieldID, string languageName, string text) |
Sets a field's localized text for a specified language. | |
void | SetFieldTextForLanguage (string fieldName, string languageName, string text) |
Sets a field's localized text for a specified language. | |
void | RemoveField (int fieldID) |
Removes a field from the text table. | |
void | RemoveField (string fieldName) |
Removes a field from the text table. | |
void | RemoveAllFields () |
Removes all fields. | |
void | InsertField (int index, string fieldName) |
Inserts a field to the text table. | |
void | SortFields () |
Sort fields alphabetically. | |
void | ReorderFields (List< string > order) |
void | ImportOtherTextTable (TextTable other) |
Properties inherited from PixelCrushers.TextTable | |
static bool | useDefaultLanguageForBlankTranslations [get, set] |
If a language's field value is blank, use the default language's field value. | |
static int | currentLanguageID [get, set] |
ID of the current language. | |
Dictionary< string, int > | languages [get, set] |
Dictionary< int, TextTableField > | fields [get, set] |
int | nextLanguageID [get] |
int | nextFieldID [get] |
This wrapper for PixelCrushers.TextTable keeps references intact if you switch between the compiled assembly and source code versions of the original class.