implements ILocalization
0x00x0058
Members 10
| Offset | Size | Name | Type | Flags | Default |
|---|---|---|---|---|---|
| 0x08 | DefaultLanguage | string | Public | — | |
| 0x01 | AutoDetectLanguage | bool | Public | — | |
| 0x0019 | 0x07 | padding / unreflected | |||
| 0x08 | _languages | List<System.String> | 1 flags | — | |
| 0x08 | _translations | List<Kamgam.LocalizationForSettings.Translation> | 1 flags | — | |
| 0x08 | OnLanguageChanged | OnLanguageChangedDelegate | Public | — | |
| 0x08 | OnLanguageChangedEvent | UnityEvent<System.String> | Public | — | |
| 0x01 | LogMissingTerms | bool | Public | — | |
| 0x0041 | 0x07 | padding / unreflected | |||
| 0x08 | _translateTermCallback | TranslateTermCallback | 2 flags | — | |
| 0x04 | _sourceBehaviour | LocalizationSourceBehaviour | 2 flags | — | |
| 0x04 | _currentLanguageIndex | int | 2 flags | — | |
Functions 29
| Signature | Flags | Native | Params |
|---|---|---|---|
| void SetDynamicLocalizationCallback(TranslateTermCallback translateTermCallback) | PublicFinal+2 flags | 0x08 | |
| void SetLocalizationSourceBehaviour(const LocalizationSourceBehaviour& behaviour) | PublicFinal+2 flags | 0x04 | |
| void autoDetectLanguage() | Private | 0x00 | |
| int DetectLanguage(bool setAsCurrent) | PublicFinal+2 flags | 0x04 | |
| int AddLanguage(const string& newLanguage) | PublicFinal+2 flags | 0x08 | |
| string GetLanguage() | PublicFinal+2 flags | 0x08 | |
| int GetLanguageIndex() | PublicFinal+2 flags | 0x04 | |
| string GetLanguageAt(int languageIndex) | PublicFinal+2 flags | 0x08 | |
| int GetLanguageIndex(const string& language) | PublicFinal+2 flags | 0x08 | |
| void SetLanguageIndex(int languageIndex) | PublicFinal+2 flags | 0x04 | |
| void SetLanguage(const string& language) | PublicFinal+2 flags | 0x08 | |
| void SetLanguage(int languageIndex) | PublicFinal+2 flags | 0x04 | |
| List<System.String> GetLanguages() | PublicFinal+2 flags | 0x08 | |
| int GetLanguageCount() | PublicFinal+2 flags | 0x04 | |
| int GetTranslationCount() | PublicFinal+2 flags | 0x04 | |
| Translation GetTranslationAt(int index) | PublicFinal+2 flags | 0x08 | |
| int CreateOrUpdateTranslation(const string& term, const string& language, const string& text) | PublicFinal+2 flags | 0x08 | |
| void DeleteTranslation(const string& term) | PublicFinal+2 flags | 0x08 | |
| bool HasTerm(const string& term) | PublicFinal+2 flags | 0x08 | |
| string Get(const string& term) | PublicFinal+2 flags | 0x08 | |
| string Get(const string& term, bool ignoreDynamic) | PublicFinal+2 flags | 0x08 | |
| uint8 LocalizeListAsCopy(const uint8& terms) | PublicFinal+2 flags | 0x00 | |
| void LocalizeList(const uint8& terms, const uint8& target) | PublicFinal+2 flags | 0x00 | |
| void AddOnLanguageChangedListener(OnLanguageChangedDelegate listener) | PublicFinal+2 flags | 0x08 | |
| void RemoveOnLanguageChangedListener(OnLanguageChangedDelegate listener) | PublicFinal+2 flags | 0x08 | |
| void Sort() | PublicFinal+2 flags | 0x00 | |
| int sortByTerm(Translation a, Translation b) | 1 flags | 0x08 | |
| void TriggerLanguageChangeEvent() | PublicFinal+2 flags | 0x00 | |
| void .ctor() | Public+1 flags | 0x00 |