internal

package
v0.0.0-...-9572309 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActorFromProto

func ActorFromProto(actor *packets.Actor) *goinworld.Actor

func GetAudioEvent

func GetAudioEvent(event *packets.DataChunk) *goinworld.AudioEvent

func GetCharacterFromProto

func GetCharacterFromProto(response *engine.LoadSceneResponse_Agent) *session.Character

func GetControlEvent

func GetControlEvent(event *packets.ControlEvent) *goinworld.ControlEvent

func GetEmotionEvent

func GetEmotionEvent(event *packets.EmotionEvent) *goinworld.EmotionEvent

func GetMessageFromProto

func GetMessageFromProto(packet *packets.InworldPacket) *goinworld.InworldPacket

func GetSceneFromProto

func GetSceneFromProto(response *engine.LoadSceneResponse) *session.Scene

func GetSilenceEvent

func GetSilenceEvent(event *packets.DataChunk) *goinworld.SilenceEvent

func GetTextEvent

func GetTextEvent(event *packets.TextEvent) *goinworld.TextEvent

func GetTokenFromProto

func GetTokenFromProto(proto *studioTokens.SessionAccessToken) *session.Token

func GetTriggerEvent

func GetTriggerEvent(event *packets.CustomEvent) *goinworld.TriggerEvent

func GetTypeFromProto

func GetTypeFromProto(packet *packets.InworldPacket) goinworld.InworldPacketType

func PacketIdFromProto

func PacketIdFromProto(id *packets.PacketId) *goinworld.PacketId

func RoutingFromProto

func RoutingFromProto(route *packets.Routing) *goinworld.Routing

Types

type Queue

type Queue[T any] struct {
	// contains filtered or unexported fields
}

Queue is fifo

func NewQueue

func NewQueue[T any]() *Queue[T]

func (*Queue[T]) Append

func (q *Queue[T]) Append(data T)

func (*Queue[T]) Clear

func (q *Queue[T]) Clear()

func (*Queue[T]) Pop

func (q *Queue[T]) Pop() T

func (*Queue[T]) Size

func (q *Queue[T]) Size() int

Size returns an int rather than an uint for convenience

func (*Queue[T]) String

func (q *Queue[T]) String() string

Directories

Path Synopsis
protoBuf

Jump to

Keyboard shortcuts

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