19 lines
395 B
C#
19 lines
395 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using GTANetworkAPI;
|
|
|
|
namespace ReallifeGamemode.Server.Job.BusDriver
|
|
{
|
|
public class ObjectiveInfo
|
|
{
|
|
public Vector3 Position { get; set; }
|
|
public float Size { get; set; }
|
|
|
|
public bool IsInObjective(Client client)
|
|
{
|
|
return (client.Position.DistanceTo2D(Position) <= Size) ? true : false;
|
|
}
|
|
}
|
|
}
|