gizgame/animation
import * as Animation from "gizgame/animation";Types
Binding
type Binding = { entity: Entity; component: i64; field: i64; channel: Channel; }Binds a shared animation channel to one authoritative component field.
entity:M186.Entitycomponent:i64field:i64channel:gizlang_animation.Channel
Layer
type Layer = { binding: Binding; time: f64; weight: f64; }One weighted animation use. Playback time and weights remain caller-owned ECS component data.
binding:M180.Bindingtime:f64weight:f64
Functions
apply
function apply(world: World, binding: Binding, time: f64): void throws stringWrites sampled values through the World's field validation, access scope and change tracking.
Effects: fail, read, write, alloc.
applyLayers
function applyLayers(world: World, layers: Vec<Layer>): void throws stringBlends channels targeting the same field, then writes each field once through its authoritative World.
Effects: fail, read, write, alloc.