Preparing search index...
The search index is not available
sparkengineweb
sparkengineweb
IEntity
Interface IEntity
interface
IEntity
{
name
:
string
;
uuid
:
string
;
addComponent
(
component
:
IComponent
)
:
void
;
getComponent
<
T
>
(
type
:
string
)
:
undefined
|
T
;
toJson
(
)
:
WithType
<
EntityProps
>
;
}
Implemented by
BaseEntity
Index
Properties
name
uuid
Methods
add
Component
get
Component
to
Json
Properties
name
name
:
string
uuid
uuid
:
string
Methods
add
Component
add
Component
(
component
)
:
void
Parameters
component
:
IComponent
Returns
void
get
Component
get
Component
<
T
>
(
type
)
:
undefined
|
T
Type Parameters
T
extends
IComponent
Parameters
type
:
string
Returns
undefined
|
T
to
Json
to
Json
(
)
:
WithType
<
EntityProps
>
Returns a Json Object representation of the Entity
Returns
WithType
<
EntityProps
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
name
uuid
Methods
add
Component
get
Component
to
Json
sparkengineweb
Loading...
Returns a Json Object representation of the Entity