forked from altmp/coreclr-module
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAlt.Create.cs
65 lines (55 loc) · 5.53 KB
/
Alt.Create.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
using System.Numerics;
using AltV.Net.Client.Elements.Entities;
using AltV.Net.Client.Elements.Interfaces;
using AltV.Net.Data;
using AltV.Net.Elements.Entities;
using AltV.Net.Enums;
using AltV.Net.Shared.Enums;
namespace AltV.Net.Client
{
public partial class Alt
{
public static IBlip CreatePointBlip(Position position) => Core.CreatePointBlip(position);
public static IBlip CreateRadiusBlip(Position position, float radius) => Core.CreateRadiusBlip(position, radius);
public static IBlip CreateAreaBlip(Position position, int width, int height) => Core.CreateAreaBlip(position, width, height);
public static IWebView CreateWebView(string url, bool isOverlay = false, Vector2? pos = null, Vector2? size = null) => Core.CreateWebView(url, isOverlay, pos, size);
public static IWebView CreateWebView(string url, uint propHash, string targetTexture) => Core.CreateWebView(url, propHash, targetTexture);
public static IRmlDocument CreateRmlDocument(string url) => Core.CreateRmlDocument(url);
public static IAudio CreateAudio(string source, float volume, bool isRadio = false, bool clearCache = true, string basePath = "") => Core.CreateAudio(source, volume, isRadio, clearCache, basePath);
public static IAudioFilter CreateAudioFilter(uint hash) => Core.CreateAudioFilter(hash);
public static IAudioOutputFrontend CreateAudioOutputFrontend(uint categoryHash) => Core.CreateAudioOutputFrontend(categoryHash);
public static IAudioOutputWorld CreateAudioOutputWorld(uint categoryHash, Position pos) => Core.CreateAudioOutputWorld(categoryHash, pos);
public static IAudioOutputAttached CreateAudioOutputAttached(uint categoryHash, IWorldObject worldObject) => Core.CreateAudioOutputAttached(categoryHash, worldObject);
public static ILocalObject CreateLocalObject(uint modelHash, Position position, Rotation rotation, bool noOffset = false, bool dynamic = false, bool useStreaming = false, uint streamingDistance = 0) => Core.CreateLocalObject(modelHash, position, rotation, noOffset, dynamic, useStreaming, streamingDistance);
public static IHttpClient CreateHttpClient() => Core.CreateHttpClient();
public static IWebSocketClient CreateWebSocketClient(string url) => Core.CreateWebSocketClient(url);
public static ICheckpoint CreateCheckpoint(CheckpointType type, Vector3 pos, Vector3 nextPos, float radius,
float height, Rgba color, Rgba iconColor, uint streamingDistance) => Core.CreateCheckpoint(type, pos, nextPos, radius, height, color, iconColor, streamingDistance);
public static IVirtualEntityGroup CreateVirtualEntityGroup(uint streamingDistance) => Core.CreateVirtualEntityGroup(streamingDistance);
public static IVirtualEntity CreateVirtualEntity(IVirtualEntityGroup group, Position position,
uint streamingDistance, Dictionary<string, object> dataDict) => Core.CreateVirtualEntity(group, position, streamingDistance, dataDict);
public static ILocalPed CreateLocalPed(uint modelHash, int dimension, Position position, Rotation rotation,
bool useStreaming, uint streamingDistance) =>
Core.CreateLocalPed(modelHash, dimension, position, rotation, useStreaming, streamingDistance);
public static ILocalPed CreateLocalPed(PedModel modelHash, int dimension, Position position, Rotation rotation,
bool useStreaming, uint streamingDistance) =>
Core.CreateLocalPed((uint)modelHash, dimension, position, rotation, useStreaming, streamingDistance);
public static ILocalVehicle CreateLocalVehicle(uint modelHash, int dimension, Position position, Rotation rotation, bool useStreaming, uint streamingDistance) =>
Core.CreateLocalVehicle(modelHash, dimension, position, rotation, useStreaming, streamingDistance);
public static ILocalVehicle CreateLocalVehicle(VehicleModel modelHash, int dimension, Position position, Rotation rotation, bool useStreaming, uint streamingDistance) =>
Core.CreateLocalVehicle((uint)modelHash, dimension, position, rotation, useStreaming, streamingDistance);
public static IMarker CreateMarker(MarkerType type, Position pos, Rgba color, bool useStreaming,
uint streamingDistance) => Core.CreateMarker(type, pos, color, useStreaming, streamingDistance);
public static ITextLabel CreateTextLabel(string name, string fontName, float fontSize, float scale,
Position pos,
Rotation rot, Rgba color, float outlineWidth, Rgba outlineColor, bool useStreaming,
uint streamingDistance) => Core.CreateTextLabel(name, fontName, fontSize, scale, pos,
rot, color, outlineWidth, outlineColor, useStreaming, streamingDistance);
public static IColShape CreateColShapeCircle(Position position, float radius) => Core.CreateColShapeCircle(position, radius);
public static IColShape CreateColShapeCube(Position pos1, Position pos2) => Core.CreateColShapeCube(pos1, pos2);
public static IColShape CreateColShapeCylinder(Position position, float radius, float height) => Core.CreateColShapeCylinder(position, radius, height);
public static IColShape CreateColShapePolygon(float minZ, float maxZ, Vector2[] points) => Core.CreateColShapePolygon(minZ, maxZ, points);
public static IColShape CreateColShapeRectangle(float x1, float y1, float x2, float y2, float z) => Core.CreateColShapeRectangle(x1, y1, x2, y2, z);
public static IColShape CreateColShapeSphere(Vector3 position, float radius) => Core.CreateColShapeSphere(position, radius);
}
}