Best way to load various scripts as editable Resources in the editor

Fair enough. If you’re going to use it as an Action Pattern which appears to be an extension of the Command pattern, it’s perfect for turn-based games, especially if you want to take actions back.

@takapapatapaka You might want to do a search for the Command Pattern on here because we had a really interesting discussion on how it can be used to undo steps. If that’s something you’re interested in.

I may have misunderstood the use case.

LOL Which is why I use a pull-based state machine. The state machine in that pattern is definitively NOT a manager. It has no decision-making capabilities. It only stores who’s running and if a state has it locked down, and provides a central interface for the states to interact. In that way it’s more like a localized global autoload singleton.

2 Likes

You slightly might, although truth be told, the whole thing could be stretched into some state-machine-like thing, but I think It’d introduce unnecessary complexities.

Don’t forget the classic one: when you hold a hammer, every problem looks like a nail :stuck_out_tongue:

2 Likes

If it were me, I’d go with the command pattern just so I could play with it.

Yup, i’ll be looking into that Command pattern thing, huge thanks to both of you <3

1 Like