StageCore beta
Interface of @v12-engine/client
ts
export interface StageCoreWhat a cinematic cannot be played without: the camera, where an entity is, and its clips
Members
camera
ts
readonly camera: {
pose(): CinematicPose;
setPose(pose: CinematicPose): void;
shake(strength: number): void;
};The stage's camera: its pose read and set, and shaken
playClip
ts
playClip(id: number, clip: string, options?: ClipOptions): boolean;Plays a clip on an entity's model with the options given; returns whether it could
where
ts
where(id: number): Vec2 | undefined;Where an entity is drawn now, or nothing when it is gone or hidden