user

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

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

func NewUser

func NewUser(id uuid.UUID, db database.DB) *User

func (*User) AddInfluxTags

func (u *User) AddInfluxTags(prefix string, p *write.Point) *write.Point

func (*User) GetID

func (u *User) GetID() uuid.UUID

func (*User) GetPosBuffer

func (u *User) GetPosBuffer() []byte

func (*User) GetPosition

func (u *User) GetPosition() cmath.Vec3

func (*User) GetProfile

func (u *User) GetProfile() *entry.UserProfile

func (*User) GetRotation

func (u *User) GetRotation() cmath.Vec3

func (*User) GetSessionID

func (u *User) GetSessionID() uuid.UUID

func (*User) GetSpace

func (u *User) GetSpace() universe.Space

func (*User) GetUserType

func (u *User) GetUserType() universe.UserType

func (*User) GetWorld

func (u *User) GetWorld() universe.World

func (*User) HandleHighFive

func (u *User) HandleHighFive(m *posbus.TriggerInteraction) error

func (*User) Initialize

func (u *User) Initialize(ctx context.Context) error

func (*User) InteractionHandler

func (u *User) InteractionHandler(m *posbus.TriggerInteraction) error

func (*User) Load

func (u *User) Load() error

func (*User) LoadFromEntry

func (u *User) LoadFromEntry(entry *entry.User) error

func (*User) LockObject

func (u *User) LockObject(msg *posbus.SetObjectLockState) error

func (*User) OnMessage

func (u *User) OnMessage(msg *posbus.Message) error

func (*User) RelayToControllerHandler

func (u *User) RelayToControllerHandler(m *posbus.RelayToController) error

func (*User) ReleaseSendBuffer

func (u *User) ReleaseSendBuffer()

func (*User) Run

func (u *User) Run() error

func (*User) Send

func (u *User) Send(m *websocket.PreparedMessage) error

func (*User) SendDirectly

func (u *User) SendDirectly(message *websocket.PreparedMessage) error

func (*User) SendHighFiveStats

func (u *User) SendHighFiveStats(target universe.User) error

func (*User) SetConnection

func (u *User) SetConnection(id uuid.UUID, socketConnection *websocket.Conn) error

func (*User) SetPosition

func (u *User) SetPosition(p cmath.Vec3)

func (*User) SetSpace

func (u *User) SetSpace(space universe.Space)

func (*User) SetUserType

func (u *User) SetUserType(userType universe.UserType, updateDB bool) error

func (*User) SetWorld

func (u *User) SetWorld(world universe.World)

func (*User) SignalsHandler

func (u *User) SignalsHandler(s posbus.Signal) error

func (*User) StartIOPumps

func (u *User) StartIOPumps()

func (*User) Stop

func (u *User) Stop() error

func (*User) Teleport

func (u *User) Teleport(msg *posbus.SwitchWorld) error

func (*User) TeleportToWorld

func (u *User) TeleportToWorld(id uuid.UUID)

func (*User) Update

func (u *User) Update() error

func (*User) UpdatePosition

func (u *User) UpdatePosition(data []byte) error

func (*User) UpdateSpacePosition

func (u *User) UpdateSpacePosition(msg *posbus.SetStaticObjectPosition) error

Jump to

Keyboard shortcuts

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