PlumyGames / mgpp

The next generation of Mindustry modding.
https://plumygames.github.io/mgpp/
GNU General Public License v3.0
48 stars 3 forks source link

Generate a Meta class from mod.[h]json. #6

Closed liplum closed 2 years ago

liplum commented 2 years ago

Sometimes, users would forget their mod name or would like to reference the content in mod.json. So I think the additional function could be useful for them.

liplum commented 2 years ago

Anything involving source generation must be considered carefully. As to my project at hand, I don't think it should be limited to only mod.(h)json, yes, it's already in mgpp. In other words, we should take more use cases into account, for example, the Meta class can decide whether the debug mode is on or off, which is doing the same thing as C++ conditional compilation.

liplum commented 2 years ago

There is no need.