Skip to content

CutEntity beta ​

Interface of @v12-engine/client

ts
export interface CutEntity

An entity as the screen sees it now, for a ref's query and cut.state: what it is, whose, where, and its name

Members ​

enemy ​

ts
enemy: boolean;

Of a side against the player's

id ​

ts
id: number;

The entity's id in the screen's snapshot, as world.spawn gave it

mine ​

ts
mine: boolean;

The player's own

name ​

ts
name?: string;

The name the map or the rules gave it

owner ​

ts
owner: number;

The player id that owns the entity

type ​

ts
type: string;

The unit-type or doodad-type name the entity was made from

x ​

ts
x: number;

The entity's x position in world cells

z ​

ts
z: number;

The entity's z position in world cells