msh reverse

This commit is contained in:
bird_egop
2026-05-13 02:53:34 +03:00
parent 60e4fcf004
commit 9e651a60ce
5 changed files with 20 additions and 36 deletions
-17
View File
@@ -58,23 +58,6 @@ public static class Msh0x14
return elements;
}
/// <summary>
/// Component 0x14 is optional in the game reader.
/// This helper mirrors that behavior and returns an empty list when absent.
/// </summary>
public static List<LightProbe> ReadComponentOrEmpty(
FileStream mshFs, NResArchive archive)
{
var entry = archive.Files.FirstOrDefault(x => x.FileType == "14 00 00 00");
if (entry is null)
{
return [];
}
return ReadComponent(mshFs, archive);
}
/// <summary>Light/probe entry 0x14.</summary>
/// <param name="PieceIndex">[0x00..0x04] Индекс MSH_piece, чью world matrix используют для transform position/direction.</param>
/// <param name="LocalPosition">[0x04..0x10] Локальная позиция источника/probe относительно PieceIndex.</param>