aboutsummaryrefslogtreecommitdiff
path: root/entity.go
diff options
context:
space:
mode:
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 {