summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-09 22:04:53 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-09 22:04:53 +0200
commitb2f0c4532872e630b8c543d85dbb56709c625b99 (patch)
tree5148cd26746236caa8ecbeb07c6609e0d60d845e
parent8f77947d974ebbeb6b551dbf22b92028eb8e9109 (diff)
add todo
-rw-r--r--editor/app.hpp2
-rw-r--r--src/chunk.hpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/editor/app.hpp b/editor/app.hpp
index ac3abdb3..2e9efd7d 100644
--- a/editor/app.hpp
+++ b/editor/app.hpp
@@ -45,7 +45,7 @@ enum class popup_target_type : unsigned char {
};
struct popup_target final {
- object_id id;
+ object_id id; // todo switch to weak_ptr<entity>
popup_target_type target = popup_target_type::none;
bool operator==(const popup_target&) const;
};
diff --git a/src/chunk.hpp b/src/chunk.hpp
index be90c89a..ae19ad62 100644
--- a/src/chunk.hpp
+++ b/src/chunk.hpp
@@ -121,8 +121,8 @@ private:
std::array<variant_t, TILE_COUNT*2> _wall_variants = {};
std::vector<std::shared_ptr<entity>> _entities;
- std::vector<std::array<UnsignedShort, 6>> scenery_indexes;
- std::vector<std::array<vertex, 4>> scenery_vertexes;
+ std::vector<std::array<UnsignedShort, 6>> scenery_indexes; // todo move to anim_mesh
+ std::vector<std::array<vertex, 4>> scenery_vertexes; // same
struct world* _world;
GL::Mesh ground_mesh{NoCreate}, wall_mesh{NoCreate}, scenery_mesh{NoCreate};