From e3aac88c17b4127aed1e2a7413a8b61aaf73f279 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Mon, 23 Dec 2024 17:40:50 +0000 Subject: [PATCH] Add SpotlightAndAmbient parsing --- KeepersCompound.LGS/Database/File.cs | 1 + KeepersCompound.LGS/Database/ObjectHierarchy.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/KeepersCompound.LGS/Database/File.cs b/KeepersCompound.LGS/Database/File.cs index ff1cf5d..c8e2c3f 100644 --- a/KeepersCompound.LGS/Database/File.cs +++ b/KeepersCompound.LGS/Database/File.cs @@ -166,6 +166,7 @@ public class DbFile "P$AnimLight" => new PropertyChunk(), "P$LightColo" => new PropertyChunk(), "P$Spotlight" => new PropertyChunk(), + "P$SpotAmb" => new PropertyChunk(), "P$RenderAlp" => new PropertyChunk(), "LD$MetaProp" => new LinkDataMetaProp(), _ when entryName.StartsWith("L$") => new LinkChunk(), diff --git a/KeepersCompound.LGS/Database/ObjectHierarchy.cs b/KeepersCompound.LGS/Database/ObjectHierarchy.cs index c4ed32e..926ace7 100644 --- a/KeepersCompound.LGS/Database/ObjectHierarchy.cs +++ b/KeepersCompound.LGS/Database/ObjectHierarchy.cs @@ -103,6 +103,7 @@ public class ObjectHierarchy AddProp("P$AnimLight"); AddProp("P$LightColo"); AddProp("P$Spotlight"); + AddProp("P$SpotAmb"); } // TODO: Work out if there's some nice way to automatically decide if we inherit