dungeon_world_data 3.1.1 dungeon_world_data: ^3.1.1 copied to clipboard
Data dump of Dungeon World classes, moves, equipment, and more. Also mirrored as NPM package.
Dungeon World Data #
This dart package contains data for Dungeon World, such as classes, moves, spells, equipment, etc.
Homebew classes included:
- Immolator
- Barbarian.
How to use #
After importing, access dungeonWorldData
to access the entire data structure.
There is more information in the doc directory.
Available data #
Code | Type |
---|---|
dungeonWorldData.characterClasses |
Map<String, CharacterClass> |
dungeonWorldData.items |
Map<String, Item> |
dungeonWorldData.moves |
Map<String, Move> |
dungeonWorldData.races |
Map<String, Race> |
dungeonWorldData.spells |
Map<String, Spell> |
dungeonWorldData.monsters |
Map<String, Monster> |
dungeonWorldData.tags |
Map<String, Tag> |
There is also a Dice
class, with simple dice rolling functionality for your use.
Translations #
The data is currently only available in English, but a localization engine is implemented.
- Use
dungeonWorldData.initLocale(locale)
to create a new locale reference. - Use
dungeonWorldData.addForLocale
ordungeonWorldData.addAllForLocale
to add items to the locales. - Use
dungeonWorldData.changeLocale(locale)
to change to a different locale.
At any given locale, getting items via the generic getter get(key)
and []
operator will give you
only data for the current locale.
You can use getItemFor(locale, key)
to get data for a specific, non-current locale on the fly.
Credits #
Credits to ~vindexus who created https://www.npmjs.com/package/dungeonworld-data. The data is from there, this package simply wraps it up for Dart.
Contributing #
I am developing this package on my free time, so any support, whether code, issues, or just stars is very helpful to sustaining its life. If you are feeling incredibly generous and would like to donate just a small amount to help sustain this project, I would be very very thankful!
I welcome any issues or pull requests on GitHub. If you find a bug, or would like a new feature, don't hesitate to open an appropriate issue and I will do my best to reply promptly.
Code Contributors #
- Make your changes
- Run tests, and add new tests if appropriate. Make sure nothing breaks.
- Create a PR, explain what your changes do.
- Profit!
If you want to translate DW data for this package:
- Create a new folder inside
lib/data
with the locale code. - Copy the contents of
lib/data/en-US
to your new folder - Update all the localization info there, including the values of each property (not the keys!), and the meta tags that signify the language.