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

Support more resource generators. #5

Closed liplum closed 2 years ago

liplum commented 2 years ago

Shader

It only needs the field without void load( ) method. Because users may have their own way to initialize those shaders.

Bundle

To generate each i18n pair in bundles.

liplum commented 2 years ago

To generate shader class isn't a wise choice, because, most of the time, the file and its name are not absolutely related to a shader field.

liplum commented 2 years ago

Bundle are always mixed with domain and kebab name rules. Also, it likely contains mod's name and ContentType. Thus, to generate them but not bother with a lot of name issues seems impossible currently. Anyways, at least users can program their own resource generator to deal with such complicated circumstances.

liplum commented 2 years ago

In my opinion, I'd rather to provide more customizable generator for users than official support.