Defining Custom Games
Card Game Simulator allows users to download custom card games to use within the application.
CGS games directory
Custom games are defined by creating a new folder within the persistent games data directory. The location of this persistent data directory varies depending on platform. Some examples include:
- Android: /Data/Data/com.finoldigital.cardgamesim/files/games/
- Universal Windows Platform: C:\Users\<user >\AppData\Local\Packages\CardGameSimulator_nvq7k659m756y\LocalState
- Mac: ~/Library/Application Support/Finol Digital LLC/Card Game Simulator/games/
Custom game folder structure
The structure of this custom game folder is:
JSON File Structure
When downloading a custom game from a url, the data that is being downloaded is the contents of the <name>.json file. CGS generates the rest of the folder structure based off the information in that file.
You can create your own json and validate against these schema:
Functional examples can be found in the CGS Google Drive folder.