room

package
v0.0.0-...-ca29b61 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: MIT Imports: 9 Imported by: ? modules, 0 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 BuildGameData

func BuildGameData(pagenum uint8, data []byte) []byte

func BuildGameStart

func BuildGameStart(id uint32) []byte

func BuildHostRestart

func BuildHostRestart(rm *Room, isHost bool) []byte

func BuildHostRestartTwo

func BuildHostRestartTwo(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, chl *ChannelInfo) []byte

暂定

func BuildSetHost

func BuildSetHost(id uint32, isHost uint8) []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 OnBroadcastRoomList

func OnBroadcastRoomList(chlsrvid uint8, chlid uint8, u *User)

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(client net.Conn, end bool)

func OnNewRoom

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

func OnRoomFeedback

func OnRoomFeedback(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