2025-06-26 23:48:54 +03:00
|
|
|
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"
|
2025-06-29 18:21:22 +03:00
|
|
|
EventPlayerInput EventType = "PlayerInput"
|
|
|
|
EventSubmitInput EventType = "PlayerCommand"
|
2025-06-27 21:36:15 +03:00
|
|
|
EventParseCommand EventType = "ParseCommand"
|
|
|
|
EventCommandExecuted EventType = "CommandExecuted"
|
2025-06-27 14:58:52 +03:00
|
|
|
EventPlayerSpeak EventType = "PlayerSpeak"
|
2025-06-26 23:48:54 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
type EventComponent struct {
|
|
|
|
EventType EventType
|
|
|
|
}
|
|
|
|
|
|
|
|
func (is EventComponent) Type() ecs.ComponentType {
|
|
|
|
return TypeEvent
|
|
|
|
}
|