You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
525 B
22 lines
525 B
2 weeks ago
|
#pragma once
|
||
|
|
||
|
#include "components.hpp"
|
||
|
#include "dinkyecs.hpp"
|
||
|
#include "tser.hpp"
|
||
|
#include <string>
|
||
|
#include <vector>
|
||
|
|
||
|
namespace save {
|
||
|
struct SaveData {
|
||
|
components::Player player;
|
||
|
std::vector<components::Position> position;
|
||
|
std::vector<components::Motion> motion;
|
||
|
std::vector<components::Combat> combat;
|
||
|
|
||
|
DEFINE_SERIALIZABLE(SaveData, player, position, motion, combat);
|
||
|
};
|
||
|
|
||
|
void to_file(std::string path, DinkyECS::World &world);
|
||
|
void from_file(std::string path, DinkyECS::World &world_out);
|
||
|
}
|