later check
This commit is contained in:
parent
acc3bfc3b6
commit
149b416283
1246
PacketOpcodes.java
1246
PacketOpcodes.java
File diff suppressed because it is too large
Load Diff
644
cmdid.json
644
cmdid.json
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
1499
cmdid_gc_update.json
1499
cmdid_gc_update.json
File diff suppressed because it is too large
Load Diff
19378
deobf.proto
19378
deobf.proto
File diff suppressed because it is too large
Load Diff
|
@ -47,8 +47,9 @@ function splitProtoFile(protoFilePath, nameTranslationPath = null, version = "0.
|
||||||
for (let i = 0; i < lines.length; i++) {
|
for (let i = 0; i < lines.length; i++) {
|
||||||
const line = lines[i].trim();
|
const line = lines[i].trim();
|
||||||
|
|
||||||
if (line.startsWith('// CmdID: ')) {
|
if (line.startsWith('// CmdId: ')) {
|
||||||
cmdid = line;
|
cmdid = line;
|
||||||
|
// console.log(line)
|
||||||
} else if (line.startsWith("message") || line.startsWith("enum")) {
|
} else if (line.startsWith("message") || line.startsWith("enum")) {
|
||||||
currentName = line.split(' ')[1];
|
currentName = line.split(' ')[1];
|
||||||
currentContent.push(lines[i]);
|
currentContent.push(lines[i]);
|
||||||
|
@ -62,7 +63,7 @@ function splitProtoFile(protoFilePath, nameTranslationPath = null, version = "0.
|
||||||
if (cmdid) {
|
if (cmdid) {
|
||||||
var d = new Object();
|
var d = new Object();
|
||||||
d["name"] = currentName;
|
d["name"] = currentName;
|
||||||
d["id"] = parseInt(cmdid.replace(`// CmdID: `, ""));
|
d["id"] = parseInt(cmdid.replace(`// CmdId: `, ""));
|
||||||
cmdid_gen.push(d)
|
cmdid_gen.push(d)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -88,6 +89,7 @@ function saveContent(name, content, ntMap = {}, cmdid = "", version = "") {
|
||||||
const filename = `${name}.proto`;
|
const filename = `${name}.proto`;
|
||||||
const nestedMessages = findNestedMessages(content);
|
const nestedMessages = findNestedMessages(content);
|
||||||
|
|
||||||
|
/*
|
||||||
var isEnum = false
|
var isEnum = false
|
||||||
for (let i = 0; i < content.length; i++) {
|
for (let i = 0; i < content.length; i++) {
|
||||||
let line = content[i];
|
let line = content[i];
|
||||||
|
@ -98,6 +100,7 @@ function saveContent(name, content, ntMap = {}, cmdid = "", version = "") {
|
||||||
isEnum = true;
|
isEnum = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
let contentStr = content.join('\n');
|
let contentStr = content.join('\n');
|
||||||
for (const [key, value] of Object.entries(ntMap)) {
|
for (const [key, value] of Object.entries(ntMap)) {
|
||||||
|
|
38
skip2.txt
38
skip2.txt
|
@ -13,3 +13,41 @@ SceneGadgetInfo
|
||||||
GadgetPlayInfo
|
GadgetPlayInfo
|
||||||
AbilityMixinRecoverInfo
|
AbilityMixinRecoverInfo
|
||||||
AbilityScalarValueEntry
|
AbilityScalarValueEntry
|
||||||
|
ActivityInfo
|
||||||
|
PropValue
|
||||||
|
WorldPlayerDieNotify
|
||||||
|
AbilityInvokeArgument
|
||||||
|
WidgetDoBagReq
|
||||||
|
VehicleInteractRsp
|
||||||
|
SceneEntityAiInfo
|
||||||
|
MainCoop
|
||||||
|
ChatInfo
|
||||||
|
DungeonChallengeFinishNotify
|
||||||
|
DungeonPlayerDieNotify
|
||||||
|
DungeonSettleNotify
|
||||||
|
DetailInfo
|
||||||
|
ParentQuest
|
||||||
|
ShowEquip
|
||||||
|
SocialDetail
|
||||||
|
ShopCardProduct
|
||||||
|
HomeMarkPointFurnitureData
|
||||||
|
OtherPlayerEnterHomeNotify
|
||||||
|
PlayerEnterSceneNotify
|
||||||
|
PlayerLoginReq
|
||||||
|
PlayerQuitFromHomeNotify
|
||||||
|
PlayerWorldSceneInfo
|
||||||
|
PrivateChatReq
|
||||||
|
QueryCurrRegionHttpRsp
|
||||||
|
ServerBuffChangeNotify
|
||||||
|
BattlePassMission
|
||||||
|
MonsterBornType
|
||||||
|
InterOpType
|
||||||
|
ResinCostType
|
||||||
|
MovingPlatformType
|
||||||
|
FriendOnlineState
|
||||||
|
DealAddFriendResultType
|
||||||
|
FriendEnterHomeOption
|
||||||
|
MailCollectState
|
||||||
|
MpSettingType
|
||||||
|
ForwardType
|
||||||
|
CombatTypeArgument
|
Loading…
Reference in New Issue