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

Removed unnecessary code and updated references.

This commit is contained in:
Rich Dunne 2020-09-14 12:15:34 -06:00
parent 8d52f31ea2
commit 02a603ad15
2 changed files with 8 additions and 17 deletions

View file

@ -6,27 +6,18 @@ namespace SceneManager
{
public class Path
{
private int _number { get; set; }
private bool _isEnabled { get; set; }
private State _state { get; set; }
public int Number { get { return _number; } set { _number = value; } }
public bool IsEnabled { get { return _isEnabled; } set { _isEnabled = value; } }
public State State { get { return _state; } set { _state = value; } }
public int Number { get; set; }
public bool IsEnabled { get; set; }
public State State { get; set; }
public List<Waypoint> Waypoints = new List<Waypoint>();
public Path(int pathNum, State pathState)
{
_number = pathNum;
_state = pathState;
Number = pathNum;
State = pathState;
DrawLinesBetweenWaypoints();
}
public void SetPathNumber(int pathNum)
{
_number = pathNum;
}
private void LowerWaypointBlipsOpacity()
{
foreach (Waypoint wp in Waypoints)
@ -56,7 +47,7 @@ namespace SceneManager
public void DisablePath()
{
_isEnabled = false;
IsEnabled = false;
foreach(Waypoint wp in Waypoints)
{
wp.RemoveSpeedZone();
@ -69,7 +60,7 @@ namespace SceneManager
public void EnablePath()
{
_isEnabled = true;
IsEnabled = true;
foreach (Waypoint wp in Waypoints)
{
if (wp.IsCollector)