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 static void Main()
internal static void Main()
{
AppDomain.CurrentDomain.DomainUnload += MyTerminationHandler;
Settings.LoadSettings();

View file

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

View file

@ -4,9 +4,9 @@ namespace SceneManager
{
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)
{

View file

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

View file

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

View file

@ -6,14 +6,14 @@ using Rage;
namespace SceneManager
{
public static class VehicleCollector
internal static class VehicleCollector
{
// Driving styles https://gtaforums.com/topic/822314-guide-driving-styles/
// 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))
{
@ -87,7 +87,7 @@ namespace SceneManager
}
}
public static void SetVehicleAndDriverPersistence(Vehicle v)
internal static void SetVehicleAndDriverPersistence(Vehicle v)
{
v.IsPersistent = true;
v.Driver.IsPersistent = true;