diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-05 18:48:46 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-05 18:48:46 +0100 |
commit | 3fe7400de095756362b999908fd2a2ba3b71a848 (patch) | |
tree | 8a6c6d4213fdab076a451f37e6471ca5965b2c8f /src/crepe/Metadata.h | |
parent | ae6a103946e437ca85cc69c5fc2cbf68d35ffeae (diff) |
merge #18
Diffstat (limited to 'src/crepe/Metadata.h')
-rw-r--r-- | src/crepe/Metadata.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crepe/Metadata.h b/src/crepe/Metadata.h index 2f08476..b946fd0 100644 --- a/src/crepe/Metadata.h +++ b/src/crepe/Metadata.h @@ -9,13 +9,13 @@ namespace crepe { class Metadata : public Component { public: - Metadata(uint32_t game_object_id, std::string name, std::string tag); - int get_instances_max() const; + Metadata(uint32_t game_object_id, const std::string & name, const std::string & tag); + virtual int get_instances_max() const { return 1; } public: std::string name; std::string tag; - uint32_t parent = UINT32_MAX; + uint32_t parent = -1; std::vector<uint32_t> children; }; |