Class: Entity<T>
Type parameters
| Name | Type |
|---|---|
T | any |
Hierarchy
-
Group↳
Entity
Constructors
constructor
• new Entity<T>(id): Entity<T>
Type parameters
| Name | Type |
|---|---|
T | any |
Parameters
| Name | Type |
|---|---|
id | string |
Returns
Entity<T>
Overrides
Group.constructor
Properties
entId
• entId: string
entType
• entType: string = ""
metadata
• metadata: T = null
offscreenRadius
• Optional offscreenRadius: number
Blocks around the entity that bound what it draws, for the off-screen
test: around its group's position, or around the position the server
last gave it when its class leaves the group at the origin and poses a
child in world space. Unset, OFFSCREEN_DEFAULT_RADIUS.
offscreenUpdateInterval
• Optional offscreenUpdateInterval: number
This entity's own EntitiesOptions.offscreenUpdateInterval (1: every frame, wherever it is). Unset, it takes the option.
onCreate
• onCreate: (data: T) => void
Type declaration
▸ (data): void
Parameters
| Name | Type |
|---|---|
data | T |
Returns
void