So i’m making a cardgame like hearthstone, and wanted to know the safest place to store players deck to prevent any clients to read them. That also include a client about his own deck.
Usually PlayerState is a good place to store player’s data but from what I read Player States of every clients exist on each individual machines so it shouldn’t be the way to go to safely hide data about clients.
I was thinking about storing all decks information on the GameMode.
I don’t quite understand why you’d want to store other player’s cards on each local machine. If it’s a networked game, your server code should know and handle all cards, not your clients. Each client should only see and store his own cards.
I think the question you should be asking yourself is how one would cheat. Usually its easier to solve a problem when it becomes a problem, so can you reproduce this cheating scenario?