LastMUD/internal/game/ecs/components.go

32 lines
456 B
Go
Raw Normal View History

2025-06-24 16:37:26 +03:00
package ecs
type PlayerState = byte
const (
PlayerStateJoining PlayerState = iota
PlayerStateLoggingIn
PlayerStateRegistering
PlayerStatePlaying
PlayerStateLeaving
)
type PlayerStateComponent struct {
State PlayerState
}
type NameComponent struct {
Name string
}
type DescriptionComponent struct {
Description string
}
type InRoomComponent struct {
InRoom Entity
}
type NeighboringRoomsComponent struct {
North, South, East, West Entity
}