forked from FabianTerhorst/coreclr-module
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInteraction.cs
More file actions
39 lines (35 loc) · 1016 Bytes
/
Interaction.cs
File metadata and controls
39 lines (35 loc) · 1016 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
30
31
32
33
34
35
36
37
38
39
using System.Numerics;
using AltV.Net.Elements.Entities;
namespace AltV.Net.Interactions
{
public class Interaction : IInteraction
{
private uint range;
public ulong Type { get; }
public ulong Id { get; }
public Vector3 Position { get; set; }
public int Dimension { get; set; }
public uint Range
{
get => range;
set
{
range = value;
RangeSquared = value * value;
}
}
public uint RangeSquared { get; private set; }
public Interaction(ulong type, ulong id, Vector3 position, int dimension, uint range)
{
Type = type;
Id = id;
Position = position;
Dimension = dimension;
Range = range;
}
public virtual bool OnInteraction(IPlayer player, Vector3 interactionPosition, int interactionDimension, object argument)
{
return false;
}
}
}