LastMUD/internal/game/ecs/entity.go

20 lines
248 B
Go
Raw Normal View History

2025-06-24 16:37:26 +03:00
package ecs
import "github.com/google/uuid"
type Entity uuid.UUID
type Room struct {
Entity
NameComponent
DescriptionComponent
NeighboringRoomsComponent
}
type Player struct {
Entity
PlayerStateComponent
NameComponent
InRoomComponent
}