AbilityRegistry

interface AbilityRegistry

Stores the abilities registered by Foundry and its addons.

Inheritors

Functions

Link copied to clipboard
abstract fun get(id: String): Ability?

Returns the ability with id, or null if it is not registered.

Link copied to clipboard
abstract fun getAll(): Collection<Ability>

Returns a snapshot of all registered abilities.

Link copied to clipboard
abstract fun isRegistered(id: String): Boolean

Returns whether an ability with id is registered.

Link copied to clipboard
abstract fun register(base: Ability)

Adds an ability.

Link copied to clipboard
abstract fun unregister(id: String): Boolean

Removes the ability with id, returning whether one was removed.