Documentation ¶
Index ¶
- Variables
- type Player
- type Room
- func (r *Room) AggregationChan() chan tuple.T2[*gamesvc.Message, *Player]
- func (r *Room) AnnounceChange() error
- func (r *Room) Cancel()
- func (r *Room) Ctx() context.Context
- func (r *Room) Do(fn func(r *Room))
- func (r *Room) FindTeamWithPlayer(playerID string) (*Team, bool)
- func (r *Room) GetAllPlayers() []*Player
- func (r *Room) GetProto() *gamesvc.Room
- func (r *Room) HasPlayer(playerID string) bool
- func (r *Room) IsEmpty() bool
- func (r *Room) RemovePlayer(playerID string) bool
- func (r *Room) Start()
- type Team
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrStartNoTeams = errors.New("cannot start game without a single team") ErrStartIncompleteTeam = errors.New("cannot start game with incomplete team") )
Functions ¶
This section is empty.
Types ¶
type Player ¶
type Player struct { ID string Name string GravatarUrl string Room *Room // contains filtered or unexported fields }
type Room ¶
type Room struct { Id string Name string LeaderId string IsPublic bool Langugage string Password *string Lobby []*Player Teams []*Team // contains filtered or unexported fields }
func (*Room) AggregationChan ¶
func (*Room) AnnounceChange ¶
func (*Room) GetAllPlayers ¶
func (*Room) RemovePlayer ¶
Click to show internal directories.
Click to hide internal directories.