forked from FabianTerhorst/coreclr-module
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAlt.Checkpoint.cs
34 lines (32 loc) · 1.66 KB
/
Alt.Checkpoint.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
using AltV.Net.Data;
using AltV.Net.Elements.Entities;
namespace AltV.Net
{
public partial class Alt
{
/// <summary>
/// Creates a checkpoint for a all players, with given type, position, radius, height and color.
/// </summary>
/// <param name="type">The type of the checkpoint.</param>
/// <param name="pos">The position of the checkpoint.</param>
/// <param name="radius">The size of the checkpoint.</param>
/// <param name="height">The height of the checkpoint.</param>
/// <param name="color">The color of the checkpoint.</param>
/// <returns>The created Checkpoint.</returns>
public static ICheckpoint CreateCheckpoint(byte type, Position pos, float radius, float height,
Rgba color, uint streamingDistance) =>
Core.CreateCheckpoint(type, pos, radius, height, color, streamingDistance);
/// <summary>
/// Creates a checkpoint for a all players, with given type, position, radius, height and color.
/// </summary>
/// <param name="type">The type of the checkpoint.</param>
/// <param name="pos">The position of the checkpoint.</param>
/// <param name="radius">The size of the checkpoint.</param>
/// <param name="height">The height of the checkpoint.</param>
/// <param name="color">The color of the checkpoint.</param>
/// <returns></returns>
public static ICheckpoint CreateCheckpoint(CheckpointType type, Position pos, float radius,
float height, Rgba color, uint streamingDistance) =>
Core.CreateCheckpoint((byte) type, pos, radius, height, color, streamingDistance);
}
}