LastMUD/internal/game/data/event.go

25 lines
541 B
Go
Raw Normal View History

package data
import (
"code.haedhutner.dev/mvv/LastMUD/internal/ecs"
)
type EventType string
const (
EventPlayerConnect EventType = "PlayerConnect"
2025-06-27 14:58:52 +03:00
EventPlayerDisconnect EventType = "PlayerDisconnect"
EventPlayerCommand EventType = "PlayerCommand"
EventParseCommand EventType = "ParseCommand"
EventCommandExecuted EventType = "CommandExecuted"
2025-06-27 14:58:52 +03:00
EventPlayerSpeak EventType = "PlayerSpeak"
)
type EventComponent struct {
EventType EventType
}
func (is EventComponent) Type() ecs.ComponentType {
return TypeEvent
}