Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (19 sloc) 0.669 kB
// Copyright © 2008-2012 Pioneer Developers. See AUTHORS.txt for details
// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
#ifndef _LUASERIALIZER_H
#define _LUASERIALIZER_H
#include "LuaManager.h"
#include "LuaObject.h"
#include "DeleteEmitter.h"
#include "Serializer.h"
class LuaSerializer : public DeleteEmitter {
friend class LuaObject<LuaSerializer>;
public:
void Serialize(Serializer::Writer &wr);
void Unserialize(Serializer::Reader &rd);
private:
static int l_register(lua_State *l);
static void pickle(lua_State *l, int idx, std::string &out, const char *key);
static const char *unpickle(lua_State *l, const char *pos);
};
#endif
Jump to Line
Something went wrong with that request. Please try again.