1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 06:39:49 +00:00
OpenMW/apps/openmw/mwlua/userdataserializer.hpp
2021-07-09 20:03:27 +02:00

20 lines
541 B
C++

#ifndef MWLUA_USERDATASERIALIZER_H
#define MWLUA_USERDATASERIALIZER_H
#include "object.hpp"
namespace LuaUtil
{
class UserdataSerializer;
}
namespace MWLua
{
// UserdataSerializer is an extension for components/lua/serialization.hpp
// Needed to serialize references to objects.
// If local=true, then during deserialization creates LObject, otherwise creates GObject.
std::unique_ptr<LuaUtil::UserdataSerializer> createUserdataSerializer(bool local, ObjectRegistry* registry);
}
#endif // MWLUA_USERDATASERIALIZER_H