rsek / datasworn

The successor to the original Datasworn repository and Dataforged package, which provide game rules from the Ironsworn and Ironsworn: Starforged TTRPGs in JSON.
https://ko-fi.com/r_sek
120 stars 26 forks source link

Expose `RulesPackageBuilder` class in `@datasworn/core` #56

Open rsek opened 1 week ago

rsek commented 1 week ago

A RulesPackageBuilder instance assembles multiple DataswornSource.RulesPackage objects in to a single Datasworn.RulesPackage file. It does so by merging the objects and assigning IDs. It performs some validations that aren't possible with JSON schema.

Datasworn-specific validations

Notes

TODO

The coding side of this is mostly done, but there's some nontrivial documentation outstanding.