using System.Collections.Generic; using UnityEngine; namespace Gley.UrbanSystem.Internal { [System.Serializable] public class WaypointBase { public List neighbors; public List prev; public List otherLanes; public Vector3 position; public string name; public int listIndex; public bool temporaryDisabled; public List allowedAgents; public WaypointBase() { } /// /// Constructor used to convert from editor waypoint to runtime waypoint /// /// /// /// /// /// /// /// /// /// /// /// /// public WaypointBase(string name, int listIndex, Vector3 position, List neighbors, List prev, List otherLanes, List allowedAgents) { this.name = name; this.listIndex = listIndex; this.position = position; this.neighbors = neighbors; this.prev = prev; this.otherLanes = otherLanes; this.allowedAgents = allowedAgents; temporaryDisabled = false; } /// /// Waypoint is no longer a target for the vehicle /// internal virtual void Passed(int agentIndex) { } } }