Started working on the loot system which will eventually become the inventory/improved collision system.
This commit is contained in:
parent
c1d43694b0
commit
0a268591c2
5 changed files with 55 additions and 29 deletions
|
@ -111,8 +111,10 @@ TEST_CASE("confirm ECS system works", "[ecs]") {
|
|||
});
|
||||
|
||||
// now remove Velocity
|
||||
REQUIRE(world.has<Velocity>(test));
|
||||
world.remove<Velocity>(test);
|
||||
REQUIRE_THROWS(world.get<Velocity>(test));
|
||||
REQUIRE(!world.has<Velocity>(test));
|
||||
|
||||
println("--- After remove test, should only result in test2:");
|
||||
world.query<Position, Velocity>([&](const auto &ent, auto &pos, auto &vel) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue