Almost working save sytem but the data I store is totally wrong. I need to also save the entity IDs being used and map them to the components.
This commit is contained in:
parent
babc190525
commit
d113dba42f
15 changed files with 213 additions and 64 deletions
16
combat.hpp
16
combat.hpp
|
@ -1,11 +1,11 @@
|
|||
#pragma once
|
||||
|
||||
#include "components.hpp"
|
||||
namespace components {
|
||||
struct Combat {
|
||||
int hp;
|
||||
int damage;
|
||||
bool dead;
|
||||
|
||||
struct Combat {
|
||||
int hp;
|
||||
int damage;
|
||||
bool dead;
|
||||
|
||||
int attack(Combat &target);
|
||||
};
|
||||
int attack(Combat &target);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue