GpGame

package
v0.0.0-...-d28e09f Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActiveRoom

func ActiveRoom(msg GpPacket.IM_rec)

func BuildServerRoom

func BuildServerRoom(size uint)

func Clearroom

func Clearroom(pGroom *GameTopRoom)

func GameTopRoom_tick

func GameTopRoom_tick()

func GetRoomList

func GetRoomList() string

func LeaveRoomBySocketId

func LeaveRoomBySocketId(SocketId uint32)

Types

type BeginGameRoom

type BeginGameRoom struct {
	Id        uint32 `json:"Id"`
	SocketIdA uint32 `json:"SocketIdA"`
	SocketIdB uint32 `json:"SocketIdB"`
}

type GameTopRoom

type GameTopRoom struct {
	Id          uint32    `json:"Id"`
	Wordlist    [5]string `json:"Wordlist"`
	SocketIdA   uint32    `json:"SocketIdA"`
	SocketIdB   uint32    `json:"SocketIdB"`
	PlayAavatar string    `json:"PlayAavatar"`
	PlayBavatar string    `json:"PlayBavatar"`
	ScorceA     uint32    `json:"ScorceA"`
	ScorceB     uint32    `json:"ScorceB"`
	TimeOut     uint32    `json:"TimeOut"`
	Runplay     bool
	Count       uint32
}

func GetRoomById

func GetRoomById(id uint32, mysock uint32) *GameTopRoom

func JoinCreatRoomById

func JoinCreatRoomById(id uint32, mysock uint32) *GameTopRoom

Jump to

Keyboard shortcuts

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