summaryrefslogtreecommitdiff
path: root/ecs/gameobject.go
blob: a2718c33ccd518517a71b1e9ad98c2825df18a41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
}