#ifndef _GAMEOBJECT_H #define _GAMEOBJECT_H #include struct GameObject { const char* name; bool is_top_level; GameObject* parent; std::vector children; std::map>> handlers; void add(GameObject* child); std::vector& get_children(); GameObject* get(const char* targetedName); }; #endif