cmd_handler

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRoleAdapter

func NewRoleAdapter(roleCmd IRoleCmd) cmd_handler.ICmdHandler

func RegisterCmd

func RegisterCmd()

所有的命令字对应的go需要在这里先注册

Types

type ChangeName

type ChangeName struct{}

func (*ChangeName) ProcessCmd

func (h *ChangeName) ProcessCmd(c cmd_handler.IContext, data []byte, myRole *role.Role) int

type GmAddItem

type GmAddItem struct{}

func (*GmAddItem) ProcessCmd

func (t *GmAddItem) ProcessCmd(c cmd_handler.IContext, data []byte, myRole *role.Role) int

type GmGetRole

type GmGetRole struct{}

func (*GmGetRole) ProcessCmd

func (h *GmGetRole) ProcessCmd(c cmd_handler.IContext, data []byte) int

type GmSetRole

type GmSetRole struct{}

func (*GmSetRole) ProcessCmd

func (t *GmSetRole) ProcessCmd(c cmd_handler.IContext, data []byte, myRole *role.Role) int

type HeartBeat

type HeartBeat struct{}

func (*HeartBeat) ProcessCmd

func (t *HeartBeat) ProcessCmd(c cmd_handler.IContext, data []byte, myRole *role.Role) int

type IRoleCmd

type IRoleCmd interface {
	ProcessCmd(c cmd_handler.IContext, data []byte, myRole *role.Role) int
}

type Login

type Login struct{}

func (*Login) ProcessCmd

func (h *Login) ProcessCmd(c cmd_handler.IContext, data []byte) int

type Logout

type Logout struct{}

func (*Logout) ProcessCmd

func (h *Logout) ProcessCmd(c cmd_handler.IContext, data []byte) int

Jump to

Keyboard shortcuts

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