diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-15 14:52:54 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-15 15:09:09 +0100 |
commit | 2e0c0009806860e4e8ac24663afdc5d926d1213f (patch) | |
tree | 24a88dfa818e52179b0955a463da4b9cfa834b4d /src/character.hpp | |
parent | c6c3c887e99c57fb567252053190ce4a24f65455 (diff) |
src: add O(1) chunk access from entity
Diffstat (limited to 'src/character.hpp')
-rw-r--r-- | src/character.hpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/character.hpp b/src/character.hpp index d69b98dc..1733c2dd 100644 --- a/src/character.hpp +++ b/src/character.hpp @@ -18,12 +18,11 @@ struct character final : entity private: int allocate_frame_time(float dt); static Vector2 move_vec(int left_right, int top_bottom); - character(std::uint64_t id, struct world& w, entity_type type); friend struct world; + character(std::uint64_t id, struct chunk& c, entity_type type); Vector2s offset_frac; - bool b_L : 1 = false, b_R : 1 = false, b_U : 1 = false, b_D : 1 = false; }; |