reafactor CharcterDataFactory, fix calculating when no Main Hand weapon

This commit is contained in:
Stanley Dimant
2022-07-03 12:00:21 +02:00
parent cf87ed5019
commit 6d08b53ab3
4 changed files with 164 additions and 278 deletions

View File

@@ -23,4 +23,12 @@ namespace MareSynchronos.Interop
{
[FieldOffset(0x00)] public RenderModel* RenderModel;
}
[StructLayout(LayoutKind.Explicit)]
public unsafe struct HumanExt
{
[FieldOffset(0x0)] public Human Human;
[FieldOffset(0x9E8)] public ResourceHandle* Decal;
[FieldOffset(0x9F0)] public ResourceHandle* LegacyBodyDecal;
}
}