Module game_logic::project_constants[][src]

Expand description

The rust side of the dist/project-constants.json file

Overview

This file contains a structure defining all data we want to load from the project constants file. Feel free to add anything you’d like here, just make sure the relavant data is also written in the JSON file so the game doesn’t crash. You can treat these as constants. I just prefer storing this kind of data in JSON rather than hard-coding it in the program.

How this is loaded

Somewhere in lib.rs, a call is made to load this through the asset_manager. Its all already set up, so you shouldn’t have to worry about the logistics.

Structs

Constants relating to Discord

Constants relating to the Player

This structure is filled with the contents of dist/project-constants.json at runtime