Empty

The shared runtime context that ignores query registrations.


var context = KeyframeRuntimeContext.Empty.INSTANCE;

Since

3.7.0

Entries

Link copied to clipboard

The singleton returned by empty.

Companion functions

Link copied to clipboard
@NotNull
open fun empty(): @NotNull KeyframeRuntimeContext
Gets a context that ignores query registrations.
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

Functions

Link copied to clipboard
open fun set(@NotNull key: @NotNull String, value: Float)
Binds a fixed numeric value to a Molang query in this context.
open fun set(@NotNull key: @NotNull String, @NotNull function: @NotNull KeyframeRuntimeContext.FloatFunction)
Binds a Molang query to a function that accepts zero to three numeric arguments.
Link copied to clipboard
open fun setFunction(@NotNull key: @NotNull String, @NotNull function: @NotNull KeyframeRuntimeContext.FloatFunction0)
Binds a Molang query that accepts no arguments.
open fun setFunction(@NotNull key: @NotNull String, @NotNull function: @NotNull KeyframeRuntimeContext.FloatFunction1)
Binds a Molang query that accepts one numeric argument.
open fun setFunction(@NotNull key: @NotNull String, @NotNull function: @NotNull KeyframeRuntimeContext.FloatFunction2)
Binds a Molang query that accepts two numeric arguments.
open fun setFunction(@NotNull key: @NotNull String, @NotNull function: @NotNull KeyframeRuntimeContext.FloatFunction3)
Binds a Molang query that accepts three numeric arguments.