Skip to content

Commit

Permalink
BLUGA-PHYSICS: Add constructor health
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed Nov 5, 2023
1 parent 27e18f0 commit f80e7f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libs/B-luga-physics/include/B-luga-physics/ECSCustomTypes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
namespace Types {

struct Health {
Health(int hp) : hp(hp)
{
}

int hp;

NLOHMANN_DEFINE_TYPE_INTRUSIVE(Health, hp);
Expand Down

0 comments on commit f80e7f4

Please sign in to comment.