mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
15 lines
No EOL
284 B
C++
15 lines
No EOL
284 B
C++
#ifndef SERIALIZABLE_H
|
|
#define SERIALIZABLE_H
|
|
|
|
#include <memory>
|
|
#include "../coders/json.h"
|
|
|
|
class Serializable
|
|
{
|
|
public:
|
|
virtual ~Serializable() { }
|
|
virtual std::unique_ptr<dynamic::Map> serialize() const = 0;
|
|
virtual void deserialize(dynamic::Map* src) = 0;
|
|
};
|
|
|
|
#endif |