Reference
tilttek/character-retirementEvery public type of the package, with its role. The types marked internal may change in any version.
Endings
| Type | Role |
|---|---|
CharacterEndings | The service: end, get, current, history, cause, epitaph, share, bring back, remove, forget a sheet or an owner, the memorial and its count. |
Ending | The end of a character's story in a campaign: its fate, date, session, cause, epitaph, visibility, frozen sheet, return and version. |
Fate | Retired, died or lost. |
FrozenSheet | A sheet as it stood at its end, written as plain values and read back checked. |
Visibility | Private, campaign or public. |
Viewer | Who reads a memorial: the game master, a member, an outsider. |
Change | What a change of an ending changed: cause, epitaph or visibility. |
Ports and stores
| Type | Role |
|---|---|
Contract\EndingStoreInterface | Keeps the endings at a version, one open by sheet. |
Contract\EndingObserverInterface | Told of the events of the endings. |
Store\InMemoryEndingStore | The endings in memory, for tests. |
Events
| Type | Role |
|---|---|
Event\EndingEventInterface | A fact of an ending, by identifiers only. |
Event\CharacterEnded | A character's story ended. |
Event\EndingChanged | Its cause, epitaph or visibility changed. |
Event\CharacterReturned | The character came back. |
Event\EndingRemoved | An ending was erased. |
Exceptions
| Type | Role |
|---|---|
Exception\CharacterRetirementExceptionInterface | Every exception of the library. |
Exception\InvalidEnding | A value out of its shape or its bounds. |
Exception\EndingRefused | A call not allowed as things are. |
Exception\EndingNotFound | No ending has the identifier. |
Exception\EndingConflict | What is kept changed since it was read. |
Internal
| Type | Role |
|---|---|
Internal\Identifier | The shape of an identifier. Internal. |
Internal\Text | The shape of names, keys, causes, epitaphs and field texts. Internal. |