Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckInviteFriend ¶
type CreateGroup ¶
type CreateGroup struct {
PlayerInfo
}
type EnterGroup ¶
type EnterGroup struct { PlayerInfo Source EnterGroupSourceType }
type EnterGroupSourceType ¶
type EnterGroupSourceType int
EnterGroupSourceType is the source type of entering a group.
const ( EnterGroupSourceTypeInvite = 0 // invited by other EnterGroupSourceTypeNearby EnterGroupSourceType = 1 // from recent list EnterGroupSourceTypeRecent EnterGroupSourceType = 2 // from nearby list EnterGroupSourceTypeFriend EnterGroupSourceType = 3 // from friend list EnterGroupSourceTypeWorldChannel EnterGroupSourceType = 4 // from world channel EnterGroupSourceTypeClanChannel EnterGroupSourceType = 5 // from clan channel )
type Glicko2Info ¶
type HandleInvite ¶
type HandleInvite struct { InviteUid string // 谁邀请你的 HandleType int SrcType EnterGroupSourceType Player *PlayerInfo // 当前玩家 Message string Platform int }
type PlayerInfo ¶
type PlayerInfo struct { UID string `json:"uid" binding:"required"` GameMode constant.GameMode `json:"game_mode" binding:"required"` ModeVersion int64 `json:"mode_version" binding:"required"` MatchStrategy constant.MatchStrategy `json:"match_strategy" binding:"required"` Glicko2Info *Glicko2Info `json:"glicko2_info"` }
PlayerInfo defines the common information of a player. It is always used to initial a player.
type UploadAttr ¶
type UserVoiceState ¶
Click to show internal directories.
Click to hide internal directories.