Detailed Description

This class loads data for a language within Unity at runtime. The language must always be located in the Resources folder, under Resources/Languages/{path}.

Inheritance diagram for Wrench.UnityLanguageLoader:
Wrench.LanguageLoader

Public Member Functions

 UnityLanguageLoader (string path)
 
- Public Member Functions inherited from Wrench.LanguageLoader
 LanguageLoader (string path)
 Creates a new loader for the given path. More...
 
virtual LanguageSet GetGroup (string groupName, string code)
 Loads a standard group by name. More...
 
LanguageSet Get (string code)
 Gets the language with the given code. Called very rarely. More...
 
LanguageSet[] AllLanguages ()
 Gets all available languages. More...
 

Protected Member Functions

override LanguageSet GetLanguage (string code)
 Gets the named language. More...
 
override LanguageSet[] GetAllLanguages ()
 Gets all available languages. More...
 

Private Attributes

LanguageSet[] Languages
 

Additional Inherited Members

- Public Attributes inherited from Wrench.LanguageLoader
string Path
 The path to the location of the languages. More...
 

Constructor & Destructor Documentation

Wrench.UnityLanguageLoader.UnityLanguageLoader ( string  path)
inline

Member Function Documentation

override LanguageSet [] Wrench.UnityLanguageLoader.GetAllLanguages ( )
inlineprotectedvirtual

Gets all available languages.

Reimplemented from Wrench.LanguageLoader.

override LanguageSet Wrench.UnityLanguageLoader.GetLanguage ( string  code)
inlineprotectedvirtual

Gets the named language.

Parameters
codeThe language code to find. Defined in the language tag at the top of the languages file.

Reimplemented from Wrench.LanguageLoader.

Member Data Documentation

LanguageSet [] Wrench.UnityLanguageLoader.Languages
private