aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/Metadata.h
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-11-06 09:52:05 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-11-06 09:52:05 +0100
commitf4083c161a1176c900629ba61d96843645fc7be5 (patch)
tree0c136c9af142a4f7018a7441ec879b3b41da02c0 /src/crepe/Metadata.h
parentbf4c172f2709adf5a6f210bae60e16972e8decad (diff)
parent6ce2c14077e3e6dd01398d582b42dc50e9141f54 (diff)
Merge remote-tracking branch 'origin/master' into max/scenes
Diffstat (limited to 'src/crepe/Metadata.h')
-rw-r--r--src/crepe/Metadata.h6
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;
};