NobleRobot / NobleEngine-ProjectTemplate

A starting template for Noble Engine projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup doesn't work if initialized with empty data

GammaGames opened this issue · comments

commented

I ran the Noble.GameData.setup command with an empty table as the data. This caused the keyChange function to never work because #keys was always 0

I think this is similar to: NobleRobot/NobleEngine#24

Currently, the GameData and Settings objects require you to define all the keys you're going to use in the setup() function.

I think I've resolved to change/upgrade this behavior in the future, either to issue a Bonk in order to better clue the developer to the intended usage, or to expand the functionality so developers can add/adjust keys after setup, but it's currently in a "works as intended" state.

I'm going to close this issue, but only because it's a duplicate. Feel free to contribute to the other issue on the main project.