moving to a simpler (hopefully?) ecs system
parent
f47273c2ed
commit
5430213699
@ -0,0 +1,30 @@
|
||||
package muddy
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/EngoEngine/ecs"
|
||||
|
||||
"code.ndumas.com/ndumas/muddy/components"
|
||||
)
|
||||
|
||||
type Room struct {
|
||||
components.ID
|
||||
components.Location
|
||||
components.Observable
|
||||
components.Inventory
|
||||
}
|
||||
|
||||
type RoomSystem struct {
|
||||
repository RoomRepository
|
||||
}
|
||||
|
||||
func (s *RoomSystem) Initialize(w *ecs.World) {
|
||||
fmt.Println("initializing room system")
|
||||
// locationMapper := ecs.NewMap4[ID, Location, Observable, Inventory](w)
|
||||
}
|
||||
|
||||
func (s *RoomSystem) Update(w *ecs.World) {}
|
||||
|
||||
// Finalize the system.
|
||||
func (s *RoomSystem) Finalize(w *ecs.World) {}
|
||||
Loading…
Reference in New Issue