internal MeshVertices(OptReader reader) : base(reader) { // unknown zeros reader.ReadUnknownUseValue(0, this); reader.ReadUnknownUseValue(0, this); var count = reader.ReadInt32(); reader.FollowPointerToNextByte(this); Vertices = reader.ReadVectorCollection <TVector3>(count); }
internal EngineGlow(OptReader reader) : base(reader) { reader.ReadUnknownUseValue(0, this); reader.ReadUnknownUseValue(0, this); reader.ReadUnknownUseValue(1, this); reader.FollowPointerToNextByte(this); reader.ReadUnknownUseValue(0, this); InnerColor = reader.ReadInt32(); OuterColor = reader.ReadInt32(); Center = reader.ReadVector <TVector3>(); // Cargo culting the order. Y = reader.ReadVector <TVector3>(); Z = reader.ReadVector <TVector3>(); X = reader.ReadVector <TVector3>(); }
internal PartDescriptor(OptReader reader) : base(reader) { reader.ReadUnknownUseValue(0, this); reader.ReadUnknownUseValue(0, this); reader.ReadUnknownUseValue(1, this); reader.FollowPointerToNextByte(this); PartType = (PartType)reader.ReadUInt32(); ExplosionType = reader.ReadInt32(); HitboxSpan = reader.ReadVector <TVector3>(); HitboxCenterPoint = reader.ReadVector <TVector3>(); HitboxLowerCorner = reader.ReadVector <TVector3>(); HitboxUpperCorner = reader.ReadVector <TVector3>(); TargetGroupId = reader.ReadInt32(); TargetPoint = reader.ReadVector <TVector3>(); }