14 lines
147 B
Go
14 lines
147 B
Go
package ecs
|
|
|
|
type PositionComponent struct {
|
|
X, Y int
|
|
}
|
|
|
|
type MySystem1 struct {
|
|
*PositionComponent
|
|
}
|
|
|
|
func (s *MySystem1) Update(w *World) {
|
|
|
|
}
|