Exemple #1
0
        // I don't even know what this is yet here I am parsing it
        public static UnknownGeometricObject Read(EndianBinaryReader reader, PhysicalObject po, Pointer offset)
        {
            UnknownGeometricObject lodObj = new UnknownGeometricObject(po, offset);
            Pointer off_start             = Pointer.Read(reader);

            Pointer.Goto(ref reader, off_start);
            lodObj.off_model = Pointer.Read(reader);
            uint    num_vector3s   = reader.ReadUInt32();
            Pointer off_arrayStart = Pointer.Read(reader);

            if (off_arrayStart != null)
            {
                Pointer.Goto(ref reader, off_arrayStart);
                for (int i = 0; i < num_vector3s; i++)
                {
                    ushort id = reader.ReadUInt16();
                    reader.ReadUInt16();
                    float x = reader.ReadSingle();
                    float z = reader.ReadSingle();
                    float y = reader.ReadSingle();
                    lodObj.ids.Add(id);
                    lodObj.vector3s.Add(new Vector3(x, y, z));
                }
            }
            return(lodObj);
        }
Exemple #2
0
        public IGeometricObject Clone()
        {
            UnknownGeometricObject lodObj = (UnknownGeometricObject)MemberwiseClone();

            return(lodObj);
        }