summaryrefslogtreecommitdiffstats
path: root/game/shared/entity/stasis.cc
diff options
context:
space:
mode:
Diffstat (limited to 'game/shared/entity/stasis.cc')
-rw-r--r--game/shared/entity/stasis.cc21
1 files changed, 0 insertions, 21 deletions
diff --git a/game/shared/entity/stasis.cc b/game/shared/entity/stasis.cc
deleted file mode 100644
index eab8744..0000000
--- a/game/shared/entity/stasis.cc
+++ /dev/null
@@ -1,21 +0,0 @@
-#include "shared/pch.hh"
-
-#include "shared/entity/stasis.hh"
-
-#include "shared/entity/transform.hh"
-
-#include "shared/world/dimension.hh"
-
-void entity::Stasis::fixed_update(world::Dimension* dimension)
-{
- auto view = dimension->entities.view<entity::Transform>();
-
- for(auto [entity, transform] : view.each()) {
- if(dimension->find_chunk(transform.chunk)) {
- dimension->entities.remove<entity::Stasis>(entity);
- }
- else {
- dimension->entities.emplace_or_replace<entity::Stasis>(entity);
- }
- }
-}