mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
Spawn different objects withing level
This commit is contained in:
parent
7434cb66e8
commit
4a4b80bef3
9 changed files with 85 additions and 18 deletions
|
|
@ -4,12 +4,11 @@
|
|||
#include <memory>
|
||||
#include "../coders/json.h"
|
||||
|
||||
class Serializable
|
||||
{
|
||||
class Serializable {
|
||||
public:
|
||||
virtual ~Serializable() { }
|
||||
virtual std::unique_ptr<dynamic::Map> serialize() const = 0;
|
||||
virtual void deserialize(dynamic::Map* src) = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif /* SERIALIZABLE_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue