mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 15:40:29 +01:00
Updated public methods and properties to internal
This commit is contained in:
parent
e173d9da0c
commit
c141396d64
3 changed files with 35 additions and 35 deletions
|
|
@ -5,11 +5,11 @@ namespace SceneManager
|
|||
{
|
||||
class Barrier
|
||||
{
|
||||
public Rage.Object Object { get; set; }
|
||||
public Vector3 Position { get; set; }
|
||||
public float Rotation { get; set; }
|
||||
internal Rage.Object Object { get; set; }
|
||||
internal Vector3 Position { get; set; }
|
||||
internal float Rotation { get; set; }
|
||||
|
||||
public Barrier(Rage.Object barrier, Vector3 barrierPosition, float barrierRotation)
|
||||
internal Barrier(Rage.Object barrier, Vector3 barrierPosition, float barrierRotation)
|
||||
{
|
||||
Object = barrier;
|
||||
Position = barrierPosition;
|
||||
|
|
|
|||
|
|
@ -5,16 +5,16 @@ namespace SceneManager
|
|||
{
|
||||
public class CollectedVehicle
|
||||
{
|
||||
public Ped Driver { get; set; }
|
||||
public Vehicle Vehicle { get; set; }
|
||||
public Path Path { get; set; }
|
||||
public Waypoint CurrentWaypoint { get; set; }
|
||||
public Waypoint NextWaypoint { get; private set; }
|
||||
public bool StoppedAtWaypoint { get; set; }
|
||||
public bool Dismissed { get; set; }
|
||||
public bool SkipWaypoint { get; set; }
|
||||
internal Ped Driver { get; set; }
|
||||
internal Vehicle Vehicle { get; set; }
|
||||
internal Path Path { get; set; }
|
||||
internal Waypoint CurrentWaypoint { get; set; }
|
||||
internal Waypoint NextWaypoint { get; private set; }
|
||||
internal bool StoppedAtWaypoint { get; set; }
|
||||
internal bool Dismissed { get; set; }
|
||||
internal bool SkipWaypoint { get; set; }
|
||||
|
||||
public CollectedVehicle(Vehicle vehicle, Path path, Waypoint currentWaypoint)
|
||||
internal CollectedVehicle(Vehicle vehicle, Path path, Waypoint currentWaypoint)
|
||||
{
|
||||
Vehicle = vehicle;
|
||||
Driver = vehicle.Driver;
|
||||
|
|
@ -22,14 +22,14 @@ namespace SceneManager
|
|||
CurrentWaypoint = currentWaypoint;
|
||||
}
|
||||
|
||||
public CollectedVehicle(Vehicle vehicle, Path path)
|
||||
internal CollectedVehicle(Vehicle vehicle, Path path)
|
||||
{
|
||||
Vehicle = vehicle;
|
||||
Driver = vehicle.Driver;
|
||||
Path = path;
|
||||
}
|
||||
|
||||
public void Dismiss()
|
||||
internal void Dismiss()
|
||||
{
|
||||
GameFiber.StartNew(() =>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,21 +6,21 @@ namespace SceneManager
|
|||
{
|
||||
public class Waypoint
|
||||
{
|
||||
public Path Path { get; set; }
|
||||
public int Number { get; set; }
|
||||
public Vector3 Position { get; set; }
|
||||
public float Speed { get; set; }
|
||||
public VehicleDrivingFlags DrivingFlag { get; set; }
|
||||
public Blip Blip { get; }
|
||||
public bool IsCollector { get; set; }
|
||||
public float CollectorRadius { get; set; }
|
||||
public Blip CollectorRadiusBlip { get; set; }
|
||||
public float SpeedZoneRadius { get; set; }
|
||||
public uint SpeedZone { get; set; }
|
||||
public bool EnableWaypointMarker { get; set; }
|
||||
public bool EnableEditMarker { get; set; }
|
||||
internal Path Path { get; set; }
|
||||
internal int Number { get; set; }
|
||||
internal Vector3 Position { get; set; }
|
||||
internal float Speed { get; set; }
|
||||
internal VehicleDrivingFlags DrivingFlag { get; set; }
|
||||
internal Blip Blip { get; }
|
||||
internal bool IsCollector { get; set; }
|
||||
internal float CollectorRadius { get; set; }
|
||||
internal Blip CollectorRadiusBlip { get; set; }
|
||||
internal float SpeedZoneRadius { get; set; }
|
||||
internal uint SpeedZone { get; set; }
|
||||
internal bool EnableWaypointMarker { get; set; }
|
||||
internal bool EnableEditMarker { get; set; }
|
||||
|
||||
public Waypoint(Path path, int waypointNum, Vector3 waypointPos, float speed, VehicleDrivingFlags drivingFlag, Blip waypointBlip, bool collector = false, float collectorRadius = 1, float speedZoneRadius = 0)
|
||||
internal Waypoint(Path path, int waypointNum, Vector3 waypointPos, float speed, VehicleDrivingFlags drivingFlag, Blip waypointBlip, bool collector = false, float collectorRadius = 1, float speedZoneRadius = 0)
|
||||
{
|
||||
Path = path;
|
||||
Number = waypointNum;
|
||||
|
|
@ -47,7 +47,7 @@ namespace SceneManager
|
|||
DrawWaypointMarker();
|
||||
}
|
||||
|
||||
public void UpdateWaypoint(Waypoint currentWaypoint, VehicleDrivingFlags drivingFlag, float speed, bool collectorWaypointChecked, float collectorRadius, float speedZoneRadius, bool updateWaypointPositionChecked)
|
||||
internal void UpdateWaypoint(Waypoint currentWaypoint, VehicleDrivingFlags drivingFlag, float speed, bool collectorWaypointChecked, float collectorRadius, float speedZoneRadius, bool updateWaypointPositionChecked)
|
||||
{
|
||||
UpdateDrivingFlag(drivingFlag);
|
||||
UpdateWaypointSpeed(speed);
|
||||
|
|
@ -133,17 +133,17 @@ namespace SceneManager
|
|||
}
|
||||
}
|
||||
|
||||
public void AddSpeedZone()
|
||||
internal void AddSpeedZone()
|
||||
{
|
||||
SpeedZone = World.AddSpeedZone(Position, SpeedZoneRadius, Speed);
|
||||
}
|
||||
|
||||
public void RemoveSpeedZone()
|
||||
internal void RemoveSpeedZone()
|
||||
{
|
||||
World.RemoveSpeedZone(SpeedZone);
|
||||
}
|
||||
|
||||
public void DrawWaypointMarker()
|
||||
internal void DrawWaypointMarker()
|
||||
{
|
||||
// This is called once when the waypoint is created
|
||||
GameFiber.StartNew((System.Threading.ThreadStart)(() =>
|
||||
|
|
@ -216,7 +216,7 @@ namespace SceneManager
|
|||
}));
|
||||
}
|
||||
|
||||
public void EnableBlip()
|
||||
internal void EnableBlip()
|
||||
{
|
||||
if(!PathMainMenu.GetPaths().Where(p => p == Path).First().IsEnabled)
|
||||
{
|
||||
|
|
@ -231,7 +231,7 @@ namespace SceneManager
|
|||
|
||||
}
|
||||
|
||||
public void DisableBlip()
|
||||
internal void DisableBlip()
|
||||
{
|
||||
Blip.Alpha = 0;
|
||||
CollectorRadiusBlip.Alpha = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue