Scripting API

Scripting API

ClipEventFields

Class in Abyss.Core, from Abyss.Core.

An event's fields, as a model's import settings keep them: a JSON object of the struct's fields by their dotted names, each a number, or a list of numbers for an array, as a scene keeps a component's.

public static class ClipEventFields

Methods

Read

public static IReadOnlyList<(string Name, FieldValue[] Values)> Read(string json)

The fields an event's JSON holds, by name, in its order; none for text that is not an object.

Parameters

  • json: The event's fields.

Write

public static string Write(IEnumerable<(string Name, FieldValue[] Values)> fields)

Writes fields as an event's JSON, each number as short as it can be without changing it.

Parameters

  • fields: The fields, by name.