mirror of
https://github.com/BlackMATov/ecs.hpp.git
synced 2025-12-13 02:26:27 +07:00
explicit entity and component ctors
This commit is contained in:
@@ -435,6 +435,15 @@ TEST_CASE("registry") {
|
||||
}
|
||||
}
|
||||
SECTION("components") {
|
||||
{
|
||||
ecs::registry w;
|
||||
ecs::entity e{w};
|
||||
ecs::component<position_c> c1{e};
|
||||
ecs::const_component<velocity_c> c2{e};
|
||||
REQUIRE_FALSE(e.valid());
|
||||
REQUIRE_FALSE(c1.valid());
|
||||
REQUIRE_FALSE(c2.valid());
|
||||
}
|
||||
{
|
||||
ecs::registry w;
|
||||
ecs::entity e1 = w.create_entity();
|
||||
|
||||
Reference in New Issue
Block a user