Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarWorldClient.hpp
diff options
context:
space:
mode:
authorlonaasan <shadowlona@shadowlona.dev>2024-09-09 11:27:14 +0200
committerlonaasan <shadowlona@shadowlona.dev>2024-09-09 11:27:14 +0200
commit732fc2a9d7e9a4c5e3cf01ac191a392462f3da8c (patch)
tree5f6764ac49aec0a20bd45add222b0409f7f0a55f /source/game/StarWorldClient.hpp
parent98a395721ee0383bd2ed046235dd644909f2f943 (diff)
[Revision] Applying the recommended changes from pull request #110 (return current value if no argument given, moving the methods to their correct location)
Diffstat (limited to 'source/game/StarWorldClient.hpp')
-rw-r--r--source/game/StarWorldClient.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/game/StarWorldClient.hpp b/source/game/StarWorldClient.hpp
index 2f1cbc0..9f15e0e 100644
--- a/source/game/StarWorldClient.hpp
+++ b/source/game/StarWorldClient.hpp
@@ -109,6 +109,8 @@ public:
void reviveMainPlayer();
bool respawnInWorld() const;
+ bool setRespawnInWorld(bool value);
+
void removeEntity(EntityId entityId, bool andDie);
WorldTemplateConstPtr currentTemplate() const;
@@ -176,7 +178,7 @@ public:
typedef std::function<bool(PlayerPtr, StringView)> BroadcastCallback;
BroadcastCallback& broadcastCallback();
- bool toggleRespawnInWorld();
+
private:
static const float DropDist;