Skip to content

Class ScriptTable

Namespace: Apogee.Reflection
Assembly: Apogee.Reflection.dll

A table a script handed to the engine, kept by reference and read when needed: what UI data models are made of. A place in it is a path of fields and list elements; reading the same path later gives what the script has put there since.

public abstract class ScriptTable : IDisposable

Inheritance

object ← ScriptTable

Derived

ScriptRecord

Implements

IDisposable

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public abstract void Dispose()

FunctionAt(ReadOnlySpan<DataPathSegment>)

The function at the path, or null.

public abstract ScriptFunction? FunctionAt(ReadOnlySpan<DataPathSegment> path)

Parameters

path ReadOnlySpan<DataPathSegment>

Returns

ScriptFunction?

GetAt(ReadOnlySpan<DataPathSegment>)

The boolean, number or string at the path, or nil.

public abstract Value GetAt(ReadOnlySpan<DataPathSegment> path)

Parameters

path ReadOnlySpan<DataPathSegment>

Returns

Value

KeysAt(ReadOnlySpan<DataPathSegment>)

The names of the fields of the table at the path, sorted.

public abstract IReadOnlyList<string> KeysAt(ReadOnlySpan<DataPathSegment> path)

Parameters

path ReadOnlySpan<DataPathSegment>

Returns

IReadOnlyList<string>

KindAt(ReadOnlySpan<DataPathSegment>)

public abstract ScriptDataKind KindAt(ReadOnlySpan<DataPathSegment> path)

Parameters

path ReadOnlySpan<DataPathSegment>

Returns

ScriptDataKind

LengthAt(ReadOnlySpan<DataPathSegment>)

The number of elements of the list at the path.

public abstract int LengthAt(ReadOnlySpan<DataPathSegment> path)

Parameters

path ReadOnlySpan<DataPathSegment>

Returns

int

SetAt(ReadOnlySpan<DataPathSegment>, Value)

Writes a scalar at the path (the field must exist). False when it cannot be.

public abstract bool SetAt(ReadOnlySpan<DataPathSegment> path, Value value)

Parameters

path ReadOnlySpan<DataPathSegment>

value Value

Returns

bool