Class LocalizedAssetDatabase
Inheritance
System.Object
LocalizedAssetDatabase
Syntax
public class LocalizedAssetDatabase : LocalizedDatabase, IPreloadRequired
Fields
AssetTableLabel
Declaration
public const string AssetTableLabel = "AssetTable"
Field Value
Type |
Description |
System.String |
|
Properties
PreloadOperation
Declaration
public IAsyncOperation PreloadOperation { get; }
Property Value
Type |
Description |
IAsyncOperation |
|
Implements
Methods
GetLocalizedAsset_LoadTable<TObject>(String, String)
Declaration
protected virtual IAsyncOperation<TObject> GetLocalizedAsset_LoadTable<TObject>(string tableName, string key)where TObject : Object
Parameters
Type |
Name |
Description |
System.String |
tableName |
|
System.String |
key |
|
Returns
Type |
Description |
IAsyncOperation<TObject> |
|
Type Parameters
GetLocalizedAsset<TObject>(String, String)
Loads the asset found in the table with the key.
Declaration
public virtual IAsyncOperation<TObject> GetLocalizedAsset<TObject>(string tableName, string key)where TObject : Object
Parameters
Type |
Name |
Description |
System.String |
tableName |
|
System.String |
key |
|
Returns
Type |
Description |
IAsyncOperation<TObject> |
|
Type Parameters
Name |
Description |
TObject |
Asset type
|
GetTable<TObject>(String)
Returns the loading operation for the selected table. If isDone is true then the table can be used immediately
otherwise yield on the operation or use the callback to wait for it to be completed.
Declaration
public virtual IAsyncOperation<LocalizedAssetTable> GetTable<TObject>(string tableName)where TObject : Object
Parameters
Type |
Name |
Description |
System.String |
tableName |
|
Returns
Type Parameters
OnLocaleChanged(Locale)
Called before the LocaleChanged event is sent out in order to give the database a chance to prepare.
Declaration
public override void OnLocaleChanged(Locale locale)
Parameters
Type |
Name |
Description |
Locale |
locale |
|
Overrides