game

package
v0.0.0-...-d96fec9 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MatchManager

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

func (*MatchManager) GetMatchByID

func (mm *MatchManager) GetMatchByID(id int) *models.Match

func (*MatchManager) GetMatches

func (mm *MatchManager) GetMatches() []*models.Match

func (*MatchManager) IsJoinable

func (mm *MatchManager) IsJoinable(id int) bool

func (*MatchManager) JoinMatch

func (mm *MatchManager) JoinMatch(id int, user *models.User) bool

func (*MatchManager) NewMatch

func (mm *MatchManager) NewMatch() *models.Match

func (*MatchManager) UserJoined

func (mm *MatchManager) UserJoined(id int, user *models.User) bool

Jump to

Keyboard shortcuts

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