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++) {
const line = lines[i].trim();
if (line.startsWith('// CmdID: ')) {
if (line.startsWith('// CmdId: ')) {
cmdid = line;
// console.log(line)
} else if (line.startsWith("message") || line.startsWith("enum")) {
currentName = line.split(' ')[1];
currentContent.push(lines[i]);
@ -62,7 +63,7 @@ function splitProtoFile(protoFilePath, nameTranslationPath = null, version = "0.
if (cmdid) {
var d = new Object();
d["name"] = currentName;
d["id"] = parseInt(cmdid.replace(`// CmdID: `, ""));
d["id"] = parseInt(cmdid.replace(`// CmdId: `, ""));
cmdid_gen.push(d)
}
@ -88,6 +89,7 @@ function saveContent(name, content, ntMap = {}, cmdid = "", version = "") {
const filename = `${name}.proto`;
const nestedMessages = findNestedMessages(content);
/*
var isEnum = false
for (let i = 0; i < content.length; i++) {
let line = content[i];
@ -98,6 +100,7 @@ function saveContent(name, content, ntMap = {}, cmdid = "", version = "") {
isEnum = true;
}
}
*/
let contentStr = content.join('\n');
for (const [key, value] of Object.entries(ntMap)) {

View File

@ -12,4 +12,42 @@ RoutePoint
SceneGadgetInfo
GadgetPlayInfo
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