Append allocation and generics fixes

This commit is contained in:
Simon Lübeß
2025-01-31 13:17:12 +01:00
parent 577cca5886
commit 2f0505241f
6 changed files with 15 additions and 20 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ using internal GlitchyEngine.Scripting;
class EngineClasses
{
// TODO: Not all of there are actually ScriptClasses (actually none of them are...)
// TODO: Not all of these are actually ScriptClasses (actually none of them are...)
private ScriptClass s_ComponentRoot ~ _?.ReleaseRef();
private ScriptClass s_EntityRoot ~ _?.ReleaseRef();
@@ -90,7 +90,7 @@ static class ScriptEngine
private static Scene s_Context ~ _?.ReleaseRef();
private static append EngineClasses _classes = .();
private static EngineClasses _classes = new .() ~ delete _;
public static EngineClasses Classes => _classes;