mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
14 lines
No EOL
305 B
C++
14 lines
No EOL
305 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 /* SERIALIZABLE_H */ |