From 13626410c4d6db7fdc15ded5ee7865fcdbf0b88a Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Thu, 15 Jan 2026 22:05:38 +0100 Subject: refactor: transition to struct-of-arrays ECS architecture - Replace individual Entity structs with centralized component slices in Game struct (SoA layout). - Implement bitmask-based component lookup (CM_Position, CM_Move, etc.). - Convert logic from object-oriented Update() methods to standalone Systems (UpdateMoveSystem, UpdateGatherSystem, UpdateSpawnSystem). - Update rendering, selection, and input handling to iterate over component arrays. --- ecs/entity.go | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 ecs/entity.go (limited to 'ecs/entity.go') diff --git a/ecs/entity.go b/ecs/entity.go new file mode 100644 index 0000000..636470c --- /dev/null +++ b/ecs/entity.go @@ -0,0 +1,3 @@ +package ecs + +type Entity int -- cgit v1.3