GpPacket

package
v0.0.0-...-48adc82 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IM_C2S_JOIN = iota
	IM_S2C_JOIN
	IM_C2S_GETROOMLIST
	IM_S2C_SENDROOMLIST
	IM_C2S_JOINCREATROOM
	IM_S2C_JOINCREATROOM
	IM_S2C_BEGINQUEST
	IM_C2S_SENDQUEST
	IM_S2C_SENDQUEST
	IM_C2S_SENDANSWER
	IM_S2C_SENDANSWER
	IM_C2S_LEAVEROOM
	IM_S2C_LEAVEROOM
	IM_C2S2C_HEART
	IM_EVENT_BROADCAST_HEART
	IM_EVENT_BROADCAST_MESSAGE
	IM_EVENT_MESSAGE
)

Variables

This section is empty.

Functions

func NewArchive

func NewArchive(event IM_rec)

NewArchive saves new event to archive list.

Types

type EventType

type EventType int

type IM_rec

type IM_rec struct {
	Type     EventType `json:"Type"`
	SocketId uint32    `json:"SocketId"`
	Msg      string    `json:"Msg"`
	RoomId   uint32    `json:"RoomId"`
}

用户交互协议

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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