Show / Hide Table of Contents

Interface IGameplayAbility

This interfaces defines Gameplay Abilities. Gameplay Abilities represent "things" that players can cast, etc. E.g. a IGameplayAbility might represent a fireball ability which the player casts and which damages a target

Namespace: GameplayAbilitySystem.Interfaces
Assembly: Assembly-CSharp-firstpass.dll
Syntax
public interface IGameplayAbility

Properties

| Improve this Doc View Source

AbilityLogic

Defines what the ability actually does

Declaration
AbstractAbilityActivation AbilityLogic { get; }
Property Value
Type Description
AbstractAbilityActivation
| Improve this Doc View Source

GameplayCooldowns

Cooldowns associated with this ability

Declaration
List<GameplayCooldown> GameplayCooldowns { get; }
Property Value
Type Description
List<GameplayCooldown>
| Improve this Doc View Source

GameplayCost

Cost of using this ability

Declaration
IGameplayCost GameplayCost { get; }
Property Value
Type Description
IGameplayCost
| Improve this Doc View Source

OnGameplayAbilityCancelled

This is called whenever this ability is cancelled. This event does not pass on details of which IGameplayAbilitySystem was responsible for using this ability.

Declaration
GenericAbilityEvent OnGameplayAbilityCancelled { get; }
Property Value
Type Description
GenericAbilityEvent
| Improve this Doc View Source

OnGameplayAbilityCommitted

This is called whenever this ability is commited. This event does not pass on details of which IGameplayAbilitySystem was responsible for using this ability.

Declaration
GenericAbilityEvent OnGameplayAbilityCommitted { get; }
Property Value
Type Description
GenericAbilityEvent
| Improve this Doc View Source

OnGameplayAbilityEnded

This is called whenever this ability ends. This event does not pass on details of which IGameplayAbilitySystem was responsible for using this ability.

Declaration
GenericAbilityEvent OnGameplayAbilityEnded { get; }
Property Value
Type Description
GenericAbilityEvent
| Improve this Doc View Source

Tags

Tags that this ability has/provides

Declaration
IAbilityTags Tags { get; }
Property Value
Type Description
IAbilityTags

Methods

| Improve this Doc View Source

AbilityOffCooldown(IGameplayAbilitySystem)

Checks to see if the IGameplayAbilitySystem is off cooldown on the target IGameplayAbilitySystem

Declaration
bool AbilityOffCooldown(IGameplayAbilitySystem AbilitySystem)
Parameters
Type Name Description
IGameplayAbilitySystem AbilitySystem

The target IGameplayAbilitySystem

Returns
Type Description
System.Boolean
| Improve this Doc View Source

ActivateAbility(IGameplayAbilitySystem)

Activates this ability on the target IGameplayAbilitySystem

Declaration
void ActivateAbility(IGameplayAbilitySystem AbilitySystem)
Parameters
Type Name Description
IGameplayAbilitySystem AbilitySystem

The target IGameplayAbilitySystem

| Improve this Doc View Source

CommitAbility(IGameplayAbilitySystem)

Commits the IGameplayAbilitySystem on the target IGameplayAbilitySystem

Declaration
bool CommitAbility(IGameplayAbilitySystem AbilitySystem)
Parameters
Type Name Description
IGameplayAbilitySystem AbilitySystem

The target IGameplayAbilitySystem

Returns
Type Description
System.Boolean
| Improve this Doc View Source

EndAbility(IGameplayAbilitySystem)

Ends this ability on the target IGameplayAbilitySystem

Declaration
void EndAbility(IGameplayAbilitySystem AbilitySystem)
Parameters
Type Name Description
IGameplayAbilitySystem AbilitySystem

The target IGameplayAbilitySystem

| Improve this Doc View Source

GetAbilityCooldownTags()

The cooldown tags associated with this IGameplayAbility

Declaration
List<GameplayTag> GetAbilityCooldownTags()
Returns
Type Description
List<GameplayTag>
| Improve this Doc View Source

IsAbilityActivatable(IGameplayAbilitySystem)

Check if this ability can be activated by IGameplayAbilitySystem

Declaration
bool IsAbilityActivatable(IGameplayAbilitySystem AbilitySystem)
Parameters
Type Name Description
IGameplayAbilitySystem AbilitySystem

The target IGameplayAbilitySystem

Returns
Type Description
System.Boolean
| Improve this Doc View Source

PlayerHasResourceToCast(IGameplayAbilitySystem)

Checks to see if the target IGameplayAbilitySystem has the required resources to cast this ability

Declaration
bool PlayerHasResourceToCast(IGameplayAbilitySystem AbilitySystem)
Parameters
Type Name Description
IGameplayAbilitySystem AbilitySystem
Returns
Type Description
System.Boolean

True if the target IGameplayAbilitySystem has required resources, false otherwise

  • Improve this Doc
  • View Source
Back to top Generated by DocFX