Closed DetectiveBaldi closed 2 months ago
Not sure why the remaining builds are failing, I'm not sure if it's related to this pull or not
Don't worry about CI in this case.
I don't understand the point of these changes, to be honest and I think it will cause some issues, before I list those issues I want to know what benefits this change offers because I don't see it
Edit: I also think this is multiple changes rolled into one, like I can see the point of making the signals public, but is that at all related to updating the substate from FlxGame?
Don't worry about CI in this case.
I don't understand the point of these changes, to be honest and I think it will cause some issues, before I list those issues I want to know what benefits this change offers because I don't see it
The main point is just to reduce complicity, having variables like _requestSubStateReset
and _requestedSubState
that can easily being removed for something shorter and more understandable.
States having a separate internal update method is also just another way to cause confusion.
Edit: I also think this is multiple changes rolled into one, like I can see the point of making the signals public, but is that at all related to updating the substate from FlxGame?
This is true, the signal changes aren't really the main point, nor do they affect it, I just saw it and went "why not"
If you see a problem that requires a large structural change like this, I recommend starting by creating an issue that points out the problems it is causing you, and we'll work together on a fix or a workaround. In this case this is a large structural change that introduces new issues and doesn't actually fix any problems, along with other unrelated changes, and arbitrary style changes
A lot of this code is very old, with some odd workarounds for certain things.
Changes:
FlxSubState
s are now updated and drawn throughFlxGame
. This removes the need forFlxState.tryUpdate
._subStateOpened
and_subStateClosed
have been removed and fully replaced with their public counterparts. RemoveresetSubState
and related variables.This is a draft because I want to see how CI reacts and also discuss breaking changes.
To-Do
FlxSubState.parentState
instead ofFlxSubState._parentState
resetSubState
instead of outright removing it. (Need suggestions)