Hello there, and happy new year to you all!
Come across a problem; I have divided the character creation process into three States (by States I mean the Esenthel class: State).
The problem is this, can data be passed from one State to the next? I noticed that when you call <StateName>.set(...) there is no ability to pass any sort of user data.
Has anyone got a suggestion on how to get around this?
I have tried a static struct in a header file elsewhere in the code (for storing various bits of data about the character being created; on a bit of a tight deadline at the moment) but I noticed that if I set it in one State, then move on to the next State the data in that struct doesn't appear to persist so I wondered if that was a threading issue maybe since it isn't thread-safe? If I step back to the previous State the data appears to have persisted (either that or it is in the right scope at that particular point in time)
I did scan for any similar topics to this but didn't come across anything, apologies if there is already a similar topic.