Meteor2D  dev internal
Meteor is a lightweight 2D game engine.
Loading...
Searching...
No Matches
scene_entity_type_deserializer.h
1#pragma once
2#include <entities/spatial.h>
3#include <pugixml/pugixml.hpp>
4#include <string>
5
6namespace meteor {
11 public:
13 virtual MSpatialEntity* deserialize(pugi::xml_node* node) = 0;
14 protected:
15 void parseSpatialData(pugi::xml_node* node, MSpatialEntity* entity);
16 private:
17 const std::string LOCAL_POS_ATTRIB = "localPosition";
18 const std::string LOCAL_ROT_ATTRIB = "localRotation";
19 const std::string LOCAL_SCALE_ATTRIB = "localScale";
20 const std::string NAME_ATTRIB = "name";
21 };
22
23}
An Entity is the base class for all data and behaviour oriented objects in meteor....
Definition entity.h:9
Base class for Scene Enity Derserializers.
Definition scene_entity_type_deserializer.h:10
Spatial Entity is the base entity for all types present in scene. This entity keeps track of spatial ...
Definition spatial.h:15