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:
Zed A. Shaw 2024-11-05 02:38:36 -05:00
parent babc190525
commit d113dba42f
15 changed files with 213 additions and 64 deletions

View file

@ -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);
};
}