33 lines
793 B
C++
Executable File
33 lines
793 B
C++
Executable File
//
|
|
// KRLocator
|
|
// KREngine
|
|
//
|
|
// Created by Kearwood Gilbert on 2012-12-06.
|
|
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
|
//
|
|
|
|
#ifndef KRLOCATOR_H
|
|
#define KRLOCATOR_H
|
|
|
|
#include "KRResource.h"
|
|
#include "KRNode.h"
|
|
#include "KRTexture.h"
|
|
|
|
#include "boost/variant.hpp"
|
|
|
|
class KRLocator : public KRNode {
|
|
public:
|
|
KRLocator(KRScene &scene, std::string name);
|
|
virtual ~KRLocator();
|
|
virtual std::string getElementName();
|
|
virtual tinyxml2::XMLElement *saveXML( tinyxml2::XMLNode *parent);
|
|
virtual void loadXML(tinyxml2::XMLElement *e);
|
|
unordered_map<std::string, boost::variant<int, double, bool, std::string> > &getUserAttributes();
|
|
|
|
private:
|
|
unordered_map<std::string, boost::variant<int, double, bool, std::string> > m_userAttributes;
|
|
};
|
|
|
|
|
|
#endif
|