player

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPlayersFull = errors.New("players full")
)

Functions

This section is empty.

Types

type Players

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

func NewPlayers

func NewPlayers(max int32) *Players

func (*Players) AddPlayer

func (p *Players) AddPlayer(player *roompb.Player) error

func (*Players) GetAllPlayers

func (p *Players) GetAllPlayers() []*roompb.Player

func (*Players) RemovePlayer

func (p *Players) RemovePlayer(uid string) bool

Jump to

Keyboard shortcuts

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