diff options
Diffstat (limited to 'source/frontend/StarClientCommandProcessor.cpp')
-rw-r--r-- | source/frontend/StarClientCommandProcessor.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/frontend/StarClientCommandProcessor.cpp b/source/frontend/StarClientCommandProcessor.cpp index f006d8e..b6ab53c 100644 --- a/source/frontend/StarClientCommandProcessor.cpp +++ b/source/frontend/StarClientCommandProcessor.cpp @@ -24,6 +24,7 @@ ClientCommandProcessor::ClientCommandProcessor(UniverseClientPtr universeClient, {"debug", bind(&ClientCommandProcessor::debug, this)}, {"boxes", bind(&ClientCommandProcessor::boxes, this)}, {"fullbright", bind(&ClientCommandProcessor::fullbright, this)}, + {"asyncLighting", bind(&ClientCommandProcessor::asyncLighting, this)}, {"setGravity", bind(&ClientCommandProcessor::setGravity, this, _1)}, {"resetGravity", bind(&ClientCommandProcessor::resetGravity, this)}, {"fixedCamera", bind(&ClientCommandProcessor::fixedCamera, this)}, @@ -151,6 +152,12 @@ String ClientCommandProcessor::fullbright() { ? "enabled" : "disabled"); } +String ClientCommandProcessor::asyncLighting() { + return strf("Asynchronous render lighting {}", + m_universeClient->worldClient()->toggleAsyncLighting() + ? "enabled" : "disabled"); +} + String ClientCommandProcessor::setGravity(StringList const& arguments) { if (!adminCommandAllowed()) return "You must be an admin to use this command."; |