Search Results for

    Show / Hide Table of Contents

    Class LocalizationSheetBase<TValue, TRef>

    Inheritance
    object
    SheetBase<TRef>
    LocalizationSheetBase<TValue, TRef>
    LocalizationAssetSheet<TAsset>
    LocalizationStringSheet
    Implements
    ILocalizationSheet
    ILocalized
    ITable
    Inherited Members
    SheetBase<TRef>.IsLoaded
    SheetBase<TRef>.Count
    SheetBase<TRef>.m_Source
    SheetBase<TRef>.LoadAsync(CancellationToken)
    SheetBase<TRef>.LoadAsync(bool, CancellationToken)
    SheetBase<TRef>.TryGet(string, out TRef)
    SheetBase<TRef>.GetRequired(string)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Sheets
    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
    Type Name Description
    string tableName
    ITableSource source
    bool enableValueCache

    Properties

    | Edit this page View Source

    Category

    Declaration
    public TableCategory Category { get; }
    Property Value
    Type Description
    TableCategory
    | 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
    Type Description
    IReadOnlyDictionary<string, TRef>
    Overrides
    SheetBase<TRef>.Map
    | Edit this page View Source

    TableName

    Declaration
    public string TableName { get; }
    Property Value
    Type Description
    string

    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
    Type Name Description
    Locale locale
    string key
    Returns
    Type Description
    ObjectReference
    | Edit this page View Source

    HasLocale(Locale)

    Declaration
    public bool HasLocale(Locale locale)
    Parameters
    Type Name Description
    Locale locale
    Returns
    Type Description
    bool
    | Edit this page View Source

    LoadAsyncInternal(bool, CancellationToken)

    Declaration
    protected override UniTask LoadAsyncInternal(bool loadAllObjectReferences, CancellationToken ct = default)
    Parameters
    Type Name Description
    bool loadAllObjectReferences
    CancellationToken ct
    Returns
    Type Description
    UniTask
    Overrides
    SheetBase<TRef>.LoadAsyncInternal(bool, CancellationToken)
    | 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
    Type Name Description
    TRef reference
    CancellationToken ct
    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
    Type Description
    bool
    | 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
    Type Description
    bool

    Implements

    ILocalizationSheet
    ILocalized
    ITable

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation