Browse Source

fix PlayerEntity::get

opengl-renderer-broken
Martin Dørum 3 years ago
parent
commit
f040f51b04
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      core.mod/src/entities/PlayerEntity.h

+ 1
- 1
core.mod/src/entities/PlayerEntity.h View File

@@ -8,8 +8,8 @@ public:
PlayerEntity(const Swan::Context &ctx, Swan::Vec2 pos);
PlayerEntity(const Swan::Context &ctx, const PackObject &obj);

using PhysicsEntity::get;
Inventory &get(InventoryTrait::Tag) override { return inventory_; }
Body &get(BodyTrait::Tag) override { return body_; }

void draw(const Swan::Context &ctx, Swan::Win &win) override;
void update(const Swan::Context &ctx, float dt) override;

Loading…
Cancel
Save