update protocol packet definitions: replace value receivers with pointer receivers in PacketID methods, expand FixedBitSet size from 8 to 256 bits, and remove outdated documentation files

This commit is contained in:
2025-08-23 17:27:23 +08:00
parent eb01f5ccc7
commit 8b3d6c8bd5
122 changed files with 586 additions and 681 deletions

View File

@ -84,6 +84,7 @@ func (m EntityMetadata) WriteTo(w io.Writer) (int64, error) {
}
func (m *EntityMetadata) ReadFrom(r io.Reader) (int64, error) {
m.Data = make(map[uint8]Metadata)
var index uint8
n, err := (*pk.UnsignedByte)(&index).ReadFrom(r)
if err != nil {