packets upgrade

This commit is contained in:
adman
2025-12-28 17:58:47 +01:00
parent 3ddf830d31
commit 0b493d43f3
9 changed files with 174 additions and 1798 deletions
+10
View File
@@ -4,6 +4,7 @@ import (
"encoding/binary"
"errors"
"io"
"reflect"
)
type Direction int
@@ -210,3 +211,12 @@ type EncodeDecodeAble interface {
Encode(w io.Writer) (err error)
Decode(r io.Reader) (err error)
}
type PacketInfo struct {
Type reflect.Type
Name string
Direction Direction
State State
PacketId int
ProtocolVersion int
}