You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
407 B
Go
28 lines
407 B
Go
package systems
|
|
|
|
import (
|
|
"log/slog"
|
|
|
|
"github.com/EngoEngine/ecs"
|
|
|
|
"code.ndumas.com/ndumas/muddy/components"
|
|
)
|
|
|
|
type Exit struct {
|
|
*components.ID
|
|
*components.Observable
|
|
To, From uint64
|
|
}
|
|
|
|
type ExitSystem struct {
|
|
L *slog.Logger
|
|
exits map[uint64]*Exit
|
|
}
|
|
|
|
func (es *ExitSystem) New(w *ecs.World) {}
|
|
|
|
func (es *ExitSystem) Update(dt float32) {
|
|
}
|
|
|
|
func (es *ExitSystem) Remove(e ecs.BasicEntity) {}
|