Class LocalizationSheetBase<TValue, TRef>
Inheritance
LocalizationSheetBase<TValue, TRef>
Assembly: Glitch9.AIDevKit.Sheets.dll
Syntax
public abstract class LocalizationSheetBase<TValue, TRef> : SheetBase<TRef>, ILocalizationSheet, ILocalized, ITable
Type Parameters
| Name |
Description |
| TValue |
|
| TRef |
|
Constructors
|
Edit this page
View Source
LocalizationSheetBase(string, ITableSource, bool)
Declaration
protected LocalizationSheetBase(string tableName, ITableSource source, bool enableValueCache)
Parameters
Properties
|
Edit this page
View Source
Category
Declaration
public TableCategory Category { get; }
Property Value
|
Edit this page
View Source
Map
Returns a read-only view of the cached map. Valid only after LoadAsync().
Declaration
public override IReadOnlyDictionary<string, TRef> Map { get; }
Property Value
Overrides
|
Edit this page
View Source
TableName
Declaration
public string TableName { get; }
Property Value
Methods
|
Edit this page
View Source
Cache(string, TValue)
Declaration
protected void Cache(string key, TValue value)
Parameters
| Type |
Name |
Description |
| string |
key |
|
| TValue |
value |
|
|
Edit this page
View Source
GetObjectReference(Locale, string)
Declaration
public ObjectReference GetObjectReference(Locale locale, string key)
Parameters
Returns
|
Edit this page
View Source
HasLocale(Locale)
Declaration
public bool HasLocale(Locale locale)
Parameters
| Type |
Name |
Description |
| Locale |
locale |
|
Returns
|
Edit this page
View Source
LoadAsyncInternal(bool, CancellationToken)
Declaration
protected override UniTask LoadAsyncInternal(bool loadAllObjectReferences, CancellationToken ct = default)
Parameters
Returns
Overrides
|
Edit this page
View Source
OnLocaleChanged(Locale)
Declaration
public void OnLocaleChanged(Locale newLocale)
Parameters
| Type |
Name |
Description |
| Locale |
newLocale |
|
|
Edit this page
View Source
ResolveAsync(TRef, CancellationToken)
Declaration
protected abstract UniTask<TValue> ResolveAsync(TRef reference, CancellationToken ct)
Parameters
Returns
| Type |
Description |
| UniTask<TValue> |
|
|
Edit this page
View Source
TryGetCached(string, out TValue)
Declaration
protected bool TryGetCached(string key, out TValue value)
Parameters
| Type |
Name |
Description |
| string |
key |
|
| TValue |
value |
|
Returns
|
Edit this page
View Source
TryGetReference(string, out TRef)
Declaration
protected bool TryGetReference(string key, out TRef reference)
Parameters
| Type |
Name |
Description |
| string |
key |
|
| TRef |
reference |
|
Returns
Implements
Extension Methods