CharacterStorage

class CharacterStorage

The CharacterStorage is a cache for all Characters defined in your yarn scripts. This container is populated from the <<character>> commands as the YarnProject parses the input scripts.

Properties

isEmptybool
isNotEmptybool

Methods

contains(String name)bool

Returns true if a character with the given name or alias was defined.

operator[](String name)Character?

Retrieves the character with the given name/alias, or returns null if such character was not present.