Scripting API

Scripting API

ControllerLayer

Class in Abyss.Core, from Abyss.Core.

One layer of a controller.

public sealed class ControllerLayer

Properties

Name

public string Name { get; set; }

Its name.

Weight

public float Weight { get; set; }

How much of it is laid over the layers under it, from 0 to 1; the first's is not read.

Blending

public LayerBlending Blending { get; set; }

How it is laid over the layers under it; the first's is not read.

Mask

public BoneMask? Mask { get; set; }

The bones it moves where it overrides; null for every bone. The first's is not read.

Fade

public float Fade { get; set; }

How long a change of state fades, in seconds, where no rule says otherwise.

Curve

public FadeCurve Curve { get; set; }

Along what.

Fades

public List<FadeRule> Fades { get; }

The changes that fade otherwise.

States

public List<ControllerState> States { get; }

Its states, the first to hold playing.

Methods

KeyOf

public static ulong KeyOf(string name)

What a layer's name is known by across to the engine: the 64-bit FNV-1a hash of its UTF-8, never 0, as the engine makes it.

Parameters

  • name: The layer's name.

Copy

public ControllerLayer Copy()

A copy, its rules and states copied too.

Constants

DefaultFade

public const float DefaultFade = 0.25

How long a change of state fades where a file does not say, in seconds.