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:
parent
8d52f31ea2
commit
02a603ad15
2 changed files with 8 additions and 17 deletions
|
|
@ -149,7 +149,7 @@ namespace SceneManager
|
||||||
Game.DisplayNotification($"~o~Scene Manager\n~g~[Success]~w~ Path {i + 1} complete.");
|
Game.DisplayNotification($"~o~Scene Manager\n~g~[Success]~w~ Path {i + 1} complete.");
|
||||||
currentPath.State = State.Finished;
|
currentPath.State = State.Finished;
|
||||||
currentPath.IsEnabled = true;
|
currentPath.IsEnabled = true;
|
||||||
currentPath.SetPathNumber(i + 1);
|
currentPath.Number = i + 1;
|
||||||
|
|
||||||
// For each waypoint in the path's WaypointData, start a collector game fiber and loop while the path and waypoint exist, and while the path is enabled
|
// For each waypoint in the path's WaypointData, start a collector game fiber and loop while the path and waypoint exist, and while the path is enabled
|
||||||
foreach (Waypoint waypoint in PathMainMenu.GetPaths()[i].Waypoints)
|
foreach (Waypoint waypoint in PathMainMenu.GetPaths()[i].Waypoints)
|
||||||
|
|
|
||||||
|
|
@ -6,27 +6,18 @@ namespace SceneManager
|
||||||
{
|
{
|
||||||
public class Path
|
public class Path
|
||||||
{
|
{
|
||||||
private int _number { get; set; }
|
public int Number { get; set; }
|
||||||
private bool _isEnabled { get; set; }
|
public bool IsEnabled { get; set; }
|
||||||
private State _state { get; set; }
|
public 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 List<Waypoint> Waypoints = new List<Waypoint>();
|
public List<Waypoint> Waypoints = new List<Waypoint>();
|
||||||
|
|
||||||
public Path(int pathNum, State pathState)
|
public Path(int pathNum, State pathState)
|
||||||
{
|
{
|
||||||
_number = pathNum;
|
Number = pathNum;
|
||||||
_state = pathState;
|
State = pathState;
|
||||||
DrawLinesBetweenWaypoints();
|
DrawLinesBetweenWaypoints();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetPathNumber(int pathNum)
|
|
||||||
{
|
|
||||||
_number = pathNum;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void LowerWaypointBlipsOpacity()
|
private void LowerWaypointBlipsOpacity()
|
||||||
{
|
{
|
||||||
foreach (Waypoint wp in Waypoints)
|
foreach (Waypoint wp in Waypoints)
|
||||||
|
|
@ -56,7 +47,7 @@ namespace SceneManager
|
||||||
|
|
||||||
public void DisablePath()
|
public void DisablePath()
|
||||||
{
|
{
|
||||||
_isEnabled = false;
|
IsEnabled = false;
|
||||||
foreach(Waypoint wp in Waypoints)
|
foreach(Waypoint wp in Waypoints)
|
||||||
{
|
{
|
||||||
wp.RemoveSpeedZone();
|
wp.RemoveSpeedZone();
|
||||||
|
|
@ -69,7 +60,7 @@ namespace SceneManager
|
||||||
|
|
||||||
public void EnablePath()
|
public void EnablePath()
|
||||||
{
|
{
|
||||||
_isEnabled = true;
|
IsEnabled = true;
|
||||||
foreach (Waypoint wp in Waypoints)
|
foreach (Waypoint wp in Waypoints)
|
||||||
{
|
{
|
||||||
if (wp.IsCollector)
|
if (wp.IsCollector)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue