derikb / hadleyville-online

Browser version of my rules light Old West RPG.
https://hadleyville.derikbadman.com
1 stars 0 forks source link

Refactor: Add generic class for display/list components #13

Closed derikb closed 2 years ago

derikb commented 2 years ago

I think the note/npc/town display/list components could probably have a shared parent to allow less dupe code and easier changes as much of their content is the same, just have to add some code to handle labelling and item types. That'd be one good step on making things more generic customizable.

derikb commented 2 years ago

Handling the display components might be less helpful as they are rather different from each other at all levels except their few external methods. (Would be ideal for a shared interface if we had such a thing to use. (I guess they could have a really simple parent, but that would only really make a difference if we were strongly typing everything.)