Class JsonTableSource
ScriptableObject-based asset table source.
Inheritance
JsonTableSource
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
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
Methods
|
Edit this page
View Source
FromFilePath(string)
Declaration
public static JsonTableSource FromFilePath(string filePath)
Parameters
| Type |
Name |
Description |
| string |
filePath |
|
Returns
|
Edit this page
View Source
FromTextAsset(TextAsset)
Declaration
public static JsonTableSource FromTextAsset(TextAsset textAsset)
Parameters
| Type |
Name |
Description |
| TextAsset |
textAsset |
|
Returns
|
Edit this page
View Source
FromUrl(string)
Declaration
public static JsonTableSource FromUrl(string url)
Parameters
| Type |
Name |
Description |
| string |
url |
|
Returns
|
Edit this page
View Source
LoadRowsAsync(CancellationToken)
Declaration
public IAsyncEnumerable<SheetRow> LoadRowsAsync(CancellationToken ct)
Parameters
Returns
Implements
Extension Methods