public override void ProcessCore(ApiInfo rpInfo, RawDay rpData) { if (Game.Practice == null) { return; } var rParticipantFleet = Game.Port.Fleets[int.Parse(rpInfo.Parameters["api_deck_id"])]; Game.Practice.Battle = new BattleInfo(rpInfo.Timestamp, rParticipantFleet); }
public override void Process(RawDay rpData) { var rPracticeInfo = Game.Sortie as PracticeInfo; if (rPracticeInfo != null) { var rParticipantFleet = Game.Port.Fleets[int.Parse(Parameters["api_deck_id"])]; rPracticeInfo.Battle = new BattleInfo(rParticipantFleet); } }