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
164 lines (163 loc) · 8.35 KB
/
ICore.cs
File metadata and controls
164 lines (163 loc) · 8.35 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
using System.Numerics;
using System.Runtime.CompilerServices;
using AltV.Net.Client.Elements.Data;
using AltV.Net.Client.Elements.Interfaces;
using AltV.Net.Client.Elements.Pools;
using AltV.Net.Data;
using AltV.Net.Elements.Args;
using AltV.Net.Elements.Entities;
using AltV.Net.Shared;
using WeaponData = AltV.Net.Client.Elements.Data.WeaponData;
namespace AltV.Net.Client
{
public interface ICore : ISharedCore
{
new IPlayerPool PlayerPool { get; }
new IEntityPool<IVehicle> VehiclePool { get; }
IBaseEntityPool BaseEntityPool { get; }
IBaseBaseObjectPool BaseBaseObjectPool { get; }
IBaseObjectPool<IWebView> WebViewPool { get; }
new IBaseObjectPool<IBlip> BlipPool { get; }
new IBaseObjectPool<ICheckpoint> CheckpointPool { get; }
IBaseObjectPool<IAudio> AudioPool { get; }
IBaseObjectPool<IHttpClient> HttpClientPool { get; }
IBaseObjectPool<IWebSocketClient> WebSocketClientPool { get; }
IBaseObjectPool<IRmlDocument> RmlDocumentPool { get; }
IBaseObjectPool<IRmlElement> RmlElementPool { get; }
LocalStorage LocalStorage { get; }
new INativeResource Resource { get; }
INatives Natives { get; }
Voice Voice { get; }
bool MinimapIsRectangle { set; }
ushort Fps { get; }
ushort Ping { get; }
uint TotalPacketsLost { get; }
ulong TotalPacketsSent { get; }
Vector2 ScreenResolution { get; }
string LicenseHash { get; }
string Locale { get; }
string ServerIp { get; }
ushort ServerPort { get; }
bool IsGameFocused { get; }
bool IsInStreamerMode { get; }
bool IsMenuOpened { get; }
bool IsConsoleOpen { get; }
bool CamFrozen { get; set; }
Vector3 CamPos { get; }
bool GameControlsEnabled { get; set; }
bool RmlControlsEnabled { get; set; }
bool VoiceControlsEnabled { get; set; }
int MsPerGameMinute { get; set; }
INativeResourcePool NativeResourcePool { get; }
ITimerPool TimerPool { get; }
IBlip CreatePointBlip(Position position);
IBlip CreateRadiusBlip(Position position, float radius);
IBlip CreateAreaBlip(Position position, int width, int height);
IntPtr CreateWebViewPtr(string url, bool isOverlay = false, Vector2? pos = null, Vector2? size = null);
IWebView CreateWebView(string url, bool isOverlay = false, Vector2? pos = null, Vector2? size = null);
IntPtr CreateWebViewPtr(string url, uint propHash, string targetTexture);
IWebView CreateWebView(string url, uint propHash, string targetTexture);
IntPtr CreatePointBlipPtr(Position position);
IntPtr CreateRadiusBlipPtr(Position position, float radius);
IntPtr CreateAreaBlipPtr(Position position, int width, int height);
new IEntity GetEntityById(ushort id);
void ShowCursor(bool state);
bool IsCursorVisible { get; }
Discord Discord { get; }
FocusData FocusData { get; }
void TriggerServerEvent(string eventName, params object[] args);
IntPtr CreateRmlDocumentPtr(string url);
IRmlDocument CreateRmlDocument(string url);
Vector2 WorldToScreen(Vector3 position);
string[] MarshalStringArrayPtrAndFree(IntPtr ptr, uint size);
DiscordUser? GetDiscordUser();
void LoadRmlFont(string path, string name, bool italic = false, bool bold = false);
HandlingData? GetHandlingByModelHash(uint modelHash);
Vector3 ScreenToWorld(Vector2 position);
void AddGxtText(uint key, string value);
string GetGxtText(uint key);
void RemoveGxtText(uint key);
bool BeginScaleformMovieMethodMinimap(string methodName);
void SetMinimapComponentPosition(string name, char alignX, char alignY, float posX, float posY, float sizeX, float sizeY);
void CopyToClipboard(string content);
PermissionState GetPermissionState(Permission permission);
bool IsTextureExistInArchetype(uint modelHash, string targetTextureName);
bool IsPointOnScreen(Vector3 position);
void LoadModel(uint modelHash);
void LoadModelAsync(uint modelHash);
bool LoadYtyp(string ytypName);
bool UnloadYtyp(string ytypName);
void RequestIpl(string iplName);
void RemoveIpl(string iplName);
bool IsKeyDown(Key key);
bool IsKeyToggled(Key key);
bool DoesConfigFlagExist(string flagName);
bool GetConfigFlag(string flagName);
void SetConfigFlag(string flagName, bool value);
Vector2 GetCursorPos(bool normalized);
void SetCursorPos(Vector2 pos, bool normalized);
string GetStatType(string stat);
void ResetStat(string stat);
void GetStat(string stat, out int value);
void GetStat(string stat, out long value);
void GetStat(string stat, out float value);
void GetStat(string stat, out bool value);
void GetStat(string stat, out string value);
void GetStat(string stat, out byte value);
void GetStat(string stat, out ushort value);
void GetStat(string stat, out uint value);
void GetStat(string stat, out ulong value);
void SetStat(string stat, int value);
void SetStat(string stat, long value);
void SetStat(string stat, float value);
void SetStat(string stat, bool value);
void SetStat(string stat, string value);
void SetStat(string stat, byte value);
void SetStat(string stat, ushort value);
void SetStat(string stat, uint value);
void SetStat(string stat, ulong value);
void ClearPedProp(int scriptId, byte component);
void SetPedDlcProp(int scriptId, uint dlc, byte component, byte drawable, byte texture);
void SetPedDlcClothes(int scriptId, uint dlc, byte component, byte drawable, byte texture, byte palette);
void SetRotationVelocity(int scriptId, Rotation velocity);
void SetWatermarkPosition(WatermarkPosition position);
string StringToSha256(string value);
void SetWeatherCycle(byte[] weathers, byte[] multipliers);
void SetWeatherSyncActive(bool state);
string GetHeadshotBase64(byte id);
Task<string> TakeScreenshot();
Task<string> TakeScreenshotGameOnly();
INativeResource GetResource(string name);
bool HasResource(string name);
INativeResource[] GetAllResources();
uint SetTimeout(Action action, uint duration, [CallerFilePath] string filePath = "", [CallerLineNumber] int lineNumber = 0);
uint SetInterval(Action action, uint duration, [CallerFilePath] string filePath = "", [CallerLineNumber] int lineNumber = 0);
uint NextTick(Action action, [CallerFilePath] string filePath = "", [CallerLineNumber] int lineNumber = 0);
uint EveryTick(Action action, [CallerFilePath] string filePath = "", [CallerLineNumber] int lineNumber = 0);
void ClearTimer(uint id);
IntPtr CreateCheckpointPtr(CheckpointType type, Vector3 pos, Vector3 nextPos, float radius, float height, Rgba color);
ICheckpoint CreateCheckpoint(CheckpointType type, Vector3 pos, Vector3 nextPos, float radius, float height, Rgba color);
IntPtr CreateAudioPtr(string source, float volume, uint category, bool frontend);
IAudio CreateAudio(string source, float volume, uint category, bool frontend);
IntPtr CreateObjectPtr(uint modelHash, Position position, Rotation rotation, bool noOffset = false,
bool dynamic = false);
IObject CreateObject(uint modelHash, Position position, Rotation rotation, bool noOffset = false,
bool dynamic = false);
MapZoomData GetMapZoomData(uint id);
MapZoomData GetMapZoomData(string alias);
void ResetAllMapZoomData();
void LoadDefaultIpls();
IntPtr CreateHttpClientPtr();
IHttpClient CreateHttpClient();
IntPtr CreateWebSocketClientPtr(string url);
IWebSocketClient CreateWebSocketClient(string url);
bool HasLocalMetaData(string key);
void GetLocalMetaData<T>(string key, out MValueConst result);
bool FileExists(string path);
string FileRead(string path);
byte[] FileReadBinary(string path);
WeaponData GetWeaponDataByWeaponHash(uint weaponHash);
IReadOnlyCollection<IObject> GetAllObjects();
IReadOnlyCollection<IObject> GetAllWorldObjects();
}
}