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/npc_spawn_methods.go
T

24 lines
1.4 KiB
Go

package methods
//
// Agent summoning contracts (S2C) for the "生成敌人 / 生成NPC" panel sections.
// Field layouts are copied verbatim from the build-4229938 IL2CPP interop assembly
// (BepInEx/interop/Auto.Client.dll -> UX.Game.IGameSceneToClient), which is the client's
// authoritative wire contract. They are identical to the ones used by the dbnb-0.2 branch
// where the whole sequence was verified in-game.
// Only the packets needed to make an agent *appear with a working skeleton* are defined here:
// SyncLogicAgentEnter -> SyncManagedLogicAgent -> SyncRaidBattleUnitAgent
// -> SyncAgentCampInfo -> SyncAttachBattleModule -> SyncUnitAttrs -> SyncUnitHp
// Deliberately NOT included (dbnb-0.2 proved them useless for server-spawned agents, and this
// port only has to defeat the T-pose): SyncUnitHurtEffect, SyncEnemyPrepareDie,
// SyncEnemyPlayAction, SyncActiveWildEnemyGroup, SyncUnitLockTarget, SyncEnemyFightEdict.
//
// SyncAgentCampInfo(68588390). camp 4 = UnitCamp.AllEnemy, 0 = Unknown/civilian.
//
// SyncRaidBattleUnitAgent(68402349) body — UX.Game.RaidBattleUnitAgent (Auto.Reader[764]).
//
// RaidBattleUnitAgent.agentSyncClientInfo (46 fields; Auto.Reader[765]).
// AgentSyncClientInfo.AdherePlatformInfo (always null here; Auto.Reader[717]).
// Link-AI companion metadata (Auto.Reader[1187]). Fashion stays null for template NPCs.
// LinkAIAgentInfo.Fashion (Auto.Reader[1188]).