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

Updated methods from public to internal

This commit is contained in:
Rich Dunne 2020-09-14 13:19:28 -06:00
parent 9cf578f380
commit e173d9da0c
6 changed files with 19 additions and 19 deletions

View file

@ -10,7 +10,7 @@ namespace SceneManager
{ {
public class EntryPoint public class EntryPoint
{ {
public static void Main() internal static void Main()
{ {
AppDomain.CurrentDomain.DomainUnload += MyTerminationHandler; AppDomain.CurrentDomain.DomainUnload += MyTerminationHandler;
Settings.LoadSettings(); Settings.LoadSettings();

View file

@ -4,7 +4,7 @@ namespace SceneManager
{ {
class GetUserInput class GetUserInput
{ {
public static void LoopForUserInput() internal static void LoopForUserInput()
{ {
while (true) while (true)
{ {

View file

@ -4,9 +4,9 @@ namespace SceneManager
{ {
class Hints class Hints
{ {
public static bool Enabled { get; set; } = SettingsMenu.hints.Checked; internal static bool Enabled { get; set; } = SettingsMenu.hints.Checked;
public static void Display(string message) internal static void Display(string message)
{ {
if (Enabled) if (Enabled)
{ {

View file

@ -6,12 +6,12 @@ namespace SceneManager
{ {
public class Path public class Path
{ {
public int Number { get; set; } internal int Number { get; set; }
public bool IsEnabled { get; set; } internal bool IsEnabled { get; set; }
public State State { get; set; } internal State State { get; set; }
public List<Waypoint> Waypoints = new List<Waypoint>(); internal List<Waypoint> Waypoints = new List<Waypoint>();
public Path(int pathNum, State pathState) internal Path(int pathNum, State pathState)
{ {
Number = pathNum; Number = pathNum;
State = pathState; State = pathState;
@ -45,7 +45,7 @@ namespace SceneManager
} }
} }
public void DisablePath() internal void DisablePath()
{ {
IsEnabled = false; IsEnabled = false;
foreach(Waypoint wp in Waypoints) foreach(Waypoint wp in Waypoints)
@ -58,7 +58,7 @@ namespace SceneManager
} }
} }
public void EnablePath() internal void EnablePath()
{ {
IsEnabled = true; IsEnabled = true;
foreach (Waypoint wp in Waypoints) foreach (Waypoint wp in Waypoints)
@ -74,7 +74,7 @@ namespace SceneManager
} }
} }
public void DrawLinesBetweenWaypoints() internal void DrawLinesBetweenWaypoints()
{ {
GameFiber.StartNew(() => GameFiber.StartNew(() =>
{ {

View file

@ -4,14 +4,14 @@ using System.Windows.Forms;
namespace SceneManager namespace SceneManager
{ {
public enum State internal enum State
{ {
Uninitialized, Uninitialized,
Creating, Creating,
Finished Finished
} }
public enum SpeedUnits internal enum SpeedUnits
{ {
MPH, MPH,
KPH KPH

View file

@ -6,14 +6,14 @@ using Rage;
namespace SceneManager namespace SceneManager
{ {
public static class VehicleCollector internal static class VehicleCollector
{ {
// Driving styles https://gtaforums.com/topic/822314-guide-driving-styles/ // Driving styles https://gtaforums.com/topic/822314-guide-driving-styles/
// also https://vespura.com/fivem/drivingstyle/ // also https://vespura.com/fivem/drivingstyle/
public static List<CollectedVehicle> collectedVehicles = new List<CollectedVehicle>(); internal static List<CollectedVehicle> collectedVehicles = new List<CollectedVehicle>();
public static void StartCollectingAtWaypoint(List<Path> paths, Path path, Waypoint waypoint) internal static void StartCollectingAtWaypoint(List<Path> paths, Path path, Waypoint waypoint)
{ {
while (paths.Contains(path) && path.Waypoints.Contains(waypoint)) while (paths.Contains(path) && path.Waypoints.Contains(waypoint))
{ {
@ -87,7 +87,7 @@ namespace SceneManager
} }
} }
public static void SetVehicleAndDriverPersistence(Vehicle v) internal static void SetVehicleAndDriverPersistence(Vehicle v)
{ {
v.IsPersistent = true; v.IsPersistent = true;
v.Driver.IsPersistent = true; v.Driver.IsPersistent = true;