Files
2024-11-19 11:48:21 +01:00

22 lines
775 B
C#

using System.Collections.Generic;
namespace Gley.TrafficSystem.Internal
{
public class IntersectionEvents
{
/// <summary>
/// Triggered when active intersections modify
/// </summary>
/// <param name="activeIntersections"></param>
public delegate void ActiveIntersectionsChanged(List<GenericIntersection> activeIntersections);
public static event ActiveIntersectionsChanged onActiveIntersectionsChanged;
public static void TriggetActiveIntersectionsChangedEvent(List<GenericIntersection> activeIntersections)
{
if (onActiveIntersectionsChanged != null)
{
onActiveIntersectionsChanged(activeIntersections);
}
}
}
}