JSAbilityGroup

From Virtual World Web Wiki
Jump to: navigation, search
  • Inherits class: JSAbilityBase
  • This is a JavaScript visible object

Remarks [edit]

Properties

bool Denied {get;}
Returns if the group is denied in the Ability hierarchy
bool Enabled {get;}
Returns if the group is enabled in the Ability hierarchy
int Groups {get;}
Returns the nume of AbilityGroups which are direct children of this group.
int Items {get;}
Returns the number of AbilityEntries which are direct children of this group.

Methods

JSAbility AddAbility(JSFlexibleFunction function, string name, ResourceValue icon = NULL, string description = NULL, float cooldown = 0.0)
Adds a Javascript-driven ability to this group that will call the function whenever the ability fires.
JSAbilityGroup GetGroup(int index)
Returns the indexed AbilityGroup under this group
JSAbilityGroup GetGroupByIdentifier(string identifier)
Returns a group by its internal identifier
JSAbilityGroup GetGroupByName(string name)
Returns a group by its display name
IEnumerable<JSAbilityGroup> GetGroups()
Returns all AbilityGroups under this group
JSAbilityBase GetItem(int index)
Gets the indexed AbilityEntry from this group
JSAbilityBase GetItemByIdentifier(string identifier)
Returns an item by its internal identifier
JSAbilityBase GetItemByName(string name)
Returns an item by its display name
IEnumerable<JSAbilityBase> GetItems()
Get all AbilityEntries of this group
JSAbility LinkAbility(Guid abilityId)
bool RemoveAbility(string identifier)
Removes a given ability from this group
void RemoveAll()
Clears all abilities under this group
bool UnlinkAbility(Guid abilityId)