hi,
I am working on a proof-of-concept to convert my CCG over from GameSparks.
One thing that I'm trying to get used to is the lack of direct access to MongoDB.
It seems that PlayFab does not have direct database access?
For example, in GameSparks, for my CCG, I'd have 2 collections, one called "AvailableCards", which was a big JSON doc that contained all of the card data, basically the master list of all cards in the game.
The other is called "playerCards", which contains a list of the cards the player has
It also has playerDecks, which gives each deck the player has and the list of cards in that deck.
Is there a way to model this similarly in PlayFab using purely Json docs?
If so, what is the best approach?
If not, am I forced to use the "Item" system?
If that's the case, I think I need to create one item for every card? That seems unweildy as there will be hundreds of cards in the game.
Also, let's say I did use items, how could I support crafting? For example, each player can "dust" a card, which destroys the card but gives them credits, which they can spend to "craft" new cards.
I can't seem to find anything in the server API documents which would allow me to simultaneously destroy one Item while crediting them in some way. In MongoDB, there is the concept of atomic operations and so this is possible.
Is there some solution here for more experienced backend developers who want direct access to the database go about this?
Or do you have some ideas of how I can achieve my goal using item system?
Thanks for your help and support!