LastDamageComponent.ixx File
Component for tracking the last entity that attacked this entity. More...
Included Headers
#include <helios.engine.common.types.DamageContext>
Namespaces Index
| namespace | helios |
| namespace | engine |
|
Main engine module aggregating core infrastructure and game systems. More... | |
| namespace | mechanics |
|
High-level gameplay systems and components for game logic. More... | |
| namespace | damage |
|
Damage dealing system for game entities. More... | |
| namespace | components |
|
Damage-related ECS components. More... | |
Classes Index
| class | LastDamageComponent |
|
Component that stores information about the last damage received. More... | |
Description
Component for tracking the last entity that attacked this entity.
File Listing
The file content with the documentation metadata removed is:
13using namespace helios::engine::common::types;
15export namespace helios::engine::mechanics::damage::components {
24 class LastDamageComponent {
31 helios::engine::common::types::DamageContext damageContext_{};
63 LastDamageComponent() = default;
70 LastDamageComponent(const LastDamageComponent& other) = default;
72 LastDamageComponent& operator=(const LastDamageComponent&) = default;
73 LastDamageComponent(LastDamageComponent&&) noexcept = default;
74 LastDamageComponent& operator=(LastDamageComponent&&) noexcept = default;
81 void setDamageContext(const DamageContext& damageContext) noexcept {
82 damageContext_ = damageContext;
90 [[nodiscard]] DamageContext damageContext() const noexcept {
107 reset();
116 reset();
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.