2024-01-20 23:56:03 -06:00
|
|
|
// Package player implements data about players outside games.
|
|
|
|
package player
|
|
|
|
|
2024-01-27 13:51:20 -06:00
|
|
|
import "encoding/hex"
|
|
|
|
|
2024-01-20 23:56:03 -06:00
|
|
|
// ID is a unique ID for a player.
|
|
|
|
// May just be IPv6 (or IPv4-in-6) of their connection, or a UUID.
|
|
|
|
type ID [16]byte
|
2024-01-27 13:51:20 -06:00
|
|
|
|
|
|
|
func (id ID) String() string {
|
|
|
|
return hex.EncodeToString(id[:])
|
|
|
|
}
|