forked from FabianTerhorst/coreclr-module
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathICore.cs
More file actions
141 lines (85 loc) · 4.69 KB
/
ICore.cs
File metadata and controls
141 lines (85 loc) · 4.69 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
using System;
using System.Collections.Generic;
using System.Numerics;
using AltV.Net.CApi;
using AltV.Net.Data;
using AltV.Net.Elements.Args;
using AltV.Net.Elements.Entities;
using AltV.Net.Native;
using AltV.Net.Shared;
using AltV.Net.Shared.Elements.Data;
namespace AltV.Net
{
public interface ICore : ISharedCore
{
new IBaseBaseObjectPool BaseBaseObjectPool { get; }
new IEntityPool<IPlayer> PlayerPool { get; }
new IEntityPool<IObject> ObjectPool { get; }
new IEntityPool<IVehicle> VehiclePool { get; }
IBaseObjectPool<IBlip> BlipPool { get; }
IBaseObjectPool<ICheckpoint> CheckpointPool { get; }
IBaseObjectPool<IVoiceChannel> VoiceChannelPool { get; }
IBaseObjectPool<IColShape> ColShapePool { get; }
INativeResourcePool NativeResourcePool { get; }
int NetTime { get; }
string RootDirectory { get; }
INativeResource Resource { get; }
IBaseEntityPool BaseEntityPool { get; }
ulong HashPassword(string password);
void SetPassword(string password);
public VehicleModelInfo GetVehicleModelInfo(uint hash);
public PedModelInfo? GetPedModelInfo(uint hash);
void StopServer();
void TriggerClientEvent(IPlayer player, IntPtr eventNamePtr, MValueConst[] args);
void TriggerClientEvent(IPlayer player, string eventName, MValueConst[] args);
void TriggerClientEvent(IPlayer player, IntPtr eventNamePtr, IntPtr[] args);
void TriggerClientEvent(IPlayer player, string eventName, IntPtr[] args);
void TriggerClientEvent(IPlayer player, IntPtr eventNamePtr, params object[] args);
void TriggerClientEvent(IPlayer player, string eventName, params object[] args);
void TriggerClientEventForAll(IntPtr eventNamePtr, MValueConst[] args);
void TriggerClientEventForAll(string eventName, MValueConst[] args);
void TriggerClientEventForAll(IntPtr eventNamePtr, IntPtr[] args);
void TriggerClientEventForAll(string eventName, IntPtr[] args);
void TriggerClientEventForAll(IntPtr eventNamePtr, params object[] args);
void TriggerClientEventForAll(string eventName, params object[] args);
void TriggerClientEventForSome(IPlayer[] clients, IntPtr eventNamePtr, MValueConst[] args);
void TriggerClientEventForSome(IPlayer[] clients, string eventName, MValueConst[] args);
void TriggerClientEventForSome(IPlayer[] clients, IntPtr eventNamePtr, IntPtr[] args);
void TriggerClientEventForSome(IPlayer[] clients, string eventName, IntPtr[] args);
void TriggerClientEventForSome(IPlayer[] clients, IntPtr eventNamePtr, params object[] args);
void TriggerClientEventForSome(IPlayer[] clients, string eventName, params object[] args);
IVehicle CreateVehicle(uint model, Position pos, Rotation rotation);
ICheckpoint CreateCheckpoint(byte type, Position pos, float radius, float height, Rgba color);
IBlip CreateBlip(IPlayer player, byte type, Position pos);
IBlip CreateBlip(IPlayer player, byte type, IEntity entityAttach);
IVoiceChannel CreateVoiceChannel(bool spatial, float maxDistance);
IColShape CreateColShapeCylinder(Position pos, float radius, float height);
IColShape CreateColShapeSphere(Position pos, float radius);
IColShape CreateColShapeCircle(Position pos, float radius);
IColShape CreateColShapeCube(Position pos, Position pos2);
IColShape CreateColShapeRectangle(float x1, float y1, float x2, float y2, float z);
IColShape CreateColShapePolygon(float minZ, float maxZ, Vector2[] points);
void RemoveBlip(IBlip blip);
void RemoveCheckpoint(ICheckpoint checkpoint);
void RemoveVehicle(IVehicle vehicle);
void RemoveVoiceChannel(IVoiceChannel channel);
void RemoveColShape(IColShape colShape);
INativeResource GetResource(string name);
INativeResource GetResource(IntPtr resourcePointer);
// Only for advanced use cases
IntPtr CreateVehicleEntity(out ushort id, uint model, Position pos, Rotation rotation);
IPlayer[] GetPlayers();
IVehicle[] GetVehicles();
IEntity GetEntityById(ushort id);
void StartResource(string name);
void StopResource(string name);
void RestartResource(string name);
void SetSyncedMetaData(string key, object value);
void DeleteSyncedMetaData(string key);
bool FileExists(string path);
string FileRead(string path);
byte[] FileReadBinary(string path);
IConfig GetServerConfig();
void SetWorldProfiler(bool state);
}
}