diff --git a/prototils.go b/prototils.go index 612f38f..7395621 100644 --- a/prototils.go +++ b/prototils.go @@ -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 }