/
IColShape.cs
37 lines (32 loc) · 1.15 KB
/
IColShape.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.Numerics;
using AltV.Net.Shared.Elements.Entities;
namespace AltV.Net.Elements.Entities
{
public interface IColShape : ISharedColShape, IWorldObject
{
/// <summary>
/// Returns the ColShape type
/// </summary>
ColShapeType ColShapeType { get; }
/// <summary>
/// Sets / Gets if the ColShape only triggers for players
/// </summary>
bool IsPlayersOnly { get; set; }
bool IsEntityIn(IEntity entity);
/// <summary>
/// Returns if the entity is inside the ColShape
/// </summary>
/// <param name="entity">The entity</param>
/// <exception cref="EntityRemovedException">This entity was removed</exception>
[Obsolete("Use IsEntityIn instead")]
bool IsPlayerIn(IPlayer entity);
/// <summary>
/// Returns if the entity is inside the ColShape
/// </summary>
/// <param name="entity">The entity</param>
/// <exception cref="EntityRemovedException">This entity was removed</exception>
[Obsolete("Use IsEntityIn instead")]
bool IsVehicleIn(IVehicle entity);
}
}