LastMUD/internal/game/data/output.go

26 lines
449 B
Go
Raw Normal View History

package data
import (
"code.haedhutner.dev/mvv/LastMUD/internal/ecs"
)
2025-06-29 18:21:22 +03:00
type IsOutputComponent struct{}
func (io IsOutputComponent) Type() ecs.ComponentType {
return TypeIsOutput
}
type ContentsComponent struct {
Contents []byte
}
func (cc ContentsComponent) Type() ecs.ComponentType {
return TypeContents
}
type CloseConnectionComponent struct{}
func (cc CloseConnectionComponent) Type() ecs.ComponentType {
return TypeCloseConnection
}