Merge branch 'develop' of ssh://development.life-of-german.org:451/log-gtav/reallife-gamemode into develop
This commit is contained in:
@@ -1,34 +0,0 @@
|
|||||||
using GTANetworkAPI;
|
|
||||||
using Microsoft.EntityFrameworkCore;
|
|
||||||
using reallife_gamemode.Model;
|
|
||||||
using reallife_gamemode.Server.Entities;
|
|
||||||
using reallife_gamemode.Server.Managers;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @overview Life of German Reallife - Vehicle Extension (VehicleExtension.cs)
|
|
||||||
* @author VegaZ
|
|
||||||
* @copyright (c) 2008 - 2018 Life of German
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace reallife_gamemode.Server.Extensions
|
|
||||||
{
|
|
||||||
public class VehicleExtension : Script
|
|
||||||
{
|
|
||||||
public static bool IsFactionVehicle(Vehicle vehicle)
|
|
||||||
{
|
|
||||||
if (LoadManager.FactionVehiclesList.Contains(vehicle) == true)
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
else return false;
|
|
||||||
}
|
|
||||||
public static int GetFaction(Vehicle vehicle)
|
|
||||||
{
|
|
||||||
return (FactionVehicle)vehicle.FactionId;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user