diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-10-06 09:21:07 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-10-06 09:21:07 +0200 |
| commit | ad119e88258cf6add42c9570b7a2b7b591fd0b99 (patch) | |
| tree | 3257ed5ef24c19d2f50ea044a3c842b506be5a20 /entity.go | |
| parent | 987aa73f11f4c5fbc7136313c77aaad42e7e9edd (diff) | |
feat(order): Gather resources
Diffstat (limited to 'entity.go')
| -rw-r--r-- | entity.go | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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 { |
