This commit is contained in:
Simon Lübeß
2022-11-16 13:09:26 +01:00
parent a42544f171
commit 0155a38ae6
8 changed files with 367 additions and 21 deletions
+3
View File
@@ -1,5 +1,6 @@
using System;
using System.Collections;
using GlitchyEngine.Core;
using internal GlitchyEngine.World;
@@ -63,6 +64,8 @@ namespace GlitchyEngine.World
}
}
public UUID UUID => GetComponent<IDComponent>().ID;
public TransformComponent* Transform => GetComponent<TransformComponent>();
public T* AddComponent<T>(T value = T()) where T: struct, new