Lock single property

0 votes
Hello,

Can I lock a single property of the room so other users can't update that property but they can update other properties? Or is it "lock all properties"?

And when the property is locked and lets say the app crashes (so my unlock code does not execute) will this property by lock to that specific user forever?

 

I am thinking of using the properties to control who sit where in a card  game (by locking seat)

Thank you
asked Mar 9, 2014 in AppWarp by android4canada (20 points)
retagged Mar 11, 2014 by shepAdmin

1 Answer

0 votes
 
Best answer
Yes - you can lock properties a subset of the properties instead of the entire set.

Once the user disconnects or leaves the room - any property locked by it is unlocked automatically by the server.

Take a look at the following links for more details

http://blogs.shephertz.com/2013/08/02/how-to-do-client-side-arbitration-in-realtime-multiplayer-game-using-appwarp/

http://appwarp.shephertz.com/game-development-center/matchmaking-basic-concept/#locking-properties
answered Mar 9, 2014 by dhruvc (1,099 points)
selected Mar 9, 2014 by android4canada
Perfect! exactly what I was looking for.Thank you :)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...