コード例 #1
0
 public static HitTarget Adapt(TargetData targetData) =>
 new HitTarget
 {
     Entity            = targetData.TargetEntity,
     IncarnationEntity = targetData.TargetIncorantionEntity,
     LocalHitPoint     = targetData.LocalHitPoint,
     TargetPosition    = targetData.TargetPosition,
     HitDirection      = targetData.HitDirection,
     HitDistance       = targetData.HitDistance
 };
コード例 #2
0
        public static List <HitTarget> Adapt(List <TargetData> targetsData)
        {
            List <HitTarget> list = new List <HitTarget>();

            for (int i = 0; i < targetsData.Count; i++)
            {
                TargetData targetData = targetsData[i];
                list.Add(Adapt(targetData));
            }
            return(list);
        }
コード例 #3
0
 public IsisEvaluateTeamTankEvent(Tanks.Battle.ClientCore.API.TargetData targetData, long shooterTeamKey)
 {
     this.TargetData     = targetData;
     this.ShooterTeamKey = shooterTeamKey;
 }