From 3a54621bd8a55b672ba986f02ab094bfb4ba6faf Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Wed, 7 May 2025 04:49:52 +1000 Subject: add world.template, world.setTemplate --- source/game/StarWorldClient.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/game/StarWorldClient.cpp') 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(newTemplate)); +} + SkyConstPtr WorldClient::currentSky() const { return m_sky; } -- cgit v1.2.3