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

Updated methods related to path status

This commit is contained in:
Rich Dunne 2020-08-23 15:41:09 -06:00
parent 5e26f15e75
commit 56a801df92

View file

@ -2,18 +2,26 @@
namespace SceneManager
{
public enum Status
{
IsEnabled,
IsDisabled
}
public class Path
{
public int PathNum { get; private set; }
public bool PathFinished { get; private set; }
public bool PathDisabled { get; private set; }
public bool IsEnabled { get; private set; }
public Status Status { get; private set; }
public List<Waypoint> Waypoints = new List<Waypoint>();
public Path(int pathNum, bool pathFinished, bool pathDisabled, List<Waypoint> waypoints)
{
PathNum = pathNum;
PathFinished = pathFinished;
PathDisabled = pathDisabled;
IsEnabled = pathDisabled;
Waypoints = waypoints;
}
@ -23,6 +31,11 @@ namespace SceneManager
PathFinished = pathFinished;
}
public void SetPathStatus(bool status)
{
IsEnabled = status;
}
public void SetPathNumber(int pathNum)
{
PathNum = pathNum;
@ -35,7 +48,7 @@ namespace SceneManager
public void DisablePath()
{
PathDisabled = true;
IsEnabled = false;
LowerWaypointBlipsOpacity();
}
@ -53,7 +66,7 @@ namespace SceneManager
public void EnablePath()
{
PathDisabled = false;
IsEnabled = true;
}
private void RestoreWaypointBlipsOpacity()