Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgonesOption ¶
AgonesOption struct define engine option configuration
type MatchMaker ¶
MatchMaker struct hold required data, and act as function receiver
func (*MatchMaker) GetNumberOfPools ¶
func (m *MatchMaker) GetNumberOfPools() int
GetNumberOfPools return number of pools
func (*MatchMaker) GetPool ¶
func (m *MatchMaker) GetPool(poolID uint32) *PoolResp
GetPool return number of pools
func (*MatchMaker) Join ¶
func (m *MatchMaker) Join(playerID uint32) *PoolResp
Join an active or new pool
type PoolResp ¶
type PoolResp struct { PoolID uint32 IsFull bool TimeIsUp bool Players []uint32 Gs *allocation.GameServerAllocation }
PoolResp is the response for joining the pool
type ServerFinder ¶
type ServerFinder struct {
// contains filtered or unexported fields
}
ServerFinder struct hold required data
func NewFinder ¶
func NewFinder(opt AgonesOption) *ServerFinder
NewFinder function return ServerFinder struct
func (*ServerFinder) GetServer ¶
func (s *ServerFinder) GetServer(poolID uint32, ch chan<- *allocation.GameServerAllocation)
GetServer get game server struct
Click to show internal directories.
Click to hide internal directories.