Vortex2Oblivion / LeatherEngine

Leather Engine by Leather128 with improvements for more modding capabilities
GNU General Public License v3.0
11 stars 6 forks source link

Enhancement: State scripts in all states #23

Closed what-is-a-git closed 5 months ago

what-is-a-git commented 1 year ago

What is your suggestion, and why should it be implemented?

Currently only MainMenuState has support for custom scripting. I believe all states should have this capability, maybe besides PlayState as that would be redundant, but who knows.

I believe it would be relatively easy to implement this system, most likely using a simple modification to MusicBeatState (and also MusicBeatSubstate) that would load scripts in the create function, most likely using Haxe's Type class to get the name and package of the class automatically (although doing it hardcoded could work just as well, to prevent things such as PlayState from having state scripting perhaps).

Vortex2Oblivion commented 1 year ago

You see I was going to do that but I was lazy and I haven't done the rest of them yet

what-is-a-git commented 1 year ago

You still should though.

Vortex2Oblivion commented 1 year ago

Yes I will