Пример #1
0
 public void read(ref BinaryReader br)
 {
     this.is_active = br.ReadByte();
     if (this.is_active == 1)
     {
         this.bone_id = br.ReadInt16();
         this.name    = "";
         while (true)
         {
             byte b = br.ReadByte();
             if (b == 0)
             {
                 break;
             }
             this.name += (char)b;
         }
         int num = (int)br.ReadInt16();
         for (int num2 = 0; num2 != num; num2++)
         {
             CHR.Character.Mesh mesh = new CHR.Character.Mesh();
             mesh.read(ref br);
             this.List_Mesh.Add(mesh);
         }
         int num3 = (int)br.ReadInt16();
         for (int num2 = 0; num2 != num3; num2++)
         {
             CHR.Character.Motion motion = new CHR.Character.Motion();
             motion.read(ref br);
             this.List_Motion.Add(motion);
         }
         int num4 = (int)br.ReadInt16();
         for (int num2 = 0; num2 != num4; num2++)
         {
             CHR.Character.Effect effect = new CHR.Character.Effect();
             effect.read(ref br);
             this.List_Effect.Add(effect);
         }
     }
 }
Пример #2
0
 public void read(ref BinaryReader br)
 {
     this.is_active = br.ReadByte();
     if (this.is_active == 1)
     {
         this.bone_id = br.ReadInt16();
         this.name = "";
         while (true)
         {
             byte b = br.ReadByte();
             if (b == 0)
             {
                 break;
             }
             this.name += (char)b;
         }
         int num = (int)br.ReadInt16();
         for (int num2 = 0; num2 != num; num2++)
         {
             CHR.Character.Mesh mesh = new CHR.Character.Mesh();
             mesh.read(ref br);
             this.List_Mesh.Add(mesh);
         }
         int num3 = (int)br.ReadInt16();
         for (int num2 = 0; num2 != num3; num2++)
         {
             CHR.Character.Motion motion = new CHR.Character.Motion();
             motion.read(ref br);
             this.List_Motion.Add(motion);
         }
         int num4 = (int)br.ReadInt16();
         for (int num2 = 0; num2 != num4; num2++)
         {
             CHR.Character.Effect effect = new CHR.Character.Effect();
             effect.read(ref br);
             this.List_Effect.Add(effect);
         }
     }
 }