1
This commit is contained in:
parent
d8e8140172
commit
ee97e3ef6b
@ -22,6 +22,13 @@ type MsgHdr struct {
|
|||||||
Entry q5.ListHead
|
Entry q5.ListHead
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type NetMsgHandler[T any] struct {
|
||||||
|
MsgId int
|
||||||
|
HandlerId int
|
||||||
|
ParseCb func([]byte) interface{}
|
||||||
|
Cb func(*MsgHdr, T)
|
||||||
|
}
|
||||||
|
|
||||||
type NetMsg interface {
|
type NetMsg interface {
|
||||||
GetNetMsgId() uint16
|
GetNetMsgId() uint16
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user