mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
the final rename
This commit is contained in:
parent
f27a418dbe
commit
1627e21c1d
196 changed files with 836 additions and 815 deletions
15
src/interfaces/Serializable.hpp
Normal file
15
src/interfaces/Serializable.hpp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#ifndef SERIALIZABLE_HPP_
|
||||
#define SERIALIZABLE_HPP_
|
||||
|
||||
#include "../coders/json.hpp"
|
||||
|
||||
#include <memory>
|
||||
|
||||
class Serializable {
|
||||
public:
|
||||
virtual ~Serializable() { }
|
||||
virtual std::unique_ptr<dynamic::Map> serialize() const = 0;
|
||||
virtual void deserialize(dynamic::Map* src) = 0;
|
||||
};
|
||||
|
||||
#endif // SERIALIZABLE_HPP_
|
||||
Loading…
Add table
Add a link
Reference in a new issue