forked from kaka3286/RoadRunner
22 lines
775 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
}
|