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

summaryrefslogtreecommitdiff
path: root/source/game/StarWorldClient.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-09-09 20:52:06 +1000
committerGitHub <noreply@github.com>2024-09-09 20:52:06 +1000
commit8457c2e9542230ce6c71d7fc696d4f79e4a5456c (patch)
treeb896e742f817f859cc5e926422dd080fcc7460d6 /source/game/StarWorldClient.cpp
parent06b865fb844c1e2bbe18f329b7ed5126ce53f5c6 (diff)
parentf59f6be5d33c64f8d0f335f6f6993f05a939afb5 (diff)
Merge pull request #110 from Lonaasan/main
[Small Addition] Added respawnInWorld Command
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 9e0478a..8abfcdf 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)