Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupMgr ¶
type GroupMgr struct {
*collection.Manager[int64, entry.Group]
// contains filtered or unexported fields
}
func NewGroupMgr ¶
NewGroupMgr creates a group repository, `groupIDStart`: the starting group ID.
func (*GroupMgr) CreateGroup ¶
func (m *GroupMgr) CreateGroup( playerLimit int, mode constant.GameMode, modeVersion int64, strategy constant.MatchStrategy, ) ( entry.Group, error, )
CreateGroup creates a group according to `pto.PlayerInfo`.
func (*GroupMgr) GenGroupID ¶
type PlayerMgr ¶
type PlayerMgr struct {
*collection.Manager[string, entry.Player]
}
func NewPlayerMgr ¶
func NewPlayerMgr() *PlayerMgr
func (*PlayerMgr) CreatePlayer ¶
type TeamMgr ¶
type TeamMgr struct {
*collection.Manager[int64, entry.Team]
}
func NewTeamMgr ¶
NewTeamMgr creates a team repository.
Click to show internal directories.
Click to hide internal directories.