fix
This commit is contained in:
1 parent
d36d9c5fa1
commit
2ac3812987
11 files changed
+139
-6
No files matched your search
@@ -0,0 +1,21 @@
|
||||
import { MessageType, ScalarType } from "@protobuf-ts/runtime";
|
||||
import { OidbSvcTrpcTcpBase } from "./Poke";
|
||||
|
||||
export const OidbSvcTrpcTcp0XFE1_2 = new MessageType("oidb_svc_trpctcp_0xfe1_2", [
|
||||
{ no: 1, name: "uin", kind: "scalar", T: ScalarType.UINT32 },
|
||||
{ no: 3, name: "key", kind: "scalar", T: ScalarType.BYTES, opt: true }
|
||||
]);
|
||||
export function encode_packet_0xfe1_2(PeerUin: string) {
|
||||
let Body = OidbSvcTrpcTcp0XFE1_2.toBinary
|
||||
({
|
||||
uin: parseInt(PeerUin),
|
||||
key: new Uint8Array([0x00, 0x00, 0x00, 0x00])
|
||||
});
|
||||
return OidbSvcTrpcTcpBase.toBinary
|
||||
({
|
||||
command: 0xfe1,
|
||||
subcommand: 2,
|
||||
body: Body,
|
||||
isreserved: 1
|
||||
});
|
||||
}
|
||||
@@ -3,7 +3,8 @@ import { MessageType, ScalarType, BinaryWriter } from '@protobuf-ts/runtime';
|
||||
export const OidbSvcTrpcTcpBase = new MessageType("oidb_svc_trpctcp_base", [
|
||||
{ no: 1, name: "command", kind: "scalar", T: ScalarType.UINT32 },
|
||||
{ no: 2, name: "subcommand", kind: "scalar", T: ScalarType.UINT32, opt: true },
|
||||
{ no: 4, name: "body", kind: "scalar", T: ScalarType.BYTES, opt: true }
|
||||
{ no: 4, name: "body", kind: "scalar", T: ScalarType.BYTES, opt: true },
|
||||
{ no: 12, name: "isreserved", kind: "scalar", T: ScalarType.INT32, opt: true }
|
||||
]);
|
||||
|
||||
export const OidbSvcTrpcTcp0XED3_1 = new MessageType("oidb_svc_trpctcp_0xed3_1", [
|
||||
|
||||
Reference in new issue
Block a user