RAGE Multiplayer 1.1.0-DP Update

/freeze was obselete and removed
/unfreeze was obselete and removed
/spectate was obselete and removed
This commit is contained in:
Siga
2020-02-24 21:18:54 +01:00
parent 0d5731fb11
commit edf06f4478
85 changed files with 804 additions and 643 deletions

View File

@@ -97,7 +97,7 @@ namespace ReallifeGamemode.Server.Job
JobStart += BusDriverJob_JobStart;
}
private void BusDriverJob_JobStart(Client player)
private void BusDriverJob_JobStart(Player player)
{
List<String> listRouteTexts = new List<string>();
List<String> listRouteTexts2 = new List<string>();
@@ -127,7 +127,7 @@ namespace ReallifeGamemode.Server.Job
}
[RemoteEvent("startBusRoute")]
public void StartBusRoute(Client player, string type)
public void StartBusRoute(Player player, string type)
{
if (type == "Kurz 1")
{
@@ -152,7 +152,7 @@ namespace ReallifeGamemode.Server.Job
}
public static void payWage(Client jobber, int wage)
public static void payWage(Player jobber, int wage)
{
}

View File

@@ -9,13 +9,13 @@ namespace ReallifeGamemode.Server.Job
{
public abstract class JobBase : Script
{
public delegate void JobStartHandler(Client player);
public delegate void JobStopHandler(Client player);
public delegate void JobStartHandler(Player player);
public delegate void JobStopHandler(Player player);
public event JobStartHandler JobStart;
public event JobStopHandler JobStop;
private readonly List<Client> _inJob = new List<Client>();
private readonly List<Player> _inJob = new List<Player>();
public abstract int Id { get; }
@@ -23,7 +23,7 @@ namespace ReallifeGamemode.Server.Job
public abstract bool NeedVehicleToStart { get; }
public void StartJob(Client player)
public void StartJob(Player player)
{
if (_inJob.Contains(player)) return;
_inJob.Add(player);
@@ -33,7 +33,7 @@ namespace ReallifeGamemode.Server.Job
JobStart?.Invoke(player);
}
public void StopJob(Client player, bool quit = false)
public void StopJob(Player player, bool quit = false)
{
if (!_inJob.Contains(player)) return;
_inJob.Remove(player);
@@ -54,6 +54,6 @@ namespace ReallifeGamemode.Server.Job
}
}
public List<Client> GetUsersInJob() => _inJob;
public List<Player> GetUsersInJob() => _inJob;
}
}

View File

@@ -108,7 +108,7 @@ namespace ReallifeGamemode.Server.Job
JobStart += PilotJob_JobStart;
}
private void PilotJob_JobStart(Client player)
private void PilotJob_JobStart(Player player)
{
List<String> listRouteTexts = new List<string>();
List<String> listRouteTexts2 = new List<string>();
@@ -135,7 +135,7 @@ namespace ReallifeGamemode.Server.Job
}
[RemoteEvent("startPilotRoute")]
public void StartPilotRoute(Client player, string type)
public void StartPilotRoute(Player player, string type)
{
if (type == "Route 1")
{

View File

@@ -22,12 +22,12 @@ namespace ReallifeGamemode.Server.Job
JobStop += TaxiDriverJobJobStop;
}
private void TaxiDriverJobJobStart(Client player)
private void TaxiDriverJobJobStart(Player player)
{
player.Vehicle.SetSharedData("vehicleTaxiLight", true);
}
private void TaxiDriverJobJobStop(Client player)
private void TaxiDriverJobJobStop(Player player)
{
player.Vehicle.SetSharedData("vehicleTaxiLight", false);
}