Exemple #1
0
            public void read(ref BinaryReader br)
            {
                this.boundingsphere_radius = br.ReadInt32();
                this.boundingsphere_x      = br.ReadInt32();
                this.boundingsphere_y      = br.ReadInt32();
                short num = br.ReadInt16();

                if (num > 0)
                {
                    for (int num2 = 0; num2 != (int)num; num2++)
                    {
                        ZSC.Object.Mesh mesh = new ZSC.Object.Mesh();
                        mesh.read(ref br);
                        this.list_mesh.Add(mesh);
                    }
                    short num3 = br.ReadInt16();
                    for (int num2 = 0; num2 != (int)num3; num2++)
                    {
                        ZSC.Object.Effect effect = new ZSC.Object.Effect();
                        effect.read(ref br);
                        this.list_effect.Add(effect);
                    }
                    this.minbounds.X = br.ReadSingle();
                    this.minbounds.Y = br.ReadSingle();
                    this.minbounds.Z = br.ReadSingle();
                    this.maxbounds.X = br.ReadSingle();
                    this.maxbounds.Y = br.ReadSingle();
                    this.maxbounds.Z = br.ReadSingle();
                }
            }
Exemple #2
0
 public void read(ref BinaryReader br)
 {
     this.boundingsphere_radius = br.ReadInt32();
     this.boundingsphere_x = br.ReadInt32();
     this.boundingsphere_y = br.ReadInt32();
     short num = br.ReadInt16();
     if (num > 0)
     {
         for (int num2 = 0; num2 != (int)num; num2++)
         {
             ZSC.Object.Mesh mesh = new ZSC.Object.Mesh();
             mesh.read(ref br);
             this.list_mesh.Add(mesh);
         }
         short num3 = br.ReadInt16();
         for (int num2 = 0; num2 != (int)num3; num2++)
         {
             ZSC.Object.Effect effect = new ZSC.Object.Effect();
             effect.read(ref br);
             this.list_effect.Add(effect);
         }
         this.minbounds.X = br.ReadSingle();
         this.minbounds.Y = br.ReadSingle();
         this.minbounds.Z = br.ReadSingle();
         this.maxbounds.X = br.ReadSingle();
         this.maxbounds.Y = br.ReadSingle();
         this.maxbounds.Z = br.ReadSingle();
     }
 }