Esempio n. 1
0
 public void SetPhysics(int cylynderCount, int sideCount)
 {
     _cylynderList.Clear();
     _sideCount = sideCount;
     for (int i = 0; i < cylynderCount; i++)
     {
         Track[] cyl = new Track[_sideCount];
         for (int j = 0; j < cyl.Length; j++)
         {
             cyl[j] = new Track(_rotateTime);
             byte[] rawImage = new byte[6400];
             byte[] rawClock = new byte[rawImage.Length / 8 + (((rawImage.Length & 7) != 0) ? 1 : 0)];
             cyl[j].AssignImage(rawImage, rawClock);
         }
         _cylynderList.Add(cyl);
     }
     _modifyFlag = ModifyFlag.None;
 }
Esempio n. 2
0
 public void Init(long rotateTime)
 {
     _rotateTime = rotateTime;
     _indexTime = rotateTime / 50;
     _nullTrack = new Track(rotateTime);
     m_serializer = new DiskLoadManager(this);
 }