Semi Mod Loader
Classes | Public Types | Static Public Member Functions | Properties | Static Private Attributes | List of all members
Semi.I18N Class Reference

Classes

class  CustomLanguage
 Representation of a custom (modded) language. More...
 
class  GungeonLanguage
 Representation of a builtin (vanilla) language. More...
 
class  Language
 Abstract representation of a language. More...
 
class  LocalizationSource
 Abstract localization source. Children of this class have to define how to load localization data. More...
 
class  ModLocalization
 
class  PrefabLocalization
 Prefab localization source. This is used for localizations included with the game, to load them from the game's assets. More...
 
class  RuntimeLocalization
 

Public Types

enum  StringTable {
  StringTable.Core, StringTable.Enemies, StringTable.Intro, StringTable.Items,
  StringTable.Synergies, StringTable.UI
}
 Type of localization string table. Different elements of the game will request localizations from a different string table. For example, the GUI notification when you receive a synergy will request strings from the synergy table, but the one when you pick up an item will request strings from the item table. More...
 

Static Public Member Functions

static void ChangeLanguage (string id)
 Changes the current language to another one. More...
 
static void ReloadLocalizations ()
 Reloads loaded localization strings. More...
 

Properties

static string CurrentLanguageID [get, set]
 Global ID of the currently selected language. More...
 

Static Private Attributes

static string _CurrentLanguageID
 

Member Enumeration Documentation

◆ StringTable

enum Semi.I18N.StringTable
strong

Type of localization string table. Different elements of the game will request localizations from a different string table. For example, the GUI notification when you receive a synergy will request strings from the synergy table, but the one when you pick up an item will request strings from the item table.

Enumerator
Core 
Enemies 
Intro 
Items 
Synergies 
UI 

Member Function Documentation

◆ ChangeLanguage()

static void Semi.I18N.ChangeLanguage ( string  id)
inlinestatic

Changes the current language to another one.

Parameters
idGlobal ID of the language.

◆ ReloadLocalizations()

static void Semi.I18N.ReloadLocalizations ( )
inlinestatic

Reloads loaded localization strings.

Member Data Documentation

◆ _CurrentLanguageID

string Semi.I18N._CurrentLanguageID
staticprivate

Property Documentation

◆ CurrentLanguageID

string Semi.I18N.CurrentLanguageID
staticgetset

Global ID of the currently selected language.

The current language ID.


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