factory

package
v0.0.0-...-3e4fb85 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Room

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

func NewRoom

func NewRoom(req *gamesvc.CreateRoomRequest) *Room

func (*Room) Build

func (r *Room) Build() *gamesvc.Message

func (*Room) Clone

func (r *Room) Clone() *Room

func (*Room) WithLeader

func (r *Room) WithLeader(leaderID string) *Room

func (*Room) WithLobby

func (r *Room) WithLobby(players ...*gamesvc.Player) *Room

func (*Room) WithTeams

func (r *Room) WithTeams(teams ...*gamesvc.Team) *Room

type UpdateRoomOption

type UpdateRoomOption func(*gamesvc.UpdateRoom)

Jump to

Keyboard shortcuts

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