1
Fork 0
mirror of https://github.com/thegeneralist01/Scene-Manager-DevRepo synced 2026-01-11 23:50:29 +01:00

-Converted ControlledVehicles from List to Dictionary

-Removed ControlledVehicle from collection via dict key at end of AssignTasks
This commit is contained in:
Rich Dunne 2020-06-08 15:20:29 -06:00
parent 826e45f40b
commit 071ac92ba0
3 changed files with 53 additions and 48 deletions

View file

@ -5,6 +5,7 @@ namespace SceneManager
public class ControlledVehicle
{
public Vehicle Vehicle;
public string LicensePlate;
public int Path;
public int TotalWaypoints;
public int CurrentWaypoint;
@ -13,9 +14,10 @@ namespace SceneManager
public bool StoppedAtWaypoint;
public bool Redirected;
public ControlledVehicle(Vehicle vehicle, int path, int totalWaypoints, int currentWaypoint, bool tasksAssigned, bool dismissNow, bool redirected)
public ControlledVehicle(Vehicle vehicle, string licensePlate, int path, int totalWaypoints, int currentWaypoint, bool tasksAssigned, bool dismissNow, bool redirected)
{
Vehicle = vehicle;
LicensePlate = licensePlate;
Path = path;
TotalWaypoints = totalWaypoints;
CurrentWaypoint = currentWaypoint;