mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 15:01:49 +00:00
add EnumMetadata
This commit is contained in:
parent
d888ddec4c
commit
7749675a61
20 changed files with 156 additions and 206 deletions
|
|
@ -1,12 +1,21 @@
|
|||
#pragma once
|
||||
|
||||
#include "typedefs.hpp"
|
||||
#include "util/EnumMetadata.hpp"
|
||||
|
||||
class Content;
|
||||
class ContentPackRuntime;
|
||||
|
||||
enum class ContentType { NONE, BLOCK, ITEM, ENTITY, GENERATOR };
|
||||
|
||||
VC_ENUM_METADATA(ContentType)
|
||||
{"none", ContentType::NONE},
|
||||
{"block", ContentType::BLOCK},
|
||||
{"item", ContentType::ITEM},
|
||||
{"entity", ContentType::ENTITY},
|
||||
{"generator", ContentType::GENERATOR},
|
||||
VC_ENUM_END
|
||||
|
||||
enum class ResourceType : size_t {
|
||||
CAMERA,
|
||||
POST_EFFECT_SLOT,
|
||||
|
|
@ -15,3 +24,8 @@ enum class ResourceType : size_t {
|
|||
|
||||
inline constexpr auto RESOURCE_TYPES_COUNT =
|
||||
static_cast<size_t>(ResourceType::LAST) + 1;
|
||||
|
||||
VC_ENUM_METADATA(ResourceType)
|
||||
{"camera", ResourceType::CAMERA},
|
||||
{"post-effect-slot", ResourceType::POST_EFFECT_SLOT},
|
||||
VC_ENUM_END
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue