Skip to content

Reference

tilttek/party

Every public type of the package, with its role.

TypeRole
PartiesForms, runs, reads and erases parties, their members, purse, loot and notes
PartyA party: reference, campaign, name, game system, forming moment
MemberA member of a party: its reference, roles, standing and arrival
StandingActive or Away
PurseThe party's coins by currency, bounded, as a value
SplitEach member's share of a currency, and the remainder
LootItemLoot under a key: name, quantity, holder or stash, adding moment
NoteA note under a key: text, author, written and edited moments
LimitsMembers per party, parties per member, loot entries and notes per party
PartyChangedTold after each act, identifiers only
ChangeWhat happened to a party
RefusalWhy an act is refused
Composition\RoleA role a system declares: key, name, minimum
Composition\RoleCatalogueThe roles of a system, from its party roles or built by hand; empty for a game without roles
Composition\CompositionAdvisorReads members against a catalogue
Composition\CompositionThe coverages, the unassigned members, the unknown roles, balance
Composition\RoleCoverageA role, the active members who fill it, its coverage
Composition\CoverageMissing, Covered or Crowded
Contract\PartyStoreWhere parties and what they hold are kept
Contract\PartyObserverWhat the application does with the events
Store\InMemoryPartyStoreThe store in memory
Exception\PartyExceptionEvery exception of the library
Exception\PartyRefusedAn act refused, with its Refusal
Exception\UnknownPartyNo party under a reference, no loot or note under a key
Exception\InvalidPartyA value out of bounds

Text is internal: it checks the keys, names and texts, and is not part of the promised API.