AR_Engine_SDK
Functions | Variables
XEAbilitySystemComponent.lua File Reference
类 XEAbilitySystemComponent 继承关系图:
Inheritance graph

Functions

function XEAbilitySystemComponent__AbilityWrapper new () end
 @type XEGameplayAbilitySpecHandle 索引 More...
 
function XEAbilitySystemComponent Tick (fDelMs, bForceTick) end
 
function XEAbilitySystemComponent Render (pViewport) end
 
function XEAbilitySystemComponent Empty () end
 
function XEAbilitySystemComponent Release () end
 
function XEAbilitySystemComponent InitAbilityActorInfo (InOwnerActor, InAvatarActor) end
 
function XEAbilitySystemComponent GetShouldTick () end
 
function XEAbilitySystemComponent SetProjectileOnHit (hit) end
 
function XEAbilitySystemComponent SetCollisionCheck (check) end
 
function XEAbilitySystemComponent SetPositionCollisionCheck (check) end
 
function XEAbilitySystemComponent AddGameplayAbility (abilityFile) end
 
function XEAbilitySystemComponent ActivateAbility (AbilityToActivate) end
 
function XEAbilitySystemComponent UpdateGameplayAbility (idx, ability) end
 
function XEAbilitySystemComponent GiveAbility (AbilitySpec) end
 
function XEAbilitySystemComponent GiveAbilityAndActivateOnce (AbilitySpec) end
 
function XEAbilitySystemComponent ClearAllAbilities () end
 
function XEAbilitySystemComponent ClearAbility (Handle) end
 
function XEAbilitySystemComponent CancelAbility (Ability) end
 
function XEAbilitySystemComponent CancelAbilityHandle (AbilityHandle) end
 
function XEAbilitySystemComponent CancelAbilities (WithTags, WithoutTags, Ignore) end
 
function XEAbilitySystemComponent CancelAllAbilities (Ignore) end
 
function XEAbilitySystemComponent SetRemoveAbilityOnEnd (AbilitySpecHandle) end
 
function XEAbilitySystemComponent GetActivatableGameplayAbilitySpecsByAllMatchingTags (GameplayTagContainer, MatchingGameplayAbilities, bOnlyAbilitiesThatSatisfyTagRequirements) end
 
function XEAbilitySystemComponent TryActivateAbilitiesByTag (GameplayTagContainer, bAllowRemoteActivation) end
 
function XEAbilitySystemComponent TryActivateAbility (AbilityToActivate, bAllowRemoteActivation) end
 
function XEAbilitySystemComponent TriggerAbilityFromGameplayEvent (AbilityToTrigger, ActorInfo, Tag, Payload, Component) end
 
function XEAbilitySystemComponent FindAbilitySpecFromHandle (Handle) end
 
function XEAbilitySystemComponent FindAbilitySpecFromGEHandle (Handle) end
 
function XEAbilitySystemComponent GetActivatableAbilities () end
 
function XEAbilitySystemComponent GetActiveAbilityHandles () end
 
function XEAbilitySystemComponent GetActiveAbilityHandle (idx) end
 
function XEAbilitySystemComponent SetAvatarActor (InAvatarActor) end
 
function XEAbilitySystemComponent GetAvatarActor () end
 
function XEAbilitySystemComponent ClearActorInfo () end
 
function XEAbilitySystemComponent SetAbilityTargetPos (idx, targetIndx, pos) end
 
function XEAbilitySystemComponent SetAbilityTargetActorName (idx, targetIndx, name) end
 
function XEAbilitySystemComponent SetAbilityTargetSocketName (idx, targetIndx, name) end
 

Variables

 XEAbilitySystemComponent = {}
 
XEAbilitySystemComponent EAES_Executing = 0
 
XEAbilitySystemComponent EAES_Succeeded = 0
 
XEAbilitySystemComponent EAES_Failed = 0
 
 XEAbilitySystemComponent__AbilityWrapper = {}
 
XEAbilitySystemComponent AbilityWrapper = XEAbilitySystemComponent__AbilityWrapper
 

Function Documentation

◆ ActivateAbility()

function XEAbilitySystemComponent ActivateAbility ( AbilityToActivate  )

激活技能

Parameters
AbilityToActivateXEGameplayAbilitySpecHandle 技能句柄
Returns
boolean

◆ AddGameplayAbility()

function XEAbilitySystemComponent AddGameplayAbility ( abilityFile  )

添加技能

Parameters
abilityFilestring 技能文件
Returns
boolean

◆ CancelAbilities()

function XEAbilitySystemComponent CancelAbilities ( WithTags  ,
WithoutTags  ,
Ignore   
)

取消技能

Parameters
WithTagsXEGameplayTagContainer
WithoutTagsXEGameplayTagContainer
IgnoreXEGameplayAbilityInstance
Returns
void

◆ CancelAbility()

function XEAbilitySystemComponent CancelAbility ( Ability  )

取消技能

Parameters
AbilityXEGameplayAbility
Returns
void

取消技能

Parameters
AbilityXEGameplayAbilityInstance
Returns
void

◆ CancelAbilityHandle()

function XEAbilitySystemComponent CancelAbilityHandle ( AbilityHandle  )

取消技能

Parameters
AbilityHandleXEGameplayAbilitySpecHandle
Returns
void

◆ CancelAllAbilities()

function XEAbilitySystemComponent CancelAllAbilities ( Ignore  )

取消所有技能

Parameters
IgnoreXEGameplayAbility
Returns
void

◆ ClearAbility()

function XEAbilitySystemComponent ClearAbility ( Handle  )

清除技能

Parameters
HandleXEGameplayAbilitySpecHandle
Returns
void

◆ ClearActorInfo()

function XEAbilitySystemComponent ClearActorInfo ( )

清除技能信息

Returns
void

◆ ClearAllAbilities()

function XEAbilitySystemComponent ClearAllAbilities ( )

清除所有技能

Returns
void

◆ Empty()

function XEAbilitySystemComponent Empty ( )

清空当前组件

Returns
void

◆ FindAbilitySpecFromGEHandle()

function XEAbilitySystemComponent FindAbilitySpecFromGEHandle ( Handle  )

XEAbilitySystemComponent_FindAbilitySpecFromGEHandle00

Parameters
HandleXEActiveGameplayEffectHandle
Returns
XEGameplayAbilitySpec

◆ FindAbilitySpecFromHandle()

function XEAbilitySystemComponent FindAbilitySpecFromHandle ( Handle  )

获取技能通过句柄

Parameters
HandleXEGameplayAbilitySpecHandle 技能句柄
Returns
XEGameplayAbilitySpec

◆ GetActivatableAbilities()

function XEAbilitySystemComponent GetActivatableAbilities ( )

获取激活的技能

Returns
XEGameplayAbilitySpec[]

◆ GetActivatableGameplayAbilitySpecsByAllMatchingTags()

function XEAbilitySystemComponent GetActivatableGameplayAbilitySpecsByAllMatchingTags ( GameplayTagContainer  ,
MatchingGameplayAbilities  ,
bOnlyAbilitiesThatSatisfyTagRequirements   
)

XEAbilitySystemComponent_GetActivatableGameplayAbilitySpecsByAllMatchingTags00

Parameters
GameplayTagContainerXEGameplayTagContainer
MatchingGameplayAbilitiesXEGameplayAbilitySpec[]
bOnlyAbilitiesThatSatisfyTagRequirementsboolean
Returns
void

◆ GetActiveAbilityHandle()

function XEAbilitySystemComponent GetActiveAbilityHandle ( idx  )

获取激活的技能句柄

Parameters
idxnumber
Returns
XEGameplayAbilitySpecHandle

◆ GetActiveAbilityHandles()

function XEAbilitySystemComponent GetActiveAbilityHandles ( )

获取所有激活的技能句柄

Returns
XEGameplayAbilitySpecHandle[]

◆ GetAvatarActor()

function XEAbilitySystemComponent GetAvatarActor ( )

获取技能对象

Returns
XEActor

◆ GetShouldTick()

function XEAbilitySystemComponent GetShouldTick ( )

XEAbilitySystemComponent_GetShouldTick00

Returns
boolean

◆ GiveAbility()

function XEAbilitySystemComponent GiveAbility ( AbilitySpec  )

赋予技能,并根据类型创建实例

Parameters
AbilitySpecXEGameplayAbilitySpec 技能
Returns
XEGameplayAbilitySpecHandle

◆ GiveAbilityAndActivateOnce()

function XEAbilitySystemComponent GiveAbilityAndActivateOnce ( AbilitySpec  )

赋予技能,并直接激活技能

Parameters
AbilitySpecXEGameplayAbilitySpec 技能
Returns
XEGameplayAbilitySpecHandle

◆ InitAbilityActorInfo()

function XEAbilitySystemComponent InitAbilityActorInfo ( InOwnerActor  ,
InAvatarActor   
)

初始化技能对象信息

Parameters
InOwnerActorXEActor 施法者
InAvatarActorXEActor 受击者。
Returns
void

◆ new()

@type XEGameplayAbilitySpecHandle 索引

XEAbilitySystemComponent_AbilityWrapper_new00

Returns
XEAbilitySystemComponent__AbilityWrapper

@type boolean stand by ability @type string using path to generate the actual ability. XEAbilitySystemComponent_new00

Returns
XEAbilitySystemComponent

@type XEGameplayEventData @type boolean XEAbilitySystemComponent_XEPendingAbilityInfo_new00

Returns
XEAbilitySystemComponent__XEPendingAbilityInfo

XEAbilitySystemComponent_XEExecutingAbilityInfo_new00

Returns
XEAbilitySystemComponent__XEExecutingAbilityInfo

◆ Release()

function XEAbilitySystemComponent Release ( )

释放资源

Returns
void

◆ Render()

function XEAbilitySystemComponent Render ( pViewport  )

渲染当前组件,此函数每帧都会被 XEActor 调用

Parameters
pViewportXEViewport
Returns
void

◆ SetAbilityTargetActorName()

function XEAbilitySystemComponent SetAbilityTargetActorName ( idx  ,
targetIndx  ,
name   
)

设置技能对象Actor名称

Parameters
idxnumber 技能Id
targetIndxnumber 对象Id
namestring Actor名称
Returns
void

◆ SetAbilityTargetPos()

function XEAbilitySystemComponent SetAbilityTargetPos ( idx  ,
targetIndx  ,
pos   
)

设置技能对象位置

Parameters
idxnumber 技能Id
targetIndxnumber 对象Id
posXVECTOR3 位置
Returns
void

◆ SetAbilityTargetSocketName()

function XEAbilitySystemComponent SetAbilityTargetSocketName ( idx  ,
targetIndx  ,
name   
)

设置技能对象socket名称

Parameters
idxnumber 技能Id
targetIndxnumber 对象Id
namestring socket名称
Returns
void

◆ SetAvatarActor()

function XEAbilitySystemComponent SetAvatarActor ( InAvatarActor  )

设置技能对象

Parameters
InAvatarActorXEActor
Returns
void

◆ SetCollisionCheck()

function XEAbilitySystemComponent SetCollisionCheck ( check  )

设置碰撞检测

Parameters
checkstd::function<xbool(XEActorComponent*, XEActor*)>
Returns
void

◆ SetPositionCollisionCheck()

function XEAbilitySystemComponent SetPositionCollisionCheck ( check  )

设置碰撞检测

Parameters
checkstd::function<xbool(XEActorComponent*, XVECTOR3)>
Returns
void

◆ SetProjectileOnHit()

function XEAbilitySystemComponent SetProjectileOnHit ( hit  )

设置投射物碰撞

Parameters
hitstd::function<void(XEHitResult)>
Returns
void

◆ SetRemoveAbilityOnEnd()

function XEAbilitySystemComponent SetRemoveAbilityOnEnd ( AbilitySpecHandle  )

移除技能但技能执行完

Parameters
AbilitySpecHandleXEGameplayAbilitySpecHandle
Returns
void

◆ Tick()

function XEAbilitySystemComponent Tick ( fDelMs  ,
bForceTick   
)

更新当前组件的数据,此函数每帧都会被调用

Parameters
fDelMsnumber 每帧更新的时间间隔(ms)
bForceTickboolean 是否强制Tick.如果为true,不管当前组件是否隐藏,都会更新;如果为false,当前组件如果隐藏时不更新。
Returns
void

◆ TriggerAbilityFromGameplayEvent()

function XEAbilitySystemComponent TriggerAbilityFromGameplayEvent ( AbilityToTrigger  ,
ActorInfo  ,
Tag  ,
Payload  ,
Component   
)

尝试通过事件激活技能

Parameters
AbilityToTriggerXEGameplayAbilitySpecHandle
ActorInfoXEGameplayAbilityActorInfo
TagXEGameplayTag
PayloadXEGameplayEventData
ComponentXEAbilitySystemComponent
Returns
boolean

◆ TryActivateAbilitiesByTag()

function XEAbilitySystemComponent TryActivateAbilitiesByTag ( GameplayTagContainer  ,
bAllowRemoteActivation   
)

尝试激活技能

Parameters
GameplayTagContainerXEGameplayTagContainer
bAllowRemoteActivationboolean
Returns
boolean

◆ TryActivateAbility()

function XEAbilitySystemComponent TryActivateAbility ( AbilityToActivate  ,
bAllowRemoteActivation   
)

尝试激活技能

Parameters
AbilityToActivateXEGameplayAbilitySpecHandle
bAllowRemoteActivationboolean
Returns
boolean

◆ UpdateGameplayAbility()

function XEAbilitySystemComponent UpdateGameplayAbility ( idx  ,
ability   
)

XEAbilitySystemComponent_UpdateGameplayAbility00

Parameters
idxnumber
abilitystring
Returns
void

Variable Documentation

◆ AbilityWrapper

◆ EAES_Executing

XEAbilitySystemComponent EAES_Executing = 0

◆ EAES_Failed

XEAbilitySystemComponent EAES_Failed = 0

◆ EAES_Succeeded

XEAbilitySystemComponent EAES_Succeeded = 0

◆ XEAbilitySystemComponent

◆ XEAbilitySystemComponent__AbilityWrapper