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

summaryrefslogtreecommitdiff
path: root/source/game/StarWorldClient.cpp
diff options
context:
space:
mode:
authorgrbr404 <166065505+grbr404@users.noreply.github.com>2025-05-09 17:57:28 +0200
committerGitHub <noreply@github.com>2025-05-09 17:57:28 +0200
commit682267e765f6d7c8314e31056e68c498819d524c (patch)
tree2e160bda754116278090542714d7978d9e588d97 /source/game/StarWorldClient.cpp
parent3fc211bcb8dcddd90d50b081553750573bddea7d (diff)
parent3a54621bd8a55b672ba986f02ab094bfb4ba6faf (diff)
Merge branch 'OpenStarbound:main' into main
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 51fe883..8db6a62 100644
--- a/source/game/StarWorldClient.cpp
+++ b/source/game/StarWorldClient.cpp
@@ -186,6 +186,10 @@ WorldTemplateConstPtr WorldClient::currentTemplate() const {
return m_worldTemplate;
}
+void WorldClient::setTemplate(Json newTemplate) {
+ m_outgoingPackets.push_back(make_shared<UpdateWorldTemplatePacket>(newTemplate));
+}
+
SkyConstPtr WorldClient::currentSky() const {
return m_sky;
}