JeLLyNinjas / TerminalFighter

5 stars 2 forks source link

Enums vs Maps to reference Assets #100

Closed enochtsang closed 4 years ago

enochtsang commented 7 years ago

Assets like images and sounds that we use for internally loading are kept in a map<string, resource> structure right now, instead of strings it'd be better if we kept an ENUM of all our resources. That way mistyping resources would be a compiler error instead of a runtime error.

bseto commented 4 years ago

Closing as this applied to the c++ version