Feature/save system

This commit is contained in:
VegaZ
2018-10-07 20:17:06 +02:00
parent 44028f6310
commit 5d1983f97a
13 changed files with 179 additions and 61 deletions

View File

@@ -0,0 +1,34 @@
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;
}
}
}