Class LocalizedTable<TTable, TEntry>
Inheritance
LocalizedTable<TTable, TEntry>
Syntax
[Serializable]
public abstract class LocalizedTable<TTable, TEntry>
where TTable : DetailedLocalizationTable<TEntry> where TEntry : TableEntry
Type Parameters
Name |
Description |
TTable |
|
TEntry |
|
Properties
CurrentLoadingOperation
The current loading operation for the table. A table may not be immediately available,
so all operations are wrapped with an AsyncOperationHandle.
Declaration
public AsyncOperationHandle<TTable> CurrentLoadingOperation { get; }
Property Value
Database
Declaration
protected abstract LocalizedDatabase<TTable, TEntry> Database { get; }
Property Value
IsEmpty
Declaration
public bool IsEmpty { get; }
Property Value
TableReference
A reference to the LocalizationTable.
A table reference can be either the name of the table or the table collection name Guid.
Declaration
public TableReference TableReference { get; set; }
Property Value
Methods
ForceUpdate()
Called when a value has been changed and an update may be required.
Declaration
protected void ForceUpdate()
GetTable()
Declaration
public AsyncOperationHandle<TTable> GetTable()
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Events
TableChanged
Called whenever a table is available.
When the first LocalizedTable<TTable, TEntry>.ChangeHandler is added, a loading operation will automatically start and the table will be sent to the event when completed.
Any adding additional subscribers added after loading has completed will also be sent the latest table when they are added.
This ensures that a subscriber will always have the correct table regardless of when it was added.
The table will be refreshed whenever SelectedLocaleChanged is changed.
GetTable() when not using the event.
Declaration
public event LocalizedTable<TTable, TEntry>.ChangeHandler TableChanged
Event Type