mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
refactor
This commit is contained in:
parent
2580b9dc2f
commit
3f3ff2a1f7
4 changed files with 48 additions and 36 deletions
|
|
@ -19,6 +19,16 @@ enum class contenttype {
|
|||
none, block, item
|
||||
};
|
||||
|
||||
inline const char* contenttype_name(contenttype type) {
|
||||
switch (type) {
|
||||
case contenttype::none: return "none";
|
||||
case contenttype::block: return "block";
|
||||
case contenttype::item: return "item";
|
||||
default:
|
||||
return "unknown";
|
||||
}
|
||||
}
|
||||
|
||||
class namereuse_error: public std::runtime_error {
|
||||
contenttype type;
|
||||
public:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue