summaryrefslogtreecommitdiff
path: root/ecs/component.go
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-08-14 12:32:05 +0200
committerewy <ewy0@protonmail.com>2026-08-14 12:32:05 +0200
commit48215d06a6cc0753a839e58c3403d34f69c250d4 (patch)
tree3c391d8edc2e52818072a48c7e36abefeb3b7671 /ecs/component.go
parentbc3f852ea670e206fa3facc736a230f6b9d23920 (diff)
add components in addition to gameobject interfacesHEADmaster
Diffstat (limited to 'ecs/component.go')
-rw-r--r--ecs/component.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/ecs/component.go b/ecs/component.go
new file mode 100644
index 0000000..f42f2e7
--- /dev/null
+++ b/ecs/component.go
@@ -0,0 +1,7 @@
+package ecs
+
+import "ponger/events"
+
+type Component interface {
+ Process(delta events.Delta, object *GameObject)
+}