From d9a54f1319cc9dcc2861cecc9edfde14cf039c5b Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Sat, 6 Jun 2026 20:59:12 +0200 Subject: 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 --- resource.go | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 resource.go (limited to 'resource.go') 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{} -- cgit v1.3