View Source ExTTRPGDev.RuleSystems.Abilities.Spec (ExTTRPGDev v0.5.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.

Summary

Functions

Retunes the names of the given specs

Returns the spec for the given spec name

Functions

get_names(specs)

Retunes the names of the given specs

Examples

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

get_spec_by_name(specs, spec_name)

Returns the spec for the given spec name

Examples

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