forked from FabianTerhorst/coreclr-module
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIInteraction.cs
More file actions
29 lines (22 loc) · 818 Bytes
/
IInteraction.cs
File metadata and controls
29 lines (22 loc) · 818 Bytes
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
using System.Numerics;
using AltV.Net.Elements.Entities;
namespace AltV.Net.Interactions
{
public interface IInteraction
{
ulong Type { get; }
ulong Id { get; }
Vector3 Position { get; }
int Dimension { get; }
uint Range { get; }
uint RangeSquared { get; }
/// <summary>
/// On interaction.
/// </summary>
/// <param name="player"></param>
/// <param name="interactionPosition"></param>
/// <param name="interactionDimension"></param>
/// <returns>True if you don't want that other interactions are triggered as well</returns>
bool OnInteraction(IPlayer player, Vector3 interactionPosition, int interactionDimension, object argument);
}
}