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 AsyncOperationHandle PreloadOperation { get; }
 
Property Value
| Type | 
Description | 
| AsyncOperationHandle | 
 | 
Implements
Methods
  
GetLocalizedAsset_LoadTableAsync<TObject>(String, String)
Declaration
protected virtual AsyncOperationHandle<TObject> GetLocalizedAsset_LoadTableAsync<TObject>(string tableName, string key)
 
Parameters
| Type | 
Name | 
Description | 
| System.String | 
tableName | 
 | 
| System.String | 
key | 
 | 
Returns
| Type | 
Description | 
| AsyncOperationHandle<TObject> | 
 | 
Type Parameters
GetLocalizedAsset_LoadTableAsync<TObject>(String, UInt32)
Declaration
protected virtual AsyncOperationHandle<TObject> GetLocalizedAsset_LoadTableAsync<TObject>(string tableName, uint keyId)
 
Parameters
| Type | 
Name | 
Description | 
| System.String | 
tableName | 
 | 
| System.UInt32 | 
keyId | 
 | 
Returns
| Type | 
Description | 
| AsyncOperationHandle<TObject> | 
 | 
Type Parameters
GetLocalizedAssetAsync<TObject>(String, String)
Loads the asset found in the table with the key.
 
Declaration
public virtual AsyncOperationHandle<TObject> GetLocalizedAssetAsync<TObject>(string tableName, string key)
 
Parameters
| Type | 
Name | 
Description | 
| System.String | 
tableName | 
 | 
| System.String | 
key | 
 | 
Returns
| Type | 
Description | 
| AsyncOperationHandle<TObject> | 
 | 
Type Parameters
| Name | 
Description | 
| TObject | 
Asset type 
 | 
GetLocalizedAssetAsync<TObject>(String, UInt32)
Loads the asset found in the table with the key Id, taken from the KeyDatabase.
 
Declaration
public virtual AsyncOperationHandle<TObject> GetLocalizedAssetAsync<TObject>(string tableName, uint keyId)
 
Parameters
| Type | 
Name | 
Description | 
| System.String | 
tableName | 
 | 
| System.UInt32 | 
keyId | 
 | 
Returns
| Type | 
Description | 
| AsyncOperationHandle<TObject> | 
 | 
Type Parameters
| Name | 
Description | 
| TObject | 
Asset type 
 | 
GetTableAsync<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 AsyncOperationHandle<LocalizedAssetTable> GetTableAsync<TObject>(string tableName)
 
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