Players State Entity

The players_state entity stores where each player is: the room, the position and the direction.

Managing players state in the admin panel

Players state is in the Users section of the admin sidebar, under Players State (/reldens-admin/players-state). The game updates the rows while the players move. See Player State Flow.

Key Properties

  • player_id: The player (unique)
  • room_id: The room where the player is
  • x and y: Position in the room
  • dir: Direction the player is facing

Database Relations

  • players: The player (the row is deleted with the player)
  • rooms: The room (set to empty when the room is deleted)
Go Up