message

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeserializeGUID

func DeserializeGUID(id *api.ID) uuid.UUID

func NewSendPosBuffer

func NewSendPosBuffer(id uuid.UUID) []byte

Types

type AttributeMetadata

type AttributeMetadata struct {
	// contains filtered or unexported fields
}

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func InitBuilder

func InitBuilder(count int, size int) *Builder

func (*Builder) FinishMessage

func (mb *Builder) FinishMessage(
	builder *flatbuffers.Builder, msgType api.Msg, msgOffset flatbuffers.UOffsetT,
) *websocket.PreparedMessage

func (*Builder) FinishMessageBytes added in v0.1.3

func (mb *Builder) FinishMessageBytes(
	builder *flatbuffers.Builder, msgType api.Msg, msgOffset flatbuffers.UOffsetT,
) (msg, buf []byte)

FinishMessageBytes is used when we want to skip gorilla/websocket.PreparedMessage type

func (*Builder) GetBuilder

func (mb *Builder) GetBuilder() *flatbuffers.Builder

func (*Builder) MsgAddStaticObjects

func (mb *Builder) MsgAddStaticObjects(objects []ObjectDefinition) *websocket.PreparedMessage

func (*Builder) MsgObjectDefinition added in v0.1.17

func (mb *Builder) MsgObjectDefinition(obj ObjectDefinition) *websocket.PreparedMessage

func (*Builder) MsgSetWorld

func (mb *Builder) MsgSetWorld(
	worldId uuid.UUID, name string, avatarControllerId, skyboxControllerId uuid.UUID, lodDistances []uint32,
	decorations []DecorationMetadata,
) *websocket.PreparedMessage

func (*Builder) NewPosBusMessageBuffer

func (mb *Builder) NewPosBusMessageBuffer(msgid uint32, len int) []byte

func (*Builder) ReleaseBuilder

func (mb *Builder) ReleaseBuilder(builder *flatbuffers.Builder)

func (*Builder) SerializeGUID

func (mb *Builder) SerializeGUID(builder *flatbuffers.Builder, uuid uuid.UUID) flatbuffers.UOffsetT

func (*Builder) SetObjectAttributes

func (mb *Builder) SetObjectAttributes(id uuid.UUID, attributes map[string]int32) *websocket.PreparedMessage

func (*Builder) SetObjectStrings

func (mb *Builder) SetObjectStrings(id uuid.UUID, strings map[string]string) *websocket.PreparedMessage

func (*Builder) SetObjectTextures

func (mb *Builder) SetObjectTextures(id uuid.UUID, textures map[string]string) *websocket.PreparedMessage

func (*Builder) WrapMessage

func (mb *Builder) WrapMessage(data []byte) *websocket.PreparedMessage

type DecorationMetadata

type DecorationMetadata struct {
	AssetID  uuid.UUID  `json:"AssetID"`
	Position cmath.Vec3 `json:"Position"`
	// contains filtered or unexported fields
}

type ObjectDefinition

type ObjectDefinition struct {
	ObjectID         uuid.UUID
	ParentID         uuid.UUID
	AssetType        uuid.UUID
	Name             string
	Position         cmath.Vec3
	TetheredToParent bool
	Minimap          uint8
	InfoUI           uuid.UUID
}

type SignalType

type SignalType uint8

type TextureMetadata

type TextureMetadata struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL