Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Health_data Struct Reference

#include <ECS_Components.h>

Public Member Functions

 Health_data ()=default
 
 Health_data (int current, int max)
 
 Health_data (const Health_data &)=default
 
Health_dataoperator= (const Health_data &)=default
 

Public Attributes

int currentHealth = 100
 
int maxHealth = 100
 

Detailed Description

Definition at line 229 of file ECS_Components.h.

Constructor & Destructor Documentation

◆ Health_data() [1/3]

Health_data::Health_data ( )
default

◆ Health_data() [2/3]

Health_data::Health_data ( int  current,
int  max 
)
inline

Definition at line 236 of file ECS_Components.h.

◆ Health_data() [3/3]

Health_data::Health_data ( const Health_data )
default

Member Function Documentation

◆ operator=()

Health_data & Health_data::operator= ( const Health_data )
default

Member Data Documentation

◆ currentHealth

int Health_data::currentHealth = 100

Definition at line 231 of file ECS_Components.h.

Referenced by PrefabFactory::InstantiateHealth().

◆ maxHealth

int Health_data::maxHealth = 100

Definition at line 232 of file ECS_Components.h.


The documentation for this struct was generated from the following file: