Documentation ¶
Overview ¶
Package compat provide function to workaround autogenerated binding libraries.
umid.UMID type, which is aliased uuid.UUD, which in turn is alias for [16]byte. Replace with direct/primative byte slice as input.
bytes encode/decode functions, workaround for serveral issues: posbus.Message is interface, after which reflection needs to be used to determine actual message type. And there is a nested map to any/interface{}, which needs to be handled. If external application wants to use their own eventloop (and websocket), instead of the callback mechanism.
Index ¶
- func Encode(msg posbus.Message) ([]byte, error)
- func NewHandshake(token string, userID []byte, sessionID []byte) posbus.HandShake
- func NewHighFive(from []byte, to []byte, msg string) posbus.HighFive
- func NewObjectTransform(id []byte, position cmath.Vec3, rotation cmath.Vec3, scale cmath.Vec3) posbus.ObjectTransform
- func NewTeleportRequest(uuid []byte) posbus.TeleportRequest
- type DecodeResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandshake ¶
func NewObjectTransform ¶
func NewTeleportRequest ¶
func NewTeleportRequest(uuid []byte) posbus.TeleportRequest
Types ¶
type DecodeResult ¶
func Decode ¶
func Decode(b []byte) (*DecodeResult, error)
Click to show internal directories.
Click to hide internal directories.