feat: shutdown command (#1780)

This commit is contained in:
David Markowitz
2025-04-24 13:41:26 -07:00
committed by GitHub
parent 1cc1782b35
commit b31f9670d1
4 changed files with 17 additions and 0 deletions

View File

@@ -1622,4 +1622,10 @@ namespace DEVGMCommands {
}
}
}
void Shutdown(Entity* entity, const SystemAddress& sysAddr, const std::string args) {
auto* character = entity->GetCharacter();
if (character) LOG("Mythran (%s) has shutdown the world", character->GetName().c_str());
Game::OnSignal(-1);
}
};