Add SpotlightAndAmbient parsing

This commit is contained in:
Jarrod Doyle 2024-12-23 17:40:50 +00:00
parent db01667fb2
commit e3aac88c17
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
2 changed files with 2 additions and 0 deletions

View File

@ -166,6 +166,7 @@ public class DbFile
"P$AnimLight" => new PropertyChunk<PropAnimLight>(), "P$AnimLight" => new PropertyChunk<PropAnimLight>(),
"P$LightColo" => new PropertyChunk<PropLightColor>(), "P$LightColo" => new PropertyChunk<PropLightColor>(),
"P$Spotlight" => new PropertyChunk<PropSpotlight>(), "P$Spotlight" => new PropertyChunk<PropSpotlight>(),
"P$SpotAmb" => new PropertyChunk<PropSpotlightAndAmbient>(),
"P$RenderAlp" => new PropertyChunk<PropFloat>(), "P$RenderAlp" => new PropertyChunk<PropFloat>(),
"LD$MetaProp" => new LinkDataMetaProp(), "LD$MetaProp" => new LinkDataMetaProp(),
_ when entryName.StartsWith("L$") => new LinkChunk(), _ when entryName.StartsWith("L$") => new LinkChunk(),

View File

@ -103,6 +103,7 @@ public class ObjectHierarchy
AddProp<PropAnimLight>("P$AnimLight"); AddProp<PropAnimLight>("P$AnimLight");
AddProp<PropLightColor>("P$LightColo"); AddProp<PropLightColor>("P$LightColo");
AddProp<PropSpotlight>("P$Spotlight"); AddProp<PropSpotlight>("P$Spotlight");
AddProp<PropSpotlightAndAmbient>("P$SpotAmb");
} }
// TODO: Work out if there's some nice way to automatically decide if we inherit // TODO: Work out if there's some nice way to automatically decide if we inherit