diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-27 16:50:12 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-27 16:50:12 +0100 |
commit | 0a7ab6ad108d4c1820975e05e1429bad708da662 (patch) | |
tree | 2daea2e35adbbe79f0f4f7783391b8869f2af9ee /editor | |
parent | 1756ee2afde0659430f3a8f7e50a6734ce7519c7 (diff) |
add ephemeral object flag
Used to prevent objects from being stored in save files.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/inspect-types.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/inspect-types.cpp b/editor/inspect-types.cpp index 914c76a4..5668d6b2 100644 --- a/editor/inspect-types.cpp +++ b/editor/inspect-types.cpp @@ -62,6 +62,10 @@ struct entity_accessors<object, inspect_intent_t> { [](object& x, Vector2ub value) { x.set_bbox(x.offset, x.bbox_offset, value, x.pass); }, [](const object& x) { return x.pass == pass_mode::pass ? st::readonly : st::enabled; }, }, + E::type<bool>::field{"ephemeral"_s, + [](const object& x) { return x.ephemeral; }, + [](object& x, bool value) { x.ephemeral = value; }, + }, }; } }; |