mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-09 02:07:04 +08:00
refactor: warp everything in Cubed namespace
This commit is contained in:
@@ -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"};
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user