Ensage.Common.Prediction.DrawPredictions C# (CSharp) Method

DrawPredictions() public static method

The draw predictions.
public static DrawPredictions ( float delay = 1000 ) : void
delay float /// The delay. ///
return void
        public static void DrawPredictions(float delay = 1000)
        {
            var heroes = Heroes.All.Where(x => !x.IsIllusion);
            foreach (var unit in heroes)
            {
                ParticleEffect effect;
                if (!predictionDrawings.TryGetValue(unit.Handle, out effect))
                {
                    effect = new ParticleEffect(
                        @"particles\ui_mouseactions\range_display.vpcf", 
                        PredictedXYZ(unit, delay));
                    effect.SetControlPoint(1, new Vector3(unit.HullRadius + 20, 0, 0));
                    predictionDrawings.Add(unit.Handle, effect);
                }

                effect.SetControlPoint(0, PredictedXYZ(unit, delay));
            }
        }