currently working on a turn-based card game with Unity and Gamesparks (thanks for the Hearthstone tutorials, they help quite a bit).
I'm using LogChallengeEventRequests to perform certain actions (drawing card, playing card, using items) which triggers the ChallengeTurnTaken message. This is good because it tells every other player that something has changes.
However, i need to know exactly what each player did so i can simulate it in Unity (visually play the card, trigger an effect, etc).
So i'm wondering what's the best way to tell other players what exact action has been performed? As examples, any of these could have happened:
- Player drawn cards
- Player played a specific card
- Player activated a specific item
- Player played a spell and targeted a specific opponent card
I had two ideas how to do this: