tassaron / dnd-character

library for making Dungeons & Dragons 5e characters as serializable data
https://pypi.org/project/dnd-character/
Eclipse Public License 2.0
45 stars 17 forks source link

Dataclasses #15

Closed tassaron closed 1 year ago

tassaron commented 1 year ago

I created a Monster dataclass to be a thin wrapper on top of SRD_monsters. It's not necessarily complete yet but dataclasses seem promising.

They will all be serializable similar to the Character object. They can have some new fields like UUID for telling copies apart. In future maybe they could be improved on more, but the goal for now is to give more confidence in the structure of the data. Hopefully this will make the library easier to use.

todo