Sign In Register

How can we help you today?

Start a new topic
Answered

remove opponent info from ScriptData in GetChallengeResponse etc

I'm storing the entire state of the game in ScriptData, but that includes data for all players, which not all players should see (card hands, draw piles, etc).  How do I filter an element out of the challenge.ScriptData on its way back to the client without removing it from the actual challenge?


Best Answer

Hi Rich,


Yes that is correct, the setPrivateData call in SparkChallenge is perfect for this, if you need any further assistance just let me know.


Thanks,

Liam


Welp, I just discovered setPrivateData.  I guess I should have been storing that stuff in the challenge's privateData to begin with.  :-P

Answer

Hi Rich,


Yes that is correct, the setPrivateData call in SparkChallenge is perfect for this, if you need any further assistance just let me know.


Thanks,

Liam

Login to post a comment