Started working on the loot system which will eventually become the inventory/improved collision system.

This commit is contained in:
Zed A. Shaw 2024-11-07 00:29:06 -05:00
parent c1d43694b0
commit 0a268591c2
5 changed files with 55 additions and 29 deletions

View file

@ -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) {