コード例 #1
0
 public void read(BinaryReader r)
 {
     this.Count    = r.ReadInt32();
     this.BendData = new BendData32[this.Count]; for (int i = 0; i < this.Count; i++)
     {
         BendData32 obj = new BendData32(); obj.read(r); this.BendData[i] = obj;
     }
 }
コード例 #2
0
 public void read(EndianBinaryReader r)
 {
     Count    = r.ReadInt32();
     BendData = new BendData32[Count]; for (int i = 0; i < Count; i++)
     {
         var obj = new BendData32(); obj.read(r); BendData[i] = obj;
     }
 }
コード例 #3
0
 public void read(BinaryReader r)
 {
     this.BendData32 = new BendData32[32]; for (int i = 0; i < 32; i++)
     {
         BendData32 obj = new BendData32(); obj.read(r); this.BendData32[i] = obj;
     }
     this.UsedCount = r.ReadInt32();
 }
コード例 #4
0
 public void read(EndianBinaryReader r)
 {
     BendData32 = new BendData32[32]; for (int i = 0; i < 32; i++)
     {
         var obj = new BendData32(); obj.read(r); BendData32[i] = obj;
     }
     UsedCount = r.ReadInt32();
 }
コード例 #5
0
        private BendData32[] parseBendData(SongNote2014 note, bool single)
        {
            // single can be any size, otherwise 32x BendData32 are allocated
            Int32 count = 32;

            // count of available values
            Int32 bend_values = 0;
            if (note != null && note.BendValues != null)
                bend_values = note.BendValues.Length;

            if (single)
            {
                count = bend_values;
            }

            var bd = new BendData32[count];
            for (int i = 0; i < count; i++)
                bd[i] = new BendData32();

            // intentionally not using "count"
            for (int i = 0; i < bend_values; i++)
            {
                var b = bd[i];
                b.Time = note.BendValues[i].Time;
                b.Step = note.BendValues[i].Step;
                // these are always zero for lessons and songs
                //"Unk3_0",
                //"Unk4_0",
                // TODO unknown meaning, added attribute to XML for testing
                //"Unk5"
                b.Unk5 = note.BendValues[i].Unk5;
            }

            return bd;
        }
コード例 #6
0
 public void read(EndianBinaryReader r)
 {
     Count = r.ReadInt32();
     BendData = new BendData32[Count]; for (int i = 0; i < Count; i++) { var obj = new BendData32(); obj.read(r); BendData[i] = obj; }
 }
コード例 #7
0
 public void read(EndianBinaryReader r)
 {
     BendData32 = new BendData32[32]; for (int i = 0; i < 32; i++) { var obj = new BendData32(); obj.read(r); BendData32[i] = obj; }
     UsedCount = r.ReadInt32();
 }
コード例 #8
0
 public void read(BinaryReader r)
 {
     this.Count = r.ReadInt32();
     this.BendData = new BendData32[this.Count]; for (int i=0; i<this.Count; i++) { BendData32 obj = new BendData32(); obj.read(r); this.BendData[i] = obj; }
 }
コード例 #9
0
 public void read(BinaryReader r)
 {
     this.BendData32 = new BendData32[32]; for (int i=0; i<32; i++) { BendData32 obj = new BendData32(); obj.read(r); this.BendData32[i] = obj; }
     this.UsedCount = r.ReadInt32();
 }