Khaligufzel / Dimensionfall

A survival game inspired by Cataclysm: Dark Days Ahead and Bright Nights.
MIT License
13 stars 5 forks source link

Refactor content list #340

Closed snipercup closed 2 months ago

snipercup commented 2 months ago

Requires #339

Refactors the content list loading. This required generalizing some functions in the data classes. It's almost like inheritance has it's uses instead of this mess. Now the data classes can be accessed trough Gamedata.maps for example but also trough Gamedata.get_data_of_type(Gamedata.contentType.MAPS). The last form being useful for iteration or dynamic selection.