diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-05-07 04:49:52 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-05-07 04:49:52 +1000 |
commit | 3a54621bd8a55b672ba986f02ab094bfb4ba6faf (patch) | |
tree | 4cba881b3c8518b7be01fc8225a0877406aee16e /source/game/StarWorldClient.cpp | |
parent | 37fab128ceccfafac99d33e84c768e85aead6d60 (diff) |
add world.template, world.setTemplate
Diffstat (limited to 'source/game/StarWorldClient.cpp')
-rw-r--r-- | source/game/StarWorldClient.cpp | 4 |
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; } |