Ensure generating unique Entity IDs

This commit is contained in:
Simon Lübeß
2024-03-17 20:25:38 +01:00
parent 84204aed46
commit a2c7bf7d06
2 changed files with 15 additions and 4 deletions
@@ -24,10 +24,9 @@ namespace GlitchyEngine.World
{
public readonly UUID ID;
/// Create a new IDComponent with a random UUID.
public this()
{
ID = UUID.Create();
ID = .Zero;
}
public this(UUID id)