first commit
This commit is contained in:
commit
5c7d1905a9
25 changed files with 4034 additions and 0 deletions
24
include/components/common.hpp
Normal file
24
include/components/common.hpp
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
/**
|
||||
* @file common.hpp
|
||||
* @brief Common/utility components
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
struct Name {
|
||||
std::string value;
|
||||
};
|
||||
|
||||
// Tag component - empty struct marks entities for destruction
|
||||
struct ToDestroy {};
|
||||
|
||||
struct Lifetime {
|
||||
float remaining = 0.0f;
|
||||
};
|
||||
|
||||
struct Health {
|
||||
float current = 100.0f;
|
||||
float max = 100.0f;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue