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
+4 -1
View File
@@ -1,11 +1,14 @@
namespace GlitchyEngine.Core;
/// <summary>
/// The base class for all classes that represent something that belongs to the engine (Entities, Components and Assets).
/// </summary>
public abstract class EngineObject
{
protected internal UUID _uuid;
/// <summary>
/// UUID used for identifying the object in the engine.
/// UUID (Universally Unique Identifier) used for identifying the object in the engine.
/// </summary>
public UUID UUID => _uuid;
+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);