monorepo fixes

This commit is contained in:
adman
2025-12-15 22:46:34 +01:00
parent 6108534a12
commit c58dbbe5b0
83 changed files with 2273 additions and 2042 deletions
+37
View File
@@ -0,0 +1,37 @@
package proto_generated
import (
"github.com/admin-else/strom/proto_base"
"github.com/admin-else/strom/proto_generated/v1_21_8"
"io"
)
func PacketIdentifierToType(v string, d proto_base.Direction, s proto_base.State, i string) (t any) {
switch v {
case "1.21.8":
t = v1_21_8.PacketIdentifierToType(d, s, i)
default:
}
return
}
func TypeToPacketIdentifier(v string, d proto_base.Direction, s proto_base.State, t any) (i string) {
switch v {
case "1.21.8":
i = v1_21_8.TypeToPacketIdentifier(d, s, t)
}
return
}
func DecodePacket(v string, d proto_base.Direction, s proto_base.State, r io.Reader) (packet any, err error) {
switch v {
case "1.21.8":
packet, err = v1_21_8.DecodePacket(d, s, r)
}
return
}
func EncodePacket(v string, d proto_base.Direction, s proto_base.State, i string, p any, w io.Writer) (err error) {
switch v {
case "1.21.8":
err = v1_21_8.EncodePacket(d, s, i, p, w)
}
return
}