Preparing search index...
The search index is not available
TypeSpriteJS Game Engine - API
TypeSpriteJS Game Engine - API
ComponentRef
Class ComponentRef<T>
Type Parameters
T
extends
Component
Hierarchy
ComponentRef
Index
Constructors
constructor
Properties
active
Only
disposed
num
Searches
owner
ref
Cmp
target
Component
Name
target
Entity
Name?
Accessors
exists
ref
Methods
check
Ref
Constructors
constructor
new
Component
Ref
<
T
>
(
owner
:
Entity
, targetComponentName
:
string
, targetEntityName
?:
string
, activeOnly
?:
boolean
)
:
ComponentRef
<
T
>
Type Parameters
T
extends
Component
<
T
>
Parameters
owner:
Entity
targetComponentName:
string
Optional
targetEntityName:
string
activeOnly:
boolean
= true
Returns
ComponentRef
<
T
>
Properties
Readonly
active
Only
active
Only
:
boolean
= true
Private
disposed
disposed
:
boolean
= false
Private
num
Searches
num
Searches
:
number
= 0
Readonly
owner
owner
:
Entity
Private
ref
Cmp
ref
Cmp
:
T
= null
Readonly
target
Component
Name
target
Component
Name
:
string
Optional
Readonly
target
Entity
Name
target
Entity
Name
?:
string
Accessors
exists
get
exists
(
)
:
boolean
Returns
boolean
ref
get
ref
(
)
:
T
Returns
T
Methods
Private
check
Ref
check
Ref
(
)
:
boolean
Returns
boolean
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
Type
SpriteJS
Game
Engine -
API
Component
Ref
constructor
active
Only
disposed
num
Searches
owner
ref
Cmp
target
Component
Name
target
Entity
Name?
exists
ref
check
Ref
Generated using
TypeDoc