Cronenbrogues/cronenbroguelike

Make a global GameObject type with a registry

Closed this issue · 2 comments

Room, Item, Actor, Ability, etc. should inherit from this GameObject.

It should be possible to create an instance of anything from a name (i.e., a string). This can currently be done with rooms only. Motivation: it will be much easier to create cheats and "console commands" if everything can be looked up by name.

Symptomatic of this issue: abilities access class-level variables and are created via an inconsistent interface. abilities.meditation and abilities.meditation() are almost the same thing, which is bad.

This is properly a whimsylib issue: Cronenbrogues/whimsylib#22