This commit is contained in:
azw 2023-08-16 21:56:57 +08:00
parent d8e8140172
commit ee97e3ef6b

View File

@ -22,6 +22,13 @@ type MsgHdr struct {
Entry q5.ListHead
}
type NetMsgHandler[T any] struct {
MsgId int
HandlerId int
ParseCb func([]byte) interface{}
Cb func(*MsgHdr, T)
}
type NetMsg interface {
GetNetMsgId() uint16
}