1
Fork 0
mirror of https://github.com/thegeneralist01/Scene-Manager-DevRepo synced 2026-01-11 23:50:29 +01:00
Scene-Manager-DevRepo/SceneManager/Object Classes/CollectedVehicle.cs
2020-08-25 20:56:15 -06:00

57 lines
1.9 KiB
C#

using Rage;
namespace SceneManager
{
public class CollectedVehicle
{
public Vehicle Vehicle { get; private set; }
public string LicensePlate { get; private set; }
public int Path { get; private set; }
public int TotalWaypoints { get; private set; }
public int CurrentWaypoint { get; private set; }
public bool TasksAssigned { get; private set; }
public bool DismissNow { get; private set; }
public bool StoppedAtWaypoint { get; private set; }
public CollectedVehicle(Vehicle vehicle, string licensePlate, int path, int totalWaypoints, int currentWaypoint, bool tasksAssigned, bool dismissNow)
{
Vehicle = vehicle;
LicensePlate = licensePlate;
Path = path;
TotalWaypoints = totalWaypoints;
CurrentWaypoint = currentWaypoint;
TasksAssigned = tasksAssigned;
DismissNow = dismissNow;
}
public void AssignPropertiesFromDirectedTask(int pathNum, int totalPathWaypoints, int currentWaypoint, bool tasksAssigned, bool dismiss, bool stoppedAtWaypoint)
{
Path = pathNum;
TotalWaypoints = totalPathWaypoints;
CurrentWaypoint = currentWaypoint;
TasksAssigned = tasksAssigned;
DismissNow = dismiss;
StoppedAtWaypoint = stoppedAtWaypoint;
}
public void SetCurrentWaypoint(int currentWaypoint)
{
CurrentWaypoint = currentWaypoint;
}
public void SetTasksAssigned(bool tasksAssigned)
{
TasksAssigned = tasksAssigned;
}
public void SetDismissNow(bool dismissNow)
{
DismissNow = dismissNow;
}
public void SetStoppedAtWaypoint(bool stoppedAtWaypoint)
{
StoppedAtWaypoint = stoppedAtWaypoint;
}
}
}