Search Results for

    Show / Hide Table of Contents

    Class JsonTableSource

    ScriptableObject-based asset table source.

    Inheritance
    object
    JsonTableSource
    Implements
    ITableSource
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Sheets
    Assembly: Glitch9.AIDevKit.Sheets.dll
    Syntax
    public sealed class JsonTableSource : ITableSource

    Constructors

    | Edit this page View Source

    JsonTableSource(ITableReader)

    Declaration
    public JsonTableSource(ITableReader tableReader)
    Parameters
    Type Name Description
    ITableReader tableReader

    Properties

    | Edit this page View Source

    Schema

    Schema is available after the first call to LoadRowsAsync. LoadRowsAsync builds the schema internally before yielding rows.

    Declaration
    public TableSchema Schema { get; }
    Property Value
    Type Description
    TableSchema

    Methods

    | Edit this page View Source

    FromFilePath(string)

    Declaration
    public static JsonTableSource FromFilePath(string filePath)
    Parameters
    Type Name Description
    string filePath
    Returns
    Type Description
    JsonTableSource
    | Edit this page View Source

    FromTextAsset(TextAsset)

    Declaration
    public static JsonTableSource FromTextAsset(TextAsset textAsset)
    Parameters
    Type Name Description
    TextAsset textAsset
    Returns
    Type Description
    JsonTableSource
    | Edit this page View Source

    FromUrl(string)

    Declaration
    public static JsonTableSource FromUrl(string url)
    Parameters
    Type Name Description
    string url
    Returns
    Type Description
    JsonTableSource
    | Edit this page View Source

    LoadRowsAsync(CancellationToken)

    Declaration
    public IAsyncEnumerable<SheetRow> LoadRowsAsync(CancellationToken ct)
    Parameters
    Type Name Description
    CancellationToken ct
    Returns
    Type Description
    IAsyncEnumerable<SheetRow>

    Implements

    ITableSource

    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