//存储小局战绩信息 public static void SaveParticularMiltary(this FiveStarRoom fiveStarRoom, Actor_FiveStar_SmallResult actorFiveStarSmall) { //只有房卡才记录 if (fiveStarRoom.RoomType != RoomType.RoomCard) { return; } ParticularMiltary particularMiltary = ComponentFactory.Create <ParticularMiltary>(); particularMiltary.DataId = fiveStarRoom.StartVideoDataId + fiveStarRoom.CurrOfficNum; //录像数据ID particularMiltary.Time = TimeTool.GetCurrenTimeStamp(); //当前时间 for (int i = 0; i < actorFiveStarSmall.SmallPlayerResults.Count; i++) { particularMiltary.GetScoreInfos.Add(actorFiveStarSmall.SmallPlayerResults[i].GetScore); //得分情况 } fiveStarRoom.ParticularMiltarys.Add(particularMiltary); //添加到小局信息里面 fiveStarRoom.SaveParticularMiltaryRecordData(particularMiltary.DataId); //存储当前小局对战具体信息 }