lux/proto/lux_type.go
2024-12-29 12:56:07 +02:00

17 lines
240 B
Go

package proto
type LuxType uint
const (
LuxTypeHost = 0
LuxTypeNode
)
func (luxType *LuxType) Read(rd *LuxBuffer) error {
if val, err := rd.ReadUint16(); err != nil {
return err
} else {
*luxType = LuxType(val)
return nil
}
}