2025-06-26 23:48:54 +03:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2025-06-26 23:48:54 +03:00
|
|
|
type ContentsComponent struct {
|
|
|
|
Contents []byte
|
|
|
|
}
|
|
|
|
|
|
|
|
func (cc ContentsComponent) Type() ecs.ComponentType {
|
|
|
|
return TypeContents
|
|
|
|
}
|
|
|
|
|
2025-06-27 21:36:15 +03:00
|
|
|
type CloseConnectionComponent struct{}
|
|
|
|
|
|
|
|
func (cc CloseConnectionComponent) Type() ecs.ComponentType {
|
|
|
|
return TypeCloseConnection
|
|
|
|
}
|