LastMUD/internal/game/components/room.go
Miroslav Vasilev b2212a279c ECS refactor
2025-06-25 20:14:07 +03:00

18 lines
339 B
Go

package components
import "code.haedhutner.dev/mvv/LastMUD/internal/game/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
}