|
R-Type
Distributed multiplayer game engine in C++
|
Functions | |
| const char * | toString (GameruleKey key) |
| Convert GameruleKey enum to string. | |
| std::optional< GameruleKey > | fromString (const std::string &str) |
| Convert string to GameruleKey enum (optional, for deserialization) | |
Variables | |
| static constexpr const char * | PLAYER_SPEED = "player.speed" |
| static constexpr const char * | PLAYER_HEALTH = "player.health" |
| static constexpr const char * | PLAYER_FIRE_RATE = "player.fireRate" |
| static constexpr const char * | PLAYER_DAMAGE = "player.damage" |
| static constexpr const char * | PLAYER_SPAWN_X = "player.spawnX" |
| static constexpr const char * | PLAYER_SPAWN_Y = "player.spawnY" |
|
inline |
Convert string to GameruleKey enum (optional, for deserialization)
| str | The string key |
Definition at line 63 of file GameruleKeys.hpp.
References GAME_SPEED_MULTIPLIER, PLAYER_DAMAGE, PLAYER_FIRE_RATE, PLAYER_HEALTH, PLAYER_SPAWN_X, PLAYER_SPAWN_Y, and PLAYER_SPEED.
|
inline |
Convert GameruleKey enum to string.
| key | The enum key |
Definition at line 37 of file GameruleKeys.hpp.
References GAME_SPEED_MULTIPLIER, PLAYER_DAMAGE, PLAYER_FIRE_RATE, PLAYER_HEALTH, PLAYER_SPAWN_X, PLAYER_SPAWN_Y, and PLAYER_SPEED.
Referenced by server::GameruleBroadcaster::broadcastGamerule(), server::GameruleBroadcaster::broadcastGamerules(), client::ClientGameRules::get(), client::ClientGameRules::has(), server::GameruleBroadcaster::sendAllGamerules(), server::GameruleBroadcaster::sendGamerule(), and client::ClientGameRules::update().
|
staticconstexpr |
Definition at line 91 of file GameruleKeys.hpp.
|
staticconstexpr |
Definition at line 88 of file GameruleKeys.hpp.
|
staticconstexpr |
Definition at line 85 of file GameruleKeys.hpp.
|
staticconstexpr |
Definition at line 94 of file GameruleKeys.hpp.
|
staticconstexpr |
Definition at line 97 of file GameruleKeys.hpp.
|
staticconstexpr |
Definition at line 82 of file GameruleKeys.hpp.