meisterhau-ll
Preparing search index...
Components/combat/basic/default
IncomingAttack
Class IncomingAttack
来袭攻击组件
Hierarchy (
View Summary
)
BaseComponent
IncomingAttack
Index
Constructors
constructor
Properties
[
REFLECT_
ENTITY]
[
REFLECT_
MANAGER]?
allow
Tick
cancel
damage
direction
instigator
parryable
permeable
powerful
trace
Methods
approximate
Attack
Direction
detach
get
Actor
get
Manager
on
Attach
on
Detach
on
Tick
Constructors
constructor
new
IncomingAttack
(
damage
:
number
,
instigator
:
Actor
,
direction
?:
AttackDirection
,
permeable
?:
boolean
,
parryable
?:
boolean
,
powerful
?:
boolean
,
trace
?:
boolean
,
)
:
IncomingAttack
Parameters
damage
:
number
instigator
:
Actor
direction
:
AttackDirection
= 'left'
permeable
:
boolean
= false
parryable
:
boolean
= true
powerful
:
boolean
= false
trace
:
boolean
= false
Returns
IncomingAttack
Properties
[
REFLECT_
ENTITY]
"[REFLECT_ENTITY]"
:
Optional
<
Actor
>
= ...
Optional
[
REFLECT_
MANAGER]
"[REFLECT_MANAGER]"
?:
ComponentManager
allow
Tick
allowTick
:
boolean
= false
是否允许tick更新
cancel
cancel
:
boolean
= false
damage
damage
:
number
direction
direction
:
AttackDirection
= 'left'
instigator
instigator
:
Actor
parryable
parryable
:
boolean
= true
permeable
permeable
:
boolean
= false
powerful
powerful
:
boolean
= false
trace
trace
:
boolean
= false
Methods
approximate
Attack
Direction
approximateAttackDirection
()
:
"right"
|
"left"
获取近似攻击方向
Returns
"right"
|
"left"
detach
detach
(
manager
:
ComponentManager
)
:
boolean
分离组件
Parameters
manager
:
ComponentManager
Returns
boolean
get
Actor
getActor
()
:
Optional
<
Actor
>
获取所属演员
Returns
Optional
<
Actor
>
get
Manager
getManager
()
:
ComponentManager
获取组件管理器
Returns
ComponentManager
on
Attach
onAttach
()
:
void
添加此组件时,通知 AttackSensor
Returns
void
on
Detach
onDetach
(
manager
:
ComponentManager
)
:
void
|
Promise
<
void
>
组件分离时调用
Parameters
manager
:
ComponentManager
Returns
void
|
Promise
<
void
>
on
Tick
onTick
(
manager
:
ComponentManager
,
en
:
Optional
<
Actor
>
)
:
void
tick更新方法
Parameters
manager
:
ComponentManager
en
:
Optional
<
Actor
>
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
[
REFLECT_
ENTITY]
[
REFLECT_
MANAGER]
allow
Tick
cancel
damage
direction
instigator
parryable
permeable
powerful
trace
Methods
approximate
Attack
Direction
detach
get
Actor
get
Manager
on
Attach
on
Detach
on
Tick
meisterhau-ll
Loading...
来袭攻击组件