Documentation

This commit is contained in:
Simon Lübeß
2023-12-13 14:45:33 +01:00
parent ed756f5847
commit a129156641
17 changed files with 211 additions and 37 deletions
+12 -1
View File
@@ -7,13 +7,24 @@ public struct UUID
{
private ulong _uuid;
/// <summary>
/// Create a new instance of a <see cref="UUID"/> with the given value as ID.
/// </summary>
/// <param name="uuid">The id.</param>
public UUID(ulong uuid)
{
_uuid = uuid;
}
public static UUID Zero = new UUID(0);
/// <summary>
/// A <see cref="UUID"/> with the ID 0.
/// </summary>
public static readonly UUID Zero = new UUID(0);
/// <summary>
/// Creates a new random <see cref="UUID"/>.
/// </summary>
/// <returns>The newly created <see cref="UUID"/></returns>
public static UUID CreateNew()
{
ScriptGlue.UUID_CreateNew(out UUID id);