using System.Linq;
namespace RageCoop.Core
{
public class PlayerData
{
public string Username { get; set; }
///
/// Universal character ID.
///
public int PedID
{
get; set;
}
///
/// Universal vehicle ID.
///
public int VehicleID { get; set; }
public bool IsInVehicle { get; internal set; }
public LVector3 Position { get; set; }
public int Latency { get; set; }
public int Health { get; set; }
public bool IsInRangeOf(LVector3 position, float distance)
{
return LVector3.Subtract(Position, position).Length() < distance;
}
}
}