Module backend::players

source ·

Structs

  • Used to hold the data replied by the /players call
  • Contains all the player information

Constants

Functions

  • Reads the demo save file at ~/Demo/players or creates it if it doesn’t exist. It retourns a HashMap where the keys are the usernames and the values ate the Player struct
  • Checks if the player is at the left or right of the screen and replies with the corresponding side key
  • Takes a hashmap of players and saves it to the demo save file at ~/Demo/players