refactor: warp everything in Cubed namespace

This commit is contained in:
2026-04-20 22:18:02 +08:00
parent 6c74f4582c
commit c2321a0a6e
49 changed files with 288 additions and 66 deletions

View File

@@ -2,6 +2,10 @@
#include <stdexcept>
#include <string>
namespace Cubed {
enum class GameMode {
CREATIVE,
SPECTATOR
@@ -16,4 +20,7 @@ inline std::string to_str(GameMode mode) {
return {"Spective"};
}
throw std::invalid_argument{"GameMode is invaild"};
}
}