summaryrefslogtreecommitdiff
path: root/ecs/gameobject.go
diff options
context:
space:
mode:
Diffstat (limited to 'ecs/gameobject.go')
-rw-r--r--ecs/gameobject.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/ecs/gameobject.go b/ecs/gameobject.go
new file mode 100644
index 0000000..a2718c3
--- /dev/null
+++ b/ecs/gameobject.go
@@ -0,0 +1,16 @@
+package ecs
+
+import "github.com/Zyko0/go-sdl3/sdl"
+
+type GameObject struct {
+ Position sdl.FPoint
+ Children []IsGameObject
+}
+
+func (g *GameObject) GO() *GameObject {
+ return g
+}
+
+type IsGameObject interface {
+ GO() *GameObject
+}