void BuildRebelShoot(PlayerShootStateReport stateReport) { RebelShoot.ShootTimes++; if (stateReport.GoalIndex == 0) { RebelShoot.DoorFrame++; } else if (stateReport.GoalIndex < 4 && CheckGoal()) { RebelShoot.GoalTimes++; } }
protected override PlayerStateReport CreateStateRpt(IPlayer player) { if (ReportAsset.RPTVerNo <= 1) { var rpt = new PlayerShootStateReport(); rpt.GoalIndex = player.Status.ShootStatus.ShootTargetIndex; rpt.GoalX = player.Status.ShootStatus.ShootTarget.X; rpt.GoalY = player.Status.ShootStatus.ShootTarget.Y; return(rpt); } var rpt2 = new PlayerShootStateReportV2(); rpt2.GoalIndex = player.Status.ShootStatus.ShootTargetIndex; rpt2.GoalX = player.Status.ShootStatus.ShootTarget.X; rpt2.GoalY = player.Status.ShootStatus.ShootTarget.Y; rpt2.SuccFlag = player.Status.ShootStatus.SuccFlag > 0 ? 1 : 0; rpt2.RawSuccRate = player.Status.ShootStatus.RawSuccRate; rpt2.NewSuccRate = player.Status.ShootStatus.NewSuccRate; return(rpt2); }