aboutsummaryrefslogtreecommitdiff
path: root/entity.go
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-07-09 00:27:32 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-07-09 00:27:32 +0200
commit1bae69b2fdbcf35641d5d4a403cfb6261e34297d (patch)
treee7cb590384602e06aeaff75a930055a2f96a8811 /entity.go
parent8216f68ff8516cebc961028f8b8a87c1684dc15a (diff)
Spawn units
Diffstat (limited to 'entity.go')
-rw-r--r--entity.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/entity.go b/entity.go
index b784c04..185efdb 100644
--- a/entity.go
+++ b/entity.go
@@ -16,6 +16,7 @@ type Entity struct {
ResourceGatherer ecs.Component[ResourceGatherer]
ResourceSource ecs.Component[ResourceSource]
ResourceStorage ecs.Component[ResourceStorage]
+ Spawn ecs.Component[Spawn]
}
func (e Entity) Bounds() physics.Rectangle {