This repository has been archived on 2026-10-31. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Ananta-ps/pkg/protocol/methods/hack_target_methods.go
T

33 lines
1.8 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package methods
// Ported from donor_7k (T1-16 载具骇入).
//
// Client 4229938: IGameSceneToClient.SyncUnitHackableState(ulong unitId, bool isHackable).
// This native-client notification registers or unregisters an NPC as a Seymour hack target.
// ⛑️ 2026-09-24 接入(T2-32 路人骇入):该包是 CSharpOnly(`RPCDeserializeAuto.lua`
// 里 `midToExportOption[68941159] = CSharpOnly`),Lua 侧没有 reader,也没有任何 Lua 调用点;
// 它由 C# 直接消费,写 `L50.L50App.Scene.HackManager.hackUnitTarget`,再由
// `GadgetManager.RefreshHackInteract`(:1563) 走 `SetPedestrianHackTarget` 装进
// `HackInteractList`(`hackTargetType = AtmosphereNpc`)。
// ⇒ **没有这个包,路人身上永远不会有骇入按钮** —— 客户端 3 个 C2S 一个都不会发
// (`logs/unknown-methods.log` 里 `AskHackingNpc` 命中 0 次可作证)。
//
//
// Client 4229938: IClientToGameScene.AskHackingNpc(ulong instanceid, int index) — INVOKE.
// Wire 取自 `LuaGen/AutoGen/ClientToGameSceneDelegate.lua:483`:
// `WriteUInt64(instanceid)` → `WriteInt32(index)`,两个裸标量 ⇒ UxContractAttribute.Inline。
// 返回体是空的(`midToReturnMessageReader[67070057]` 空函数)⇒ 回 `ReturnEmptyOkAsync` 即可。
//
//
// Client 4229938: IClientToGameScene.AskHackingNpcPress(ulong instanceid) — INVOKE(长按流程)。
// `ClientToGameSceneDelegate.lua:4402`,单裸标量 u64。
//
//
// Client 4229938: IClientToGameScene.ReportBeHacked(List<ulong> uids) — NOTIFY。
// `ClientToGameSceneDelegate.lua:595`:`WriteList7Bit(writer, uids, WriteUInt64, 0, "uids", false, ...)`
// ⇒ Int7 计数(带 +1 偏置)。解码只用于记日志,失败不影响 ack(本包无 ack)。
//
//
// Client 4229938: IGameSceneToClient.SyncVehicleHackableState(ulong vehicleEntityId, bool isHackable).
//