LastMUD/internal/game/data/room.go

18 lines
328 B
Go

package data
import "code.haedhutner.dev/mvv/LastMUD/internal/ecs"
type IsRoomComponent struct {
}
func (c IsRoomComponent) Type() ecs.ComponentType {
return TypeIsRoom
}
type NeighborsComponent struct {
North, South, East, West ecs.Entity
}
func (c NeighborsComponent) Type() ecs.ComponentType {
return TypeNeighbors
}