diff --git a/tools/pbtools/app.js b/tools/pbtools/app.js index aa76ead8..b65b4517 100644 --- a/tools/pbtools/app.js +++ b/tools/pbtools/app.js @@ -32,8 +32,33 @@ class PBTools { 'keepCase': true } ); - //this.cmMsgId = this.msgIdPb.lookup('CMMessageId_e'); - //this.smMsgId = this.msgIdPb.lookup('SMMessageId_e'); + this.csCmMsgId = this.csMsgIdPb.lookup('CMMessageId_e'); + this.csSmMsgId = this.csMsgIdPb.lookup('SMMessageId_e'); + } + { + this.ssProtoPb = await (new protobuf.Root()).load( + this.protoDir + 'ss_proto.proto', + { + 'keepCase': true + } + ); + } + { + this.ssMsgIdPb = await (new protobuf.Root()).load( + this.protoDir + 'ss_msgid.proto', + { + 'keepCase': true + } + ); + this.ssSSmMsgId = this.ssMsgIdPb.lookup('SSMMessageId_e'); + } + { + this.mtPb = await (new protobuf.Root()).load( + this.protoDir + 'mt.proto', + { + 'keepCase': true + } + ); } }