Skip to content
Snippets Groups Projects
Commit 6da7b0a4 authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers
Browse files

IDs are immutable after creation

parent 53f37adb
No related branches found
No related tags found
No related merge requests found
......@@ -24,13 +24,13 @@
namespace fggl::ecs {
struct entity {
std::uint32_t id;
const std::uint32_t id;
};
constexpr const entity NULL_ENTITY = {0};
constexpr const entity MAX_ENTITY = {0xFFFFFFFF};
struct componentID {
std::uint32_t id;
const std::uint32_t id;
};
constexpr const entity NULL_COMPONENT = {0};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment