Gameplay components and systems used by both programs (src/Common).
More...
|
| void | component::bulletFromJson (rtk::ecs::Registry ®, std::size_t entity, const nlohmann::json &data) |
| | Adds a Bullet to an entity from its blueprint data.
|
| |
| void | component::controllableFromJson (rtk::ecs::Registry ®, std::size_t entity, const nlohmann::json &data) |
| | Adds a Controllable to an entity from its blueprint data.
|
| |
| void | component::enemyFromJson (rtk::ecs::Registry ®, std::size_t entity, const nlohmann::json &data) |
| | Adds an Enemy to an entity from its blueprint data.
|
| |
| void | rtype::events::enemyEscapedEventFromJson (rtk::ecs::Registry ®, std::size_t entity, const nlohmann::json &data) |
| | Attaches an EnemyEscapedEvent to an entity from blueprint data.
|
| |
| void | component::enemyEventFromJson (rtk::ecs::Registry ®, std::size_t entity, const nlohmann::json &data) |
| | Alias of rtype::events::enemyEscapedEventFromJson() for blueprints.
|
| |
Gameplay components and systems used by both programs (src/Common).
◆ bulletFromJson()
| void component::bulletFromJson |
( |
rtk::ecs::Registry & | reg, |
|
|
std::size_t | entity, |
|
|
const nlohmann::json & | data ) |
|
inline |
Adds a Bullet to an entity from its blueprint data.
- Parameters
-
| reg | Registry owning the entity. |
| entity | Target entity. |
| data | JSON object with an optional damage field. |
◆ controllableFromJson()
| void component::controllableFromJson |
( |
rtk::ecs::Registry & | reg, |
|
|
std::size_t | entity, |
|
|
const nlohmann::json & | data ) |
|
inline |
Adds a Controllable to an entity from its blueprint data.
- Parameters
-
| reg | Registry owning the entity. |
| entity | Target entity. |
| data | JSON object with optional speed and isChargingShoot fields. |
◆ enemyFromJson()
| void component::enemyFromJson |
( |
rtk::ecs::Registry & | reg, |
|
|
std::size_t | entity, |
|
|
const nlohmann::json & | data ) |
|
inline |
Adds an Enemy to an entity from its blueprint data.
- Parameters
-
| reg | Registry owning the entity. |
| entity | Target entity. |
| data | JSON object with an optional health field. |
◆ enemyEscapedEventFromJson()
| void rtype::events::enemyEscapedEventFromJson |
( |
rtk::ecs::Registry & | reg, |
|
|
std::size_t | entity, |
|
|
const nlohmann::json & | data ) |
|
inline |
Attaches an EnemyEscapedEvent to an entity from blueprint data.
- Parameters
-
| reg | Registry owning the entity. |
| entity | Target entity. |
| data | JSON object with an optional entityId field. |
◆ enemyEventFromJson()
| void component::enemyEventFromJson |
( |
rtk::ecs::Registry & | reg, |
|
|
std::size_t | entity, |
|
|
const nlohmann::json & | data ) |
|
inline |