CameraOrder beta
Interface of @v12-engine/engine
ts
export interface CameraOrderWhat the rules may say of a player's camera (cameraFor, the camera command). Any of them, together
Members
bounds
ts
bounds?: CameraRect | null;Where the player may look from now on, under any lock (RtsCamera.bounds). null goes back to what the game's view says
lock
ts
lock?: CameraRect | null;Keeps the view in this part of the map until told otherwise (RtsCamera.lock). null lets it go (RtsCamera.free)
pan
ts
pan?: {
x: number;
z: number;
seconds?: number;
ease?: string;
};Moves the view over to a point, in seconds (1 when left out), by an ease of the view's by name (inOutQuad when left out)
shake
ts
shake?: {
strength: number;
x?: number;
z?: number;
};Shakes the view, about 1 for a big blast. Where it looks when no x and z, felt less the farther off they are (RtsCamera.shake)