aboutsummaryrefslogtreecommitdiff
path: root/resource.go
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-06-06 20:59:12 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-06-06 20:59:12 +0200
commitd9a54f1319cc9dcc2861cecc9edfde14cf039c5b (patch)
tree74df791d6eda0ffe6c09cb32e5ffd76c4849cbac /resource.go
parent18592fd9f520a33ab307e496b995c1a7bf284893 (diff)
Add examples catalog with subcommand dispatch
- Extract game engine from package main to engine/ library package - Create examples/ package with registry, Entry type, and BuilderDeps - Register default world as an example (moved from main()) - Add combat example: two teams of units facing each other - Rewrite main.go as thin dispatch: go run . example [name] - Update README with examples catalog one-liner
Diffstat (limited to 'resource.go')
-rw-r--r--resource.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/resource.go b/resource.go
deleted file mode 100644
index 5fb48ae..0000000
--- a/resource.go
+++ /dev/null
@@ -1,20 +0,0 @@
-package main
-
-import (
- "time"
-
- "age_of_empires/ecs"
-)
-
-type ResourceSource struct {
- Remaining int
-}
-
-type ResourceGatherer struct {
- MaxCapacity int
- CurrentVolume int
- Source ecs.Entity
- LastPickupTime time.Time
-}
-
-type ResourceStorage struct{}