From 2be1bc4352534190299224970610cdd479d615ec Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sun, 25 Aug 2024 13:09:45 +0100 Subject: [PATCH] Add generic prop definition --- project/code/LGS/Database/Chunks/Property.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/project/code/LGS/Database/Chunks/Property.cs b/project/code/LGS/Database/Chunks/Property.cs index 1b85059..90a5f1b 100644 --- a/project/code/LGS/Database/Chunks/Property.cs +++ b/project/code/LGS/Database/Chunks/Property.cs @@ -40,6 +40,17 @@ public class PropertyChunk : IChunk where T : Property, new() } } +public class PropGeneric : Property +{ + public byte[] data; + + public override void Read(BinaryReader reader) + { + base.Read(reader); + data = reader.ReadBytes(length); + } +} + public class PropModelName : Property { public string modelName;