mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-14 03:40:50 +00:00
- missed adding a file...
This commit is contained in:
parent
920f9a3f3f
commit
ada5ad5ec3
1 changed files with 17 additions and 0 deletions
17
source/core/serialize_obj.h
Normal file
17
source/core/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…
Reference in a new issue