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
|
@ -1,4 +1,5 @@
|
|||
#pragma once
|
||||
#include "tser.hpp"
|
||||
|
||||
struct Point {
|
||||
size_t x = 0;
|
||||
|
@ -7,6 +8,8 @@ struct Point {
|
|||
bool operator==(const Point& other) const {
|
||||
return other.x == x && other.y == y;
|
||||
}
|
||||
|
||||
DEFINE_SERIALIZABLE(Point, x, y);
|
||||
};
|
||||
|
||||
typedef std::vector<Point> PointList;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue