2023-05-27 08:10:42 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "serializer.h"
|
|
|
|
|
|
|
|
class PClassActor;
|
|
|
|
struct FState;
|
|
|
|
|
|
|
|
class FRazeSerializer : public FSerializer
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
FSerializer &Sprite(const char *key, int32_t &spritenum, int32_t *def) override;
|
|
|
|
FSerializer& StatePointer(const char* key, void* ptraddr, bool *res) override;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
template<> FSerializer &Serialize(FSerializer &arc, const char *key, PClassActor *&clst, PClassActor **def);
|
|
|
|
FSerializer &Serialize(FSerializer &arc, const char *key, FState *&state, FState **def, bool *retcode);
|
2023-06-27 14:43:46 +00:00
|
|
|
FSerializer& Serialize(FSerializer& arc, const char* key, FState**& state, FState*** def, bool* retcode);
|
|
|
|
|
2023-05-27 08:10:42 +00:00
|
|
|
template<> inline FSerializer &Serialize(FSerializer &arc, const char *key, FState *&state, FState **def)
|
|
|
|
{
|
|
|
|
return Serialize(arc, key, state, def, nullptr);
|
|
|
|
}
|