Skip to content

SeeThroughUnit beta ​

Interface of @v12-engine/client

ts
export interface SeeThroughUnit

A unit as SeeThroughLook.who is asked about it: the client's view of an entity

Members ​

hidden ​

ts
readonly hidden: boolean;

Not drawn: inside a building or a transport, or hidden by the rules

id ​

ts
readonly id: number;

The entity's id

inSight ​

ts
readonly inSight: boolean;

Seen now by the player at this screen

isBuilding ​

ts
readonly isBuilding: boolean;

A building

isResource ​

ts
readonly isResource: boolean;

A resource: a tree, a mine

isUnit ​

ts
readonly isUnit: boolean;

A unit (not a building, nor a resource)

owner ​

ts
readonly owner: number;

The player it is of

pos ​

ts
readonly pos: {
        readonly x: number;
        readonly z: number;
    };

Where it stands, in world units