So, I 'm making a card game with a special focus on PVP Competitive Gameplay. I’ve built a ranked system using matchmaker and all that, but now I’m in what the community really is looking for: Tournaments.
I’m trying to make the process streamlined for users, so they see a list of tournaments, join said tournaments, and then can monitor their progress, and join matches when their time to play comes.
In another part of the Game, I’ve already developped another way to match with players through lobbies. Players can make a match with custom rules (Ranked rules are always fixed / change each 24 hours), so the way I’m doing this is: a player chooses a custom ruleset, and this information is stored ina lobby that the player then joins. If said lobby has two players in it then the GAME CLIENT (I know, this is bad) creates an allocation for those two players and they join to play the custom game.
I’m planning on using this very same ystem to make tournament matches, but the injected rules will be injected by the tournament manager (Which I am developing with Cloud Code), instead of the game client,
As I’m sure yo u are aware, creating allocations on a gameclient creates a bunch of issues, such as exposing my API keys in the client and allowing the client code to have an entry point in which it can freely create allocations, where the code to be cracked open and hacked by someone.
For this reason I decided to go with the approach of letting Cloud Code manage Allocations along side with the standard Matchmaker. My question is: Do I have to use raw .Net to make API calls to the admin API and create the allocation, thus manually storing the API token inside my cloud code? Oris there a stub inside CloucCode.Apis nugget packages that would allow me to seamlessly do this in a much cleaner and faster way?. By the way, I ened to do this using lobby because a list of joinable tournament games musst be generated later for tournaments that are swiss rounds / round robin, so a work around using MatchMaker would be a possibility, but by no means ideal for this problem
I have been looking for this answer inside the doc for Cloud code but havent’found a way of creating allocations manually through Cloud Code. Thanks!