Exemplo n.º 1
0
 public override void Read(BinaryReader stream)
 {
     Magic   = stream.ReadBytes(4).Select(_ => (char)_).ToArray();
     Version = stream.ReadUInt32();
     Name.Read(stream);
     GlobalModelFlags = stream.ReadUInt32();
     GlobalSequences.Read(stream);
     Animations.Read(stream);
     AnimationLookups.Read(stream);
     Bones.Read(stream);
     KeyBoneLookup.Read(stream);
     Vertices.Read(stream);
     nViews = stream.ReadUInt32();
     SubmeshAnimations.Read(stream);
     Textures.Read(stream);
     Transparencies.Read(stream);
     UVAnimations.Read(stream);
     TextureReplacements.Read(stream);
     Materials.Read(stream);
     BoneLookups.Read(stream);
     TextureLookups.Read(stream);
     TextureUnits.Read(stream);
     TransparencyLookups.Read(stream);
     AnimTextureLookups.Read(stream);
     BoundingBox           = stream.Read <C3Vector>(2);
     BoundingSphereRadius  = stream.ReadSingle();
     CollisionBox          = stream.Read <C3Vector>(2);
     CollisionSphereRadius = stream.ReadSingle();
     BoundingTriangles.Read(stream);
     BoundingVertices.Read(stream);
     BoundingNormals.Read(stream);
     Attachments.Read(stream);
     AttachementLookups.Read(stream);
     Events.Read(stream);
     Lights.Read(stream);
     Cameras.Read(stream);
     CameraLookups.Read(stream);
     RibbonEmitters.Read(stream);
     ParticleEmitters.Read(stream);
     if (HasExtraField())
     {
         Unknown.Read(stream);
     }
 }
Exemplo n.º 2
0
 public override void Read(BinaryReader stream)
 {
     A = stream.ReadUInt32();
     B.Read(stream);
 }
Exemplo n.º 3
0
 public override void Read(BinaryReader stream)
 {
     C = stream.ReadInt32();
     D = stream.ReadInt32();
     E.Read(stream);
 }