19 lines
339 B
Go
19 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
|
||
|
}
|