Ejemplo n.º 1
0
 public void Read(Stream stream)
 {
     using BinaryReader reader = new BinaryReader(stream);
     idx              = reader.ReadUInt32();
     filename         = reader.ReadZString();
     pos              = reader.ReadVector3();
     rot              = reader.ReadVector3();
     fadeOutMin       = reader.ReadSingle();
     fadeOutMax       = reader.ReadSingle();
     surfaceProps     = SurfaceProperties.ReadNew(reader);
     color            = IColor.ReadNew(reader);
     worldDetailLevel = reader.ReadByte();
     unused           = reader.ReadByte();
     renderType       = EnumUtils.intToEnum <FOModelRenderType>(reader.ReadInt32());
     useCachedModels  = reader.ReadBoolean();
     wiggleAmpl       = reader.ReadInt32();
 }
Ejemplo n.º 2
0
 public ClumpMaterialInfo(FOModelRenderType renderType, RWMaterial rwMaterial) =>
 (RenderType, RWMaterial) = (renderType, rwMaterial);