room

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2020 License: MIT Imports: 10 Imported by: 2 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildChangTeam

func BuildChangTeam(id uint32, team uint8) []byte

func BuildCloseResultWindow

func BuildCloseResultWindow() []byte

func BuildCountdown

func BuildCountdown(p InRoomCountdownPacket, should bool) []byte

func BuildCreateAndJoin

func BuildCreateAndJoin(rm *Room) []byte

func BuildGameStart

func BuildGameStart(id uint32) []byte

func BuildJoinHost

func BuildJoinHost(id uint32) []byte

func BuildLobbyReply

func BuildLobbyReply(seq *uint8, p PacketData) []byte

func BuildPlayerJoin

func BuildPlayerJoin(u *User) []byte

func BuildRoomList

func BuildRoomList(seq *uint8, p PacketData, chl ChannelInfo) []byte

暂定

func BuildRoomSetting

func BuildRoomSetting(room *Room, flags uint64) []byte

创建房间设置数据包

func BuildSetHost

func BuildSetHost(id uint32) []byte

func BuildUserLeave

func BuildUserLeave(id uint32) []byte

func BuildUserReadyStatus

func BuildUserReadyStatus(u *User) []byte

func CreateRoom

func CreateRoom(pkt InNewRoomPacket, u *User) Room

func GetFlags

func GetFlags(room Room) uint64

func OnChangeTeam

func OnChangeTeam(p *PacketData, client net.Conn)

func OnCloseResultRequest

func OnCloseResultRequest(p *PacketData, client net.Conn)

func OnGameStart

func OnGameStart(p *PacketData, client net.Conn)

func OnGameStartCountdown

func OnGameStartCountdown(p *PacketData, client net.Conn)

func OnJoinRoom

func OnJoinRoom(p *PacketData, client net.Conn)

func OnLeaveRoom

func OnLeaveRoom(p *PacketData, client net.Conn)

func OnNewRoom

func OnNewRoom(p *PacketData, client net.Conn)

func OnRoomList

func OnRoomList(p *PacketData, client net.Conn)

func OnRoomRequest

func OnRoomRequest(p *PacketData, client net.Conn)

func OnToggleReady

func OnToggleReady(p *PacketData, client net.Conn)

func OnUpdateRoom

func OnUpdateRoom(p *PacketData, client net.Conn)

onUpdateRoom 房主更新房间信息

func SentUserLeaveMes

func SentUserLeaveMes(uPtr *User, rm *Room)

Types

This section is empty.

Jump to

Keyboard shortcuts

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