summaryrefslogtreecommitdiffstats
path: root/src/game/shared/entity
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/shared/entity')
-rw-r--r--src/game/shared/entity/collision.cc5
-rw-r--r--src/game/shared/entity/collision.hh9
-rw-r--r--src/game/shared/entity/factory.cc5
-rw-r--r--src/game/shared/entity/factory.hh9
-rw-r--r--src/game/shared/entity/gravity.cc5
-rw-r--r--src/game/shared/entity/gravity.hh9
-rw-r--r--src/game/shared/entity/grounded.hh9
-rw-r--r--src/game/shared/entity/head.hh9
-rw-r--r--src/game/shared/entity/player.hh9
-rw-r--r--src/game/shared/entity/stasis.cc5
-rw-r--r--src/game/shared/entity/stasis.hh9
-rw-r--r--src/game/shared/entity/transform.cc5
-rw-r--r--src/game/shared/entity/transform.hh9
-rw-r--r--src/game/shared/entity/velocity.cc5
-rw-r--r--src/game/shared/entity/velocity.hh9
15 files changed, 111 insertions, 0 deletions
diff --git a/src/game/shared/entity/collision.cc b/src/game/shared/entity/collision.cc
index 322bb91..6878958 100644
--- a/src/game/shared/entity/collision.cc
+++ b/src/game/shared/entity/collision.cc
@@ -1,3 +1,8 @@
+// SPDX-License-Identifier: BSD-2-Clause
+// Copyright (c) 2025 Kirill Dmitrievich
+// File: collision.cc
+// Description: Collision detection
+
#include "shared/pch.hh"
#include "shared/entity/collision.hh"
diff --git a/src/game/shared/entity/collision.hh b/src/game/shared/entity/collision.hh
index 34a648c..89d9756 100644
--- a/src/game/shared/entity/collision.hh
+++ b/src/game/shared/entity/collision.hh
@@ -1,3 +1,10 @@
+// SPDX-License-Identifier: BSD-2-Clause
+// Copyright (c) 2025 Kirill Dmitrievich
+// File: collision.hh
+// Description: Collision detection
+
+#ifndef SHARED_ENTITY_COLLISION_HH
+#define SHARED_ENTITY_COLLISION_HH
#pragma once
#include "core/math/aabb.hh"
@@ -13,3 +20,5 @@ public:
// because both transform and velocity may be updated internally
static void fixed_update(Dimension* dimension);
};
+
+#endif
diff --git a/src/game/shared/entity/factory.cc b/src/game/shared/entity/factory.cc
index f2031df..223e593 100644
--- a/src/game/shared/entity/factory.cc
+++ b/src/game/shared/entity/factory.cc
@@ -1,3 +1,8 @@
+// SPDX-License-Identifier: BSD-2-Clause
+// Copyright (c) 2025 Kirill Dmitrievich
+// File: factory.cc
+// Description: Boilerplate entity creation
+
#include "shared/pch.hh"
#include "shared/entity/factory.hh"
diff --git a/src/game/shared/entity/factory.hh b/src/game/shared/entity/factory.hh
index 7c94136..158b187 100644
--- a/src/game/shared/entity/factory.hh
+++ b/src/game/shared/entity/factory.hh
@@ -1,3 +1,10 @@
+// SPDX-License-Identifier: BSD-2-Clause
+// Copyright (c) 2025 Kirill Dmitrievich
+// File: factory.hh
+// Description: Boilerplate entity creation
+
+#ifndef SHARED_ENTITY_FACTORY_HH
+#define SHARED_ENTITY_FACTORY_HH
#pragma once
class Dimension;
@@ -6,3 +13,5 @@ namespace shared
{
void create_player(Dimension* dimension, entt::entity entity);
} // namespace shared
+
+#endif
diff --git a/src/game/shared/entity/gravity.cc b/src/game/shared/entity/gravity.cc
index 6a5145f..893e819 100644
--- a/src/game/shared/entity/gravity.cc
+++ b/src/game/shared/entity/gravity.cc
@@ -1,3 +1,8 @@
+// SPDX-License-Identifier: BSD-2-Clause
+// Copyright (c) 2025 Kirill Dmitrievich
+// File: gravity.cc
+// Description: Gravity component
+
#include "shared/pch.hh"
#include "shared/entity/gravity.hh"
diff --git a/src/game/shared/entity/gravity.hh b/src/game/shared/entity/gravity.hh
index 38b3c9b..c6ad701 100644
--- a/src/game/shared/entity/gravity.hh
+++ b/src/game/shared/entity/gravity.hh
@@ -1,3 +1,10 @@
+// SPDX-License-Identifier: BSD-2-Clause
+// Copyright (c) 2025 Kirill Dmitrievich
+// File: gravity.hh
+// Description: Gravity component
+
+#ifndef SHARED_ENTITY_GRAVITY_HH
+#define SHARED_ENTITY_GRAVITY_HH
#pragma once
class Dimension;
@@ -6,3 +13,5 @@ struct Gravity final {
public:
static void fixed_update(Dimension* dimension);
};
+
+#endif
diff --git a/src/game/shared/entity/grounded.hh b/src/game/shared/entity/grounded.hh
index 7307e79..38367ec 100644
--- a/src/game/shared/entity/grounded.hh
+++ b/src/game/shared/entity/grounded.hh
@@ -1,3 +1,10 @@
+// SPDX-License-Identifier: BSD-2-Clause
+// Copyright (c) 2025 Kirill Dmitrievich
+// File: grounded.hh
+// Description: Flag components for entites that rest on the ground
+
+#ifndef SHARED_ENTITY_GROUNDED_HH
+#define SHARED_ENTITY_GROUNDED_HH
#pragma once
#include "shared/world/voxel.hh"
@@ -7,3 +14,5 @@
struct Grounded final {
VoxelMaterial surface;
};
+
+#endif
diff --git a/src/game/shared/entity/head.hh b/src/game/shared/entity/head.hh
index 9fa71d9..cec3be4 100644
--- a/src/game/shared/entity/head.hh
+++ b/src/game/shared/entity/head.hh
@@ -1,3 +1,10 @@
+// SPDX-License-Identifier: BSD-2-Clause
+// Copyright (c) 2025 Kirill Dmitrievich
+// File: head.hh
+// Description: Head component
+
+#ifndef SHARED_ENTITY_HEAD_HH
+#define SHARED_ENTITY_HEAD_HH
#pragma once
struct Head {
@@ -11,3 +18,5 @@ namespace client
struct HeadIntr final : public Head {};
struct HeadPrev final : public Head {};
} // namespace client
+
+#endif
diff --git a/src/game/shared/entity/player.hh b/src/game/shared/entity/player.hh
index d7cd020..8edba5e 100644
--- a/src/game/shared/entity/player.hh
+++ b/src/game/shared/entity/player.hh
@@ -1,3 +1,12 @@
+// SPDX-License-Identifier: BSD-2-Clause
+// Copyright (c) 2025 Kirill Dmitrievich
+// File: player.hh
+// Description: Flag components for entites that are players
+
+#ifndef SHARED_ENTITY_PLAYER_HH
+#define SHARED_ENTITY_PLAYER_HH
#pragma once
struct Player final {};
+
+#endif
diff --git a/src/game/shared/entity/stasis.cc b/src/game/shared/entity/stasis.cc
index 0b8a0c8..72f7592 100644
--- a/src/game/shared/entity/stasis.cc
+++ b/src/game/shared/entity/stasis.cc
@@ -1,3 +1,8 @@
+// SPDX-License-Identifier: BSD-2-Clause
+// Copyright (c) 2025 Kirill Dmitrievich
+// File: stasis.cc
+// Description: Freeze entites that are in an unloaded chunk
+
#include "shared/pch.hh"
#include "shared/entity/stasis.hh"
diff --git a/src/game/shared/entity/stasis.hh b/src/game/shared/entity/stasis.hh
index 5adc592..dfb97b3 100644
--- a/src/game/shared/entity/stasis.hh
+++ b/src/game/shared/entity/stasis.hh
@@ -1,3 +1,10 @@
+// SPDX-License-Identifier: BSD-2-Clause
+// Copyright (c) 2025 Kirill Dmitrievich
+// File: stasis.hh
+// Description: Freeze entites that are in an unloaded chunk
+
+#ifndef SHARED_ENTITY_STASIS_HH
+#define SHARED_ENTITY_STASIS_HH
#pragma once
class Dimension;
@@ -8,3 +15,5 @@ struct Stasis final {
public:
static void fixed_update(Dimension* dimension);
};
+
+#endif
diff --git a/src/game/shared/entity/transform.cc b/src/game/shared/entity/transform.cc
index cf09e2f..2ceee0d 100644
--- a/src/game/shared/entity/transform.cc
+++ b/src/game/shared/entity/transform.cc
@@ -1,3 +1,8 @@
+// SPDX-License-Identifier: BSD-2-Clause
+// Copyright (c) 2025 Kirill Dmitrievich
+// File: transform.cc
+// Description: Transform component
+
#include "shared/pch.hh"
#include "shared/entity/transform.hh"
diff --git a/src/game/shared/entity/transform.hh b/src/game/shared/entity/transform.hh
index afbe9fa..55a00ac 100644
--- a/src/game/shared/entity/transform.hh
+++ b/src/game/shared/entity/transform.hh
@@ -1,3 +1,10 @@
+// SPDX-License-Identifier: BSD-2-Clause
+// Copyright (c) 2025 Kirill Dmitrievich
+// File: transform.hh
+// Description: Transform component
+
+#ifndef SHARED_ENTITY_TRANSFORM_HH
+#define SHARED_ENTITY_TRANSFORM_HH
#pragma once
#include "shared/types.hh"
@@ -22,3 +29,5 @@ namespace client
struct TransformIntr final : public Transform {};
struct TransformPrev final : public Transform {};
} // namespace client
+
+#endif
diff --git a/src/game/shared/entity/velocity.cc b/src/game/shared/entity/velocity.cc
index 6fb8c80..c08b749 100644
--- a/src/game/shared/entity/velocity.cc
+++ b/src/game/shared/entity/velocity.cc
@@ -1,3 +1,8 @@
+// SPDX-License-Identifier: BSD-2-Clause
+// Copyright (c) 2025 Kirill Dmitrievich
+// File: velocity.cc
+// Description: Velocity component
+
#include "shared/pch.hh"
#include "shared/entity/velocity.hh"
diff --git a/src/game/shared/entity/velocity.hh b/src/game/shared/entity/velocity.hh
index 0266bd0..8dccf09 100644
--- a/src/game/shared/entity/velocity.hh
+++ b/src/game/shared/entity/velocity.hh
@@ -1,3 +1,10 @@
+// SPDX-License-Identifier: BSD-2-Clause
+// Copyright (c) 2025 Kirill Dmitrievich
+// File: velocity.hh
+// Description: Velocity component
+
+#ifndef SHARED_ENTITY_VELOCITY_HH
+#define SHARED_ENTITY_VELOCITY_HH
#pragma once
class Dimension;
@@ -18,3 +25,5 @@ namespace client
struct VelocityIntr final : public Velocity {};
struct VelocityPrev final : public Velocity {};
} // namespace client
+
+#endif