Starbound/attic/old_source/StarServerShell.cpp
2025-03-21 22:23:30 +11:00

26 lines
461 B
C++

#include "StarServerShell.hpp"
#include "StarUniverseServer.hpp"
#include "StarLua.hpp"
namespace Star {
ServerShell::ServerShell(UniverseServerWeakPtr universe)
: m_universe(universe) {}
void ServerShell::run() {
}
String ServerShell::help() const {
return "";
}
UniverseServerPtr ServerShell::universe() const {
if (auto universe = m_universe.lock()) {
return universe;
}
throw ServerShellException("Running universe not valid.");
}
}