gizgame/clips
which clips of a rig a walker plays, and whether a rig can be a walker's figure at all. It imports nothing, so a server that only chooses a model asks the engine's own rule without the engine.
import * as Clips from "gizgame/clips";Types
Clips
type Clips = { idle: string; walk?: string; run?: string; pace?: f64; sprint?: f64; strafe?: Vec<string>; back?: string; jump?: string; fly?: string; attack?: Vec<string>; hurt?: string; fall?: string; rise?: string; talk?: string; dress?: string; dodge?: string; emotes?: Vec<Emote>; ride?: string; }The clips of a rigged figure (gizgame/scene3d chooses one each frame from what the figure does). IDLE below 0.3 m/s, WALK up to the middle of PACE and SPRINT, RUN above it, each at the speed over PACE (WALK) or SPRINT (RUN), so the feet do not slide. STRAFE (right, left) and BACK when it moves more aside or backward than ahead, JUMP in the air, FLY as it flies (Walker fly; none: its JUMP, else its idle; it leans into its flight), ATTACK in turn through a combo's strikes, HURT once as it is hurt, FALL as it falls (a figure with none topples over as a body does), RISE as it rises again at home, TALK as it speaks standing (a gesture), DRESS as it changes its clothes (Game.change; fitted to its time; none: its hands reach), DODGE once as a walker dodges (a roll). EMOTES are what a walker shows by an action of its own, or by its brain while it rests. RIDE is its body's clip on a mount (Game.mount; its idle when none): there its strikes, its hurt and its talk play in its upper body only, from its spine up, over the ride.
idle:stringwalk:_gizlang_sdk_core.Option<string>run:_gizlang_sdk_core.Option<string>pace:_gizlang_sdk_core.Option<f64>sprint:_gizlang_sdk_core.Option<f64>strafe:_gizlang_sdk_core.Option<Vec<string>>back:_gizlang_sdk_core.Option<string>jump:_gizlang_sdk_core.Option<string>fly:_gizlang_sdk_core.Option<string>attack:_gizlang_sdk_core.Option<Vec<string>>hurt:_gizlang_sdk_core.Option<string>fall:_gizlang_sdk_core.Option<string>rise:_gizlang_sdk_core.Option<string>talk:_gizlang_sdk_core.Option<string>dress:_gizlang_sdk_core.Option<string>dodge:_gizlang_sdk_core.Option<string>emotes:_gizlang_sdk_core.Option<Vec<M216.Emote>>ride:_gizlang_sdk_core.Option<string>
Emote
type Emote = { action: string; clip: string; say?: Vec<string>; }An emote: action ACTION makes a walker that stands show CLIP until it moves or the action comes again. It SAYS the next of these lines of the soundtrack (Soundtrack.lines) as it starts.
action:stringclip:stringsay:_gizlang_sdk_core.Option<Vec<string>>
Functions
clipsNamed
function clipsNamed(names: Vec<string>): Clips | undefinedThe clips of a rig that a person or a world brings, found by what its clips' NAMES say: the word after an armature's "|", whatever its case and its marks ("CharacterArmature|Run_Back" is a run back). A set of motions names them its own way, so asked by fixed names such a hero stood still as it moved. A word that starts every name is the rig's own ("Spider_Idle", "Spider_Walk") and names no motion. A rig that walks or runs and names no idle stands in its first clip that names no other motion (a fox's "Survey"). None when no clip stands: such a rig cannot be a walker's figure.
Effects: fail, alloc.