Base class for all game-related events.
Event triggered when a player joins the game.
PlayerJoinedEvent(uint32_t playerId, const std::string &playerName)
Construct a PlayerJoinedEvent.
~PlayerJoinedEvent() override=default
const std::string & getPlayerName() const
Get the player name.
uint32_t getPlayerId() const
Get the player ID.