MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / ~WorldServer

Method ~WorldServer

source/game/StarWorldServer.cpp:74–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74WorldServer::~WorldServer() {
75 for (auto& p : m_scriptContexts)
76 p.second->uninit();
77
78 m_scriptContexts.clear();
79 m_spawner.uninit();
80 writeMetadata();
81 m_worldStorage->unloadAll(true);
82}
83
84void WorldServer::setWorldId(String worldId) {
85 m_worldId = std::move(worldId);

Callers

nothing calls this directly

Calls 3

unloadAllMethod · 0.80
uninitMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected