public RadarPing Add(Func<bool> isVisible, WPos position, Color color, int duration) { var ping = new RadarPing(isVisible, position, color, duration, info.FromRadius, info.ToRadius, info.ShrinkSpeed, info.RotationSpeed); if (ping.IsVisible()) LastPingPosition = ping.Position; Pings.Add(ping); return ping; }
public RadarPing Add(Func <bool> isVisible, WPos position, Color color, int duration) { var ping = new RadarPing(isVisible, position, color, duration, info.FromRadius, info.ToRadius, info.ShrinkSpeed, info.RotationSpeed); if (ping.IsVisible()) { LastPingPosition = ping.Position; } Pings.Add(ping); return(ping); }