Add RenderType property support
This commit is contained in:
parent
2be1bc4352
commit
be937d53fc
|
@ -73,3 +73,23 @@ public class PropScale : Property
|
|||
scale = reader.ReadVec3();
|
||||
}
|
||||
}
|
||||
|
||||
public class PropRenderType : Property
|
||||
{
|
||||
public enum Mode
|
||||
{
|
||||
Normal,
|
||||
NotRendered,
|
||||
Unlit,
|
||||
EditorOnly,
|
||||
CoronaOnly,
|
||||
}
|
||||
|
||||
public Mode mode;
|
||||
|
||||
public override void Read(BinaryReader reader)
|
||||
{
|
||||
base.Read(reader);
|
||||
mode = (Mode)reader.ReadUInt32();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -104,6 +104,7 @@ public class DbFile
|
|||
"BRLIST" => new BrList(),
|
||||
"P$ModelName" => new PropertyChunk<PropModelName>(),
|
||||
"P$Scale" => new PropertyChunk<PropScale>(),
|
||||
"P$RenderTyp" => new PropertyChunk<PropRenderType>(),
|
||||
"LD$MetaProp" => new LinkDataMetaProp(),
|
||||
_ when entryName.StartsWith("L$") => new LinkChunk(),
|
||||
_ => new GenericChunk(),
|
||||
|
|
Loading…
Reference in New Issue