Moved majority over to flint2 and updated sol2
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
#pragma once
|
||||
#include "ecs.h"
|
||||
|
||||
#include "iohelper/write.h"
|
||||
#include "iohelper/read.h"
|
||||
#include "io/write.h"
|
||||
#include "io/read.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace ecs::serial {
|
||||
|
||||
template <typename T, typename M, typename... Args>
|
||||
void serialize_member(std::ostream& os, T* t, M T::*m, Args... args) {
|
||||
iohelper::write<M>(os, t->*m);
|
||||
io::write<M>(os, t->*m);
|
||||
|
||||
serialize_member(os, t, args...);
|
||||
}
|
||||
@@ -32,7 +32,7 @@ namespace ecs::serial {
|
||||
|
||||
template <typename T, typename M, typename... Args>
|
||||
void deserialize_member(std::istream& is, T* t, M T::*m, Args... args) {
|
||||
t->*m = iohelper::read<M>(is);
|
||||
t->*m = io::read<M>(is);
|
||||
|
||||
deserialize_member(is, t, args...);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user