later check

This commit is contained in:
Yuuki 2024-08-28 17:34:22 +08:00
parent acc3bfc3b6
commit 149b416283
7 changed files with 11921 additions and 12645 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

19378
deobf.proto

File diff suppressed because it is too large Load Diff

View File

@ -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)) {

View File

@ -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