diff options
author | max-001 <maxsmits21@kpnmail.nl> | 2024-11-26 09:28:12 +0100 |
---|---|---|
committer | max-001 <maxsmits21@kpnmail.nl> | 2024-11-26 09:28:12 +0100 |
commit | 07ac07ce4cafe8ec454a1e53b1541dcaab10cf40 (patch) | |
tree | def28215f182f750bc4ff6d892455f7ce0dd6eb2 /src/crepe/ComponentManager.cpp | |
parent | f52e7e1450d47604983dba5f3cbab364ffd77cdc (diff) |
It is now possible to reset the persistent flag
Diffstat (limited to 'src/crepe/ComponentManager.cpp')
-rw-r--r-- | src/crepe/ComponentManager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/crepe/ComponentManager.cpp b/src/crepe/ComponentManager.cpp index e99419e..af4b9f4 100644 --- a/src/crepe/ComponentManager.cpp +++ b/src/crepe/ComponentManager.cpp @@ -47,4 +47,6 @@ GameObject ComponentManager::new_object(const string & name, const string & tag, return object; } -void ComponentManager::set_persistent(game_object_id_t id) { this->persistent[id] = true; } +void ComponentManager::set_persistent(game_object_id_t id, bool persistent) { + this->persistent[id] = persistent; +} |