@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
69 lines • 1.53 kB
TypeScript
export class AnimationState {
/**
*
* @type {AnimationStateDefinition}
*/
def: AnimationStateDefinition;
/**
* Incoming transitions
* @type {AnimationTransition[]}
*/
inEdges: AnimationTransition[];
/**
* Outgoing transitions
* @type {AnimationTransition[]}
*/
outEdges: AnimationTransition[];
/**
*
* @type {AnimationGraph}
*/
graph: AnimationGraph;
/**
*
* @type {BlendStateMatrix}
*/
blendState: BlendStateMatrix;
/**
*
* @type {number}
*/
time: number;
/**
*
* @type {number}
*/
timeScale: number;
/**
*
* @param {AnimationState} other
* @returns {boolean}
*/
equals(other: AnimationState): boolean;
/**
*
* @return {number}
*/
hash(): number;
initialize(): void;
updateBlendState(): void;
/**
*
* @param {number} timeDelta in seconds
*/
tick(timeDelta: number): void;
/**
* Executed when state becomes active
* @param {number} entity
* @param {EntityComponentDataset} ecd
*/
activate(entity: number, ecd: EntityComponentDataset): void;
/**
* Executed when state becomes inactive
* @param {number} entity
* @param {EntityComponentDataset} ecd
*/
deactivate(entity: number, ecd: EntityComponentDataset): void;
}
import { BlendStateMatrix } from "../blending/BlendStateMatrix.js";
//# sourceMappingURL=AnimationState.d.ts.map