Skip to content

Reference

tilttek/character-retirement

Every public type of the package, with its role. The types marked internal may change in any version.

Endings

TypeRole
CharacterEndingsThe service: end, get, current, history, cause, epitaph, share, bring back, remove, forget a sheet or an owner, the memorial and its count.
EndingThe end of a character's story in a campaign: its fate, date, session, cause, epitaph, visibility, frozen sheet, return and version.
FateRetired, died or lost.
FrozenSheetA sheet as it stood at its end, written as plain values and read back checked.
VisibilityPrivate, campaign or public.
ViewerWho reads a memorial: the game master, a member, an outsider.
ChangeWhat a change of an ending changed: cause, epitaph or visibility.

Ports and stores

TypeRole
Contract\EndingStoreInterfaceKeeps the endings at a version, one open by sheet.
Contract\EndingObserverInterfaceTold of the events of the endings.
Store\InMemoryEndingStoreThe endings in memory, for tests.

Events

TypeRole
Event\EndingEventInterfaceA fact of an ending, by identifiers only.
Event\CharacterEndedA character's story ended.
Event\EndingChangedIts cause, epitaph or visibility changed.
Event\CharacterReturnedThe character came back.
Event\EndingRemovedAn ending was erased.

Exceptions

TypeRole
Exception\CharacterRetirementExceptionInterfaceEvery exception of the library.
Exception\InvalidEndingA value out of its shape or its bounds.
Exception\EndingRefusedA call not allowed as things are.
Exception\EndingNotFoundNo ending has the identifier.
Exception\EndingConflictWhat is kept changed since it was read.

Internal

TypeRole
Internal\IdentifierThe shape of an identifier. Internal.
Internal\TextThe shape of names, keys, causes, epitaphs and field texts. Internal.