Search
Preparing search index...
The search index is not available
Laniakea
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Laniakea
@laniakea/base-engine
Entity
Class Entity
Wraps EntityId to make certain EntityComponentState calls more fluent
Hierarchy
Entity
Index
Constructors
constructor
Methods
delete
get
Component
get
Id
is
Deleted
set
Component
Constructors
constructor
new
Entity
(
_ecState
:
EntityComponentState
, _id
:
EntityId
)
:
Entity
Parameters
_ecState:
EntityComponentState
_id:
EntityId
Returns
Entity
Methods
delete
delete
(
)
:
void
Returns
void
get
Component
get
Component<T>
(
componentType
:
new
(
)
=>
T
)
:
undefined
|
Component
<
T
>
Type parameters
T
:
Serializable
Parameters
componentType:
new
(
)
=>
T
new
(
)
:
T
Returns
T
Returns
undefined
|
Component
<
T
>
get
Id
get
Id
(
)
:
EntityId
Returns
EntityId
is
Deleted
is
Deleted
(
)
:
boolean
Returns
boolean
set
Component
set
Component<T>
(
data
:
T
)
:
Component
<
T
>
Type parameters
T
:
Serializable
Parameters
data:
T
Returns
Component
<
T
>
Modules
@laniakea/base-
engine
@laniakea/client-
engine
@laniakea/network-
client
@laniakea/network-
peer
@laniakea/network-
server
@laniakea/server-
engine
@laniakea/utils
Entity
constructor
delete
get
Component
get
Id
is
Deleted
set
Component
Generated using
TypeDoc
Wraps EntityId to make certain EntityComponentState calls more fluent