Loaders

Used for loading localizations at system startup, both in runtime and editor modes.

ILocalizationLoader

Visibility: public.

Assembly: "AD_LocalizationCore".

Namespace: "DGGLocalization.Loaders".

Methods

List<(Localization data, string displayName)> GetLocalizationDates()

Should return a list of localizations to be loaded and their names for display (used only in editor mode).

bool SetLocalizationData(Localization data)

Used for saving changes in localizations. To identify a specific one, use the GUID from data. If saving the changes fails (for example, if such localization is not present in the loader), return false. If everything is successful, return true.

LocalizationLoaderAttribute

Visibility: public.

Assembly: "AD_LocalizationCore".

Namespace: "DGGLocalization.Loaders".

Help Used for finding the LocalizationLoader. If this attribute is not specified, the system will not be able to find the loader.

Properties

bool RuntimeSupported - Whether the loader will be used for loading in Runtime.

bool EditorSupported - Whether the loader will be used for loading in Editor mode.

Constructors

LocalizationLoaderAttribute()

The loader will work in all modes.

LocalizationLoaderAttribute(bool runtimeSupported, bool editorSupported)

The loader will be used in the specified modes.

Last updated