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.
30 lines
481 B
Go
30 lines
481 B
Go
package systems
|
|
|
|
import (
|
|
// "fmt"
|
|
|
|
"github.com/EngoEngine/ecs"
|
|
|
|
"code.ndumas.com/ndumas/muddy/components"
|
|
)
|
|
|
|
type Room struct {
|
|
components.ID
|
|
components.Location
|
|
components.Observable
|
|
components.Inventory
|
|
}
|
|
|
|
type RoomRepository interface {
|
|
Get(int64) (Room, error)
|
|
GetAll() ([]Room, error)
|
|
Delete(int64) error
|
|
}
|
|
|
|
type RoomSystem struct {
|
|
repository RoomRepository
|
|
}
|
|
|
|
func (rs *RoomSystem) Update(dt float32) {}
|
|
func (rs *RoomSystem) Remove(e ecs.BasicEntity) {}
|