26 lines
850 B
C#
26 lines
850 B
C#
using UnityEngine;
|
|
|
|
namespace Gley.UrbanSystem.Internal
|
|
{
|
|
/// <summary>
|
|
/// This type of waypoint can spawn a vehicle,
|
|
/// used to store waypoint properties
|
|
/// </summary>
|
|
[System.Serializable]
|
|
public struct SpawnWaypoint
|
|
{
|
|
[SerializeField] private int[] _allowedAgents;
|
|
[SerializeField] private int _waypointIndex;
|
|
[SerializeField] private int _priority;
|
|
public readonly int[] AllowedAgents => _allowedAgents;
|
|
public readonly int WaypointIndex => _waypointIndex;
|
|
public readonly int Priority => _priority;
|
|
public SpawnWaypoint(int waypointIndex, int[] allowedVehicles, int priority)
|
|
{
|
|
_waypointIndex = waypointIndex;
|
|
_allowedAgents = allowedVehicles;
|
|
_priority = priority;
|
|
}
|
|
}
|
|
}
|