mirror of
https://github.com/ApfelTeeSaft/vb01.git
synced 2026-08-26 19:33:45 +00:00
23 lines
452 B
C++
23 lines
452 B
C++
#ifndef ATTACHABLE_H
|
|
#define ATTACHABLE_H
|
|
|
|
#include <string>
|
|
|
|
namespace vb01{
|
|
class Node;
|
|
|
|
struct Attachable{
|
|
public:
|
|
Attachable(std::string fullName){this->fullName = fullName;}
|
|
Attachable(){}
|
|
virtual void onAttached(Node *node){this->node = node;}
|
|
Node* getNode(){return node;}
|
|
std::string getAttachableName(){return fullName;}
|
|
protected:
|
|
std::string fullName = "";
|
|
Node *node = nullptr;
|
|
};
|
|
}
|
|
|
|
#endif
|