4#include <nlohmann/json.hpp>
28 const nlohmann::json &data) {
30 enemy.
health = data.value(
"health", 100.0f);
void enemyFromJson(rtk::ecs::Registry ®, std::size_t entity, const nlohmann::json &data)
Adds an Enemy to an entity from its blueprint data.
Definition Enemy.hpp:27
Marks an entity as a Bydos enemy.
Definition Enemy.hpp:17
float health
Remaining health points.
Definition Enemy.hpp:18