From b8bbc54c5c920aff1ff1b45a693f50d6d96d61c8 Mon Sep 17 00:00:00 2001 From: untodesu Date: Thu, 11 Sep 2025 15:45:26 +0500 Subject: Revise style: split include groups --- game/shared/entity/collision.cc | 1 + game/shared/entity/factory.cc | 1 + game/shared/entity/gravity.cc | 1 + game/shared/entity/stasis.cc | 1 + game/shared/entity/velocity.cc | 1 + game/shared/protocol.cc | 1 + game/shared/world/chunk.hh | 3 ++- 7 files changed, 8 insertions(+), 1 deletion(-) (limited to 'game/shared') diff --git a/game/shared/entity/collision.cc b/game/shared/entity/collision.cc index 454e96a..4346b68 100644 --- a/game/shared/entity/collision.cc +++ b/game/shared/entity/collision.cc @@ -8,6 +8,7 @@ #include "shared/entity/grounded.hh" #include "shared/entity/transform.hh" #include "shared/entity/velocity.hh" + #include "shared/world/dimension.hh" #include "shared/world/voxel_registry.hh" diff --git a/game/shared/entity/factory.cc b/game/shared/entity/factory.cc index c98306a..619a418 100644 --- a/game/shared/entity/factory.cc +++ b/game/shared/entity/factory.cc @@ -8,6 +8,7 @@ #include "shared/entity/player.hh" #include "shared/entity/transform.hh" #include "shared/entity/velocity.hh" + #include "shared/world/dimension.hh" #include "shared/globals.hh" diff --git a/game/shared/entity/gravity.cc b/game/shared/entity/gravity.cc index f5dd145..f1708aa 100644 --- a/game/shared/entity/gravity.cc +++ b/game/shared/entity/gravity.cc @@ -4,6 +4,7 @@ #include "shared/entity/stasis.hh" #include "shared/entity/velocity.hh" + #include "shared/world/dimension.hh" #include "shared/globals.hh" diff --git a/game/shared/entity/stasis.cc b/game/shared/entity/stasis.cc index 68d8e9d..3b86294 100644 --- a/game/shared/entity/stasis.cc +++ b/game/shared/entity/stasis.cc @@ -3,6 +3,7 @@ #include "shared/entity/stasis.hh" #include "shared/entity/transform.hh" + #include "shared/world/dimension.hh" void entity::Stasis::fixed_update(world::Dimension* dimension) diff --git a/game/shared/entity/velocity.cc b/game/shared/entity/velocity.cc index 9e40688..86df445 100644 --- a/game/shared/entity/velocity.cc +++ b/game/shared/entity/velocity.cc @@ -4,6 +4,7 @@ #include "shared/entity/stasis.hh" #include "shared/entity/transform.hh" + #include "shared/world/dimension.hh" #include "shared/globals.hh" diff --git a/game/shared/protocol.cc b/game/shared/protocol.cc index 34b7034..6c18658 100644 --- a/game/shared/protocol.cc +++ b/game/shared/protocol.cc @@ -8,6 +8,7 @@ #include "shared/entity/player.hh" #include "shared/entity/transform.hh" #include "shared/entity/velocity.hh" + #include "shared/world/chunk.hh" #include "shared/world/dimension.hh" diff --git a/game/shared/world/chunk.hh b/game/shared/world/chunk.hh index 5eacf44..4f70453 100644 --- a/game/shared/world/chunk.hh +++ b/game/shared/world/chunk.hh @@ -2,9 +2,10 @@ #define SHARED_CHUNK_HH 1 #pragma once -#include "shared/types.hh" #include "shared/world/voxel_storage.hh" +#include "shared/types.hh" + constexpr static unsigned int BIOME_VOID = 0U; namespace world -- cgit