mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 07:30:40 +01:00
Updated methods related to path status
This commit is contained in:
parent
5e26f15e75
commit
56a801df92
1 changed files with 17 additions and 4 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue