aboutsummaryrefslogtreecommitdiff
path: root/entity.go
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2023-10-06 09:21:07 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2023-10-06 09:21:07 +0200
commitad119e88258cf6add42c9570b7a2b7b591fd0b99 (patch)
tree3257ed5ef24c19d2f50ea044a3c842b506be5a20 /entity.go
parent987aa73f11f4c5fbc7136313c77aaad42e7e9edd (diff)
feat(order): Gather resources
Diffstat (limited to 'entity.go')
-rw-r--r--entity.go13
1 files changed, 8 insertions, 5 deletions
diff --git a/entity.go b/entity.go
index d19c304..838bd71 100644
--- a/entity.go
+++ b/entity.go
@@ -12,11 +12,14 @@ func C[T any](t T) Component[T] {
}
type Entity struct {
- Position Component[Point]
- Image Component[*ebiten.Image]
- Selection Component[Selection]
- Move Component[Move]
- Order Component[Order]
+ Position Component[Point]
+ Image Component[*ebiten.Image]
+ Selection Component[Selection]
+ Move Component[Move]
+ Order Component[Order]
+ ResourceGatherer Component[ResourceGatherer]
+ ResourceSource Component[ResourceSource]
+ ResourceStorage Component[ResourceStorage]
}
func (e Entity) Bounds() Rectangle {