mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 23:50:29 +01:00
Mid-refactor
This commit is contained in:
parent
b52f160ff7
commit
f4c1c0c693
18 changed files with 1721 additions and 916 deletions
52
SceneManager/Object Classes/Waypoint.cs
Normal file
52
SceneManager/Object Classes/Waypoint.cs
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
using Rage;
|
||||
|
||||
namespace SceneManager
|
||||
{
|
||||
public class Waypoint
|
||||
{
|
||||
public int Path;
|
||||
public int WaypointNum;
|
||||
public Vector3 WaypointPos;
|
||||
public float Speed;
|
||||
public VehicleDrivingFlags DrivingFlag;
|
||||
public Blip WaypointBlip;
|
||||
public uint YieldZone;
|
||||
public bool Collector;
|
||||
public float CollectorRadius;
|
||||
public Blip CollectorRadiusBlip;
|
||||
|
||||
// Can this constructor be deleted?
|
||||
//public Waypoint(int path, Vector3 waypointPos, float speed, VehicleDrivingFlags drivingFlag, Blip waypointBlip, uint yieldZone)
|
||||
//{
|
||||
// Path = path;
|
||||
// WaypointPos = waypointPos;
|
||||
// Speed = speed;
|
||||
// DrivingFlag = drivingFlag;
|
||||
// WaypointBlip = waypointBlip;
|
||||
// YieldZone = yieldZone;
|
||||
//}
|
||||
|
||||
public Waypoint(int path, int waypointNum, Vector3 waypointPos, float speed, VehicleDrivingFlags drivingFlag, Blip waypointBlip, bool collector, float collectorRadius, uint yieldZone)
|
||||
{
|
||||
Path = path;
|
||||
WaypointNum = waypointNum;
|
||||
WaypointPos = waypointPos;
|
||||
Speed = speed;
|
||||
DrivingFlag = drivingFlag;
|
||||
WaypointBlip = waypointBlip;
|
||||
Collector = collector;
|
||||
CollectorRadius = collectorRadius;
|
||||
if (collector)
|
||||
{
|
||||
YieldZone = yieldZone;
|
||||
CollectorRadiusBlip = new Blip(waypointBlip.Position, collectorRadius)
|
||||
{
|
||||
Color = waypointBlip.Color,
|
||||
Alpha = 0.5f
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue