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

summaryrefslogtreecommitdiff
path: root/source/game/StarWorldClient.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-09-12 19:13:57 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-09-12 19:13:57 +1000
commit4da398e42dbc9b18ec27ba27d0fa570adfc58922 (patch)
tree26b758398ed032eb951152b47ddcfc44206a7e9c /source/game/StarWorldClient.cpp
parent3c4a2eb71eea73c7e505ab631a1abc484f9e7b92 (diff)
parent7852ad9cf2efdf359132c986f46b0e34acbd28ba (diff)
Merge branch 'main' into wip/net-n-btree
Diffstat (limited to 'source/game/StarWorldClient.cpp')
-rw-r--r--source/game/StarWorldClient.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/game/StarWorldClient.cpp b/source/game/StarWorldClient.cpp
index b18127e..ab5f9bf 100644
--- a/source/game/StarWorldClient.cpp
+++ b/source/game/StarWorldClient.cpp
@@ -142,6 +142,10 @@ bool WorldClient::respawnInWorld() const {
return m_respawnInWorld;
}
+void WorldClient::setRespawnInWorld(bool respawnInWorld) {
+ m_respawnInWorld = respawnInWorld;
+}
+
void WorldClient::removeEntity(EntityId entityId, bool andDie) {
auto entity = m_entityMap->entity(entityId);
if (!entity)