Пример #1
0
 void RecordFrames(List <DS_protocol.p_IdToFrames> areas_to_frames)
 {
     bRecordFrame = true;
     for (int nLoop = 0; nLoop < areas_to_frames.Count; ++nLoop)
     {
         DS_protocol.p_IdToFrames       area_to_Frames = areas_to_frames[nLoop];
         List <DS_protocol.p_SyncFrame> framesInfo     = area_to_Frames.frames;
         if (framesInfo != null && framesInfo.Count > 0)
         {
             // Console.WriteLine(" recieve areaID " + area_to_Frames.areaid + " Frame start - to " + framesInfo[0].frame_count +"~" + framesInfo[framesInfo.Count-1].frame_count); //单位毫秒
             foreach (DS_protocol.p_SyncFrame p_syncFrame in framesInfo)
             {
                 int       frame_count = p_syncFrame.frame_count;
                 SyncFrame syncFrame   = new SyncFrame(frame_count, area_to_Frames.areaid);
                 syncFrame.msg_list = NetCommon.extract_msg(p_syncFrame.msg_list);
                 areaManager.received_sync_frame(area_to_Frames.areaid, syncFrame);
             }
         }
     }
 }