- moved serializer to 'common'.
This commit is contained in:
parent
7b292cca57
commit
f6bd2e4f76
5 changed files with 13 additions and 13 deletions
17
src/common/engine/serialize_obj.h
Normal file
17
src/common/engine/serialize_obj.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#pragma once
|
||||
|
||||
// These are in a separate header because they require some rather 'dirty' headers to work which should not be part of serializer.h
|
||||
|
||||
template<class T>
|
||||
FSerializer &Serialize(FSerializer &arc, const char *key, TObjPtr<T> &value, TObjPtr<T> *)
|
||||
{
|
||||
Serialize(arc, key, value.o, nullptr);
|
||||
return arc;
|
||||
}
|
||||
|
||||
template<class T>
|
||||
FSerializer &Serialize(FSerializer &arc, const char *key, TObjPtr<T> &value, T *)
|
||||
{
|
||||
Serialize(arc, key, value.o, nullptr);
|
||||
return arc;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue