From ada5ad5ec3a9cf3d59812fadc46b043d34652a0e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 7 Apr 2020 00:37:14 +0200 Subject: [PATCH] - missed adding a file... --- source/core/serialize_obj.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 source/core/serialize_obj.h diff --git a/source/core/serialize_obj.h b/source/core/serialize_obj.h new file mode 100644 index 000000000..c818d08fa --- /dev/null +++ b/source/core/serialize_obj.h @@ -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 +FSerializer &Serialize(FSerializer &arc, const char *key, TObjPtr &value, TObjPtr *) +{ + Serialize(arc, key, value.o, nullptr); + return arc; +} + +template +FSerializer &Serialize(FSerializer &arc, const char *key, TObjPtr &value, T *) +{ + Serialize(arc, key, value.o, nullptr); + return arc; +}