diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-09-01 22:27:30 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-09-01 22:27:30 +0200 |
| commit | 31fd5bbc08234686cf798a93a18e0bb73615d1bf (patch) | |
| tree | 59b964d01885916c5d49fef3c168ff10dcbdd93f /editor/vobj-editor.cpp | |
| parent | 053ea3aa1c443c368f8b43591e3e970e12b50c70 (diff) | |
rename entity -> object
Diffstat (limited to 'editor/vobj-editor.cpp')
| -rw-r--r-- | editor/vobj-editor.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/editor/vobj-editor.cpp b/editor/vobj-editor.cpp index d242f68f..4d3f3f03 100644 --- a/editor/vobj-editor.cpp +++ b/editor/vobj-editor.cpp @@ -45,14 +45,14 @@ void vobj_editor::place_tile(world& w, global_coords pos, const vobj_* x, struct if (!x) { auto [c, t] = w[pos]; - const auto& es = c.entities(); + const auto& es = c.objects(); start: while (auto id = a.object_at_cursor()) { for (auto i = es.size()-1; i != (size_t)-1; i--) { if (es[i]->id == id) { - c.remove_entity(i); + c.remove_object(i); goto start; } } @@ -69,7 +69,7 @@ start: while (auto id = a.object_at_cursor()) struct light_factory final : vobj_factory { - entity_type type() const override { return entity_type::light; } + object_type type() const override { return object_type::light; } const vobj_info& info() const override { @@ -80,9 +80,9 @@ struct light_factory final : vobj_factory return ret; } - std::shared_ptr<entity> make(world& w, object_id id, global_coords pos) const override + std::shared_ptr<object> make(world& w, object_id id, global_coords pos) const override { - auto ret = w.make_entity<light>(id, pos, light_proto{}); + auto ret = w.make_object<light>(id, pos, light_proto{}); return ret; } }; |
