From 316df0931c66e43e69f21bda28c77b9bdb1e8bca Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Tue, 13 Jun 2017 21:01:08 -0400 Subject: component reorginization; entity flashes --- include/components/portal.hpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 include/components/portal.hpp (limited to 'include/components/portal.hpp') diff --git a/include/components/portal.hpp b/include/components/portal.hpp new file mode 100644 index 0000000..ca153e1 --- /dev/null +++ b/include/components/portal.hpp @@ -0,0 +1,23 @@ +#ifndef COMPONENTS_PORTAL_HPP_ +#define COMPONENTS_PORTAL_HPP_ + +#include "base.hpp" + +#include + +struct Portal : public Component { + Portal(std::string tf = "") + : toFile(tf) {} + Portal(XMLElement* imp, XMLElement* def) { + fromXML(imp, def); + } + + std::string toFile; + + void fromXML(XMLElement* imp, XMLElement* def) final { + (void)def; + toFile = imp->StrAttribute("inside"); + } +}; + +#endif // COMPONENTS_PORTAL_HPP_ -- cgit v1.2.3