room

package
v0.0.0-...-9d7a3c8 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 9 Imported by: 0

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 BuildCurrentLobby

func BuildCurrentLobby(seq *uint8, chlsrvid, chlid uint8) []byte

func BuildGameStart

func BuildGameStart(id uint32) []byte

func BuildJoinHost

func BuildJoinHost(id uint32) []byte

func BuildLobbyReply

func BuildLobbyReply(seq *uint8, p PacketData, chlsrvid, chlid uint8) []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