From 6296b85846b21083e4f545b209f1d9edce2b06f9 Mon Sep 17 00:00:00 2001 From: max-001 Date: Wed, 6 Nov 2024 15:20:25 +0100 Subject: Moved Matadata to api folder (because it may be used by the game programmer) --- src/crepe/Metadata.h | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 src/crepe/Metadata.h (limited to 'src/crepe/Metadata.h') diff --git a/src/crepe/Metadata.h b/src/crepe/Metadata.h deleted file mode 100644 index d52ab67..0000000 --- a/src/crepe/Metadata.h +++ /dev/null @@ -1,43 +0,0 @@ -#pragma once - -#include -#include - -#include "Component.h" - -namespace crepe { - -/** - * \brief Metadata component - * - * This class represents the Metadata component. It stores the name, tag, parent - * and children of a GameObject. - */ -class Metadata : public Component { -public: - /** - * \param game_object_id The id of the GameObject this component belongs to - * \param name The name of the GameObject - * \param tag The tag of the GameObject - */ - Metadata(uint32_t game_object_id, const std::string & name, - const std::string & tag); - /** - * \brief Get the maximum number of instances for this component - * - * \return The maximum number of instances for this component - */ - virtual int get_instances_max() const { return 1; } - -public: - //! The name of the GameObject - std::string name; - //! The tag of the GameObject - std::string tag; - //! The id of the parent GameObject (-1 if no parent) - uint32_t parent = -1; - //! The ids of the children GameObjects - std::vector children; -}; - -} // namespace crepe -- cgit v1.2.3