odal

package
v0.5.16 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

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

func (*Module) HandleDisconnect

func (m *Module) HandleDisconnect()

func (*Module) HandleMsg

func (m *Module) HandleMsg(ctx context.Context, respond hwebsocket.ResponseSender, msg hwebsocket.Msg) error

func (*Module) Init

func (m *Module) Init(s *models.Session, p *models.Participant)

func (*Module) Name

func (m *Module) Name() string

type State

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

State represents a state that keeps track of assets instances.

func (*State) AssetInstance

func (s *State) AssetInstance(entityID uint32) (*odalpb.AssetInstance, bool)

func (*State) AssetInstances

func (s *State) AssetInstances() []*odalpb.AssetInstance

func (*State) NewAssetInstanceID

func (s *State) NewAssetInstanceID() uint32

func (*State) RemoveAssetInstance

func (s *State) RemoveAssetInstance(entityID uint32)

func (*State) SetAssetInstance

func (s *State) SetAssetInstance(ai *odalpb.AssetInstance)

Jump to

Keyboard shortcuts

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