View Source ExTTRPGDev.RuleSystems.Abilities.Spec (ExTTRPGDev v0.3.0)

A spec is the base definition of an ability, defining its name, abbreviation, and description. Additionally this module provides helper methods for individual specs and lists of specs.

Link to this section Summary

Functions

Retunes the names of the given specs

Returns the spec for the given spec name

Link to this section Functions

Retunes the names of the given specs

examples

Examples

iex> ExTTRPGDev.RuleSystems.Abilities.Spec.get_names(list_of_specs)
["names", "of", "specs]
Link to this function

get_spec_by_name(specs, spec_name)

View Source

Returns the spec for the given spec name

examples

Examples

iex> ExTTRPGDev.RuleSystems.Abilities.Spec.get_spec_by_name(list_of_specs, spec_name)
%Spec{}