-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy pathIClient.cs
44 lines (29 loc) · 1.25 KB
/
IClient.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
38
39
40
41
42
43
44
using System.Collections.Generic;
using System.Numerics;
namespace AltV.Net.EntitySync
{
public interface IClient
{
string Token { get; }
Vector3 Position { get; set; }
int Dimension { get; set; }
ClientDataSnapshot Snapshot { get; }
bool Exists { get; }
public bool TryGetDimensionAndPosition(out int dimension, ref Vector3 position);
public void SetPositionOverride(Vector3 newPositionOverride);
public void ResetPositionOverride();
/// <summary>
/// Tries to add a entity to the list of entities that this client got created.
/// </summary>
/// <param name="threadIndex"></param>
/// <param name="entity"></param>
/// <returns></returns>
public bool TryAddEntity(ulong threadIndex, IEntity entity);
void RemoveEntity(ulong threadIndex, IEntity entity);
void RemoveEntityFully(ulong threadIndex, IEntity entity);
void AddCheck(ulong threadIndex, IEntity entity);
void RemoveCheck(ulong threadIndex, IEntity entity);
IDictionary<IEntity, bool> GetLastCheckedEntities(ulong threadIndex);
Dictionary<IEntity, bool> GetEntities(ulong threadIndex);
}
}