Actually parse light and lightcolor props lol

This commit is contained in:
Jarrod Doyle 2024-09-22 13:18:11 +01:00
parent fe3f13e372
commit e6d3489b11
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
2 changed files with 4 additions and 0 deletions

View File

@ -142,6 +142,8 @@ public class DbFile
"P$OTxtRepr1" => new PropertyChunk<PropString>(), "P$OTxtRepr1" => new PropertyChunk<PropString>(),
"P$OTxtRepr2" => new PropertyChunk<PropString>(), "P$OTxtRepr2" => new PropertyChunk<PropString>(),
"P$OTxtRepr3" => new PropertyChunk<PropString>(), "P$OTxtRepr3" => new PropertyChunk<PropString>(),
"P$Light" => new PropertyChunk<PropLight>(),
"P$LightColo" => new PropertyChunk<PropLightColor>(),
"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

@ -99,6 +99,8 @@ public class ObjectHierarchy
AddProp<PropString>("P$OTxtRepr2"); AddProp<PropString>("P$OTxtRepr2");
AddProp<PropString>("P$OTxtRepr3"); AddProp<PropString>("P$OTxtRepr3");
AddProp<PropFloat>("P$RenderAlp"); AddProp<PropFloat>("P$RenderAlp");
AddProp<PropLight>("P$Light");
AddProp<PropLightColor>("P$LightColo");
} }
public T GetProperty<T>(int objectId, string propName) where T : Property public T GetProperty<T>(int objectId, string propName) where T : Property