mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +01:00
Cache collections instead of looking them up for every single file.
This commit is contained in:
parent
f676bd1889
commit
2fac923452
12 changed files with 194 additions and 28 deletions
|
|
@ -162,10 +162,15 @@ public partial class ActorManager
|
|||
((FFXIVClientStructs.FFXIV.Client.Game.Character.Character*)actor)->NameID);
|
||||
}
|
||||
case ObjectKind.EventNpc:
|
||||
{
|
||||
var dataId = actor->DataID;
|
||||
// Special case for squadron that is also in the game functions, cf. E8 ?? ?? ?? ?? 89 87 ?? ?? ?? ?? 4C 89 BF
|
||||
if (dataId == 0xf845d)
|
||||
dataId = actor->GetNpcID();
|
||||
return check
|
||||
? CreateNpc(ObjectKind.EventNpc, actor->DataID, actor->ObjectIndex)
|
||||
: CreateIndividualUnchecked(IdentifierType.Npc, ByteString.Empty, actor->ObjectIndex, ObjectKind.EventNpc,
|
||||
actor->ObjectIndex);
|
||||
? CreateNpc(ObjectKind.EventNpc, dataId, actor->ObjectIndex)
|
||||
: CreateIndividualUnchecked(IdentifierType.Npc, ByteString.Empty, actor->ObjectIndex, ObjectKind.EventNpc, dataId);
|
||||
}
|
||||
case ObjectKind.MountType:
|
||||
case ObjectKind.Companion:
|
||||
case (ObjectKind)15: // TODO: CS Update
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue