1681-engine / index / RoomBody
Interface: RoomBody<B> ​
Defined in: src/net/Room.ts:31
A body the server moves itself (a monster, a projectile, a crate): no input, no prediction, sent to players beside them in the same snapshots. The game writes x, y and the rest as its own simulation runs.
Type Parameters ​
| Type Parameter | Default type |
|---|---|
B | unknown |
Properties ​
aim ​
ts
aim: number;Defined in: src/net/Room.ts:36
anim ​
ts
anim: number;Defined in: src/net/Room.ts:37
data ​
ts
data: B;Defined in: src/net/Room.ts:41
The game's own description of it, sent in sp when a player first sees it.
flags ​
ts
flags: number;Defined in: src/net/Room.ts:39
hp ​
ts
hp: number;Defined in: src/net/Room.ts:38
id ​
ts
readonly id: number;Defined in: src/net/Room.ts:33
kind ​
ts
readonly kind: "body";Defined in: src/net/Room.ts:32
x ​
ts
x: number;Defined in: src/net/Room.ts:34
y ​
ts
y: number;Defined in: src/net/Room.ts:35