About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
Passing user data to a State
Author Message
JonathonA Offline
Member

Post: #1
Passing user data to a State
Might be worthwhile having a Ptr parameter in the .set(...) method to pass user data to a State instance; not sure about the underlying code in the .set(...) method to know if this is a viable option.
01-11-2012 11:24 AM
Visit this user's website Find all posts by this user Quote this message in a reply
fatcoder Offline
Member

Post: #2
RE: Passing user data to a State
You might be able to override the State class to add this functionality yourself... not sure though haven't looked at it to check. However in my opinion, keeping your global game data in one place in a constant memory address is a far better solution, as we discussed in your other thread.
01-11-2012 12:57 PM
Find all posts by this user Quote this message in a reply
JonathonA Offline
Member

Post: #3
RE: Passing user data to a State
I will certainly give it a go wink
01-11-2012 06:31 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply