riface

package
v0.0.0-...-8a99b67 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IHandler

type IHandler func(uid string, request ziface.IRequest) (proto.Message, room.RoomErrorCode)

type IMessage

type IMessage interface {
	GetMsgId() uint32 // Gets the ID of the message(获取消息ID)
	GetMsgData() []byte
}

type IRoom

type IRoom interface {
	Init(playId int32) error
	Run() error
	RoomId() string
	Receive(uid string, message ziface.IRequest)
	Exit(uid string)
}

type RoomCreator

type RoomCreator func() (IRoom, error)

Jump to

Keyboard shortcuts

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