コード例 #1
0
        public override void Read(BinaryReader file, uint size)
        {
            base.Read(file, size);

            buffername.Read(file, 2);
            count.Read(file, size);
            unk.Read(file, 1);
            buffer.Read(file, 0, count.val);
        }
コード例 #2
0
 public override void Read(BinaryReader file, uint size)
 {
     type.Read(file, 1);
     flags.Read(file, 1);
     radius.Read(file, 2);
     offset.Read(file, 8);
     positionX.Read(file, 4);
     positionY.Read(file, 4);
     positionZ.Read(file, 4);
 }
コード例 #3
0
        public override void Read(BinaryReader file, uint size)
        {
            var startpos = file.BaseStream.Position;

            base.Read(file, size);

            var endpos = file.BaseStream.Position;

            var bytesread = endpos - startpos;

            if (bytesread < size)
            {
                buffername.Read(file, 2);
                count.Read(file, size);
                unk.Read(file, 1);
                buffer.Read(file, 0, count.val);
            }
            else if (bytesread > size)
            {
            }
        }
コード例 #4
0
            public override void Read(BinaryReader file, uint size)
            {
                someName.Read(file, size);

                byte count = file.ReadByte();

                if (count > 4)
                {
                    Debug.Print("Curve piece count out of bounds: " + count + ", using as 4");
                    count = 4;
                }

                someByte.Read(file, size);

                for (int i = 0; i < count; i++)
                {
                    var piece = new CurvePiece(cr2w)
                    {
                        Name = i.ToString(), Type = "CurvePiece"
                    };
                    piece.Read(file, size);
                    pieces.Add(piece);
                }
            }
コード例 #5
0
ファイル: CMaterialGraph.cs プロジェクト: zeta1999/Wolven-kit
 public override void Read(BinaryReader file, uint size)
 {
     unk1.Read(file, size);
     unk2.Read(file, size);
     name.Read(file, size);
 }