From a60c480b250b14a784957217ed0b3fe9a0ad64e9 Mon Sep 17 00:00:00 2001
From: PowerfulBacon <26465327+PowerfulBacon@users.noreply.github.com>
Date: Tue, 29 Aug 2023 20:31:14 +0100
Subject: [PATCH] Targets an older C# version (#5)
Other programs such as unity do not support modern versions of C#. We need this downgrade so that we can use it inside of Unity.
---
CorgECS.Tests/CorgECS.Tests.csproj | 4 ++++
CorgECS.csproj | 4 ++--
Worlds/World.cs | 2 +-
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/CorgECS.Tests/CorgECS.Tests.csproj b/CorgECS.Tests/CorgECS.Tests.csproj
index a58fb91..258f783 100644
--- a/CorgECS.Tests/CorgECS.Tests.csproj
+++ b/CorgECS.Tests/CorgECS.Tests.csproj
@@ -17,4 +17,8 @@
+
+
+
+
diff --git a/CorgECS.csproj b/CorgECS.csproj
index 6c6f1b7..314aa8c 100644
--- a/CorgECS.csproj
+++ b/CorgECS.csproj
@@ -1,8 +1,8 @@
- net7.0
- enable
+ netcoreapp3.1
+ disable
enable
AnyCPU;ARM32;ARM64
PowerfulBacon
diff --git a/Worlds/World.cs b/Worlds/World.cs
index 2c59e4f..5ec2ee4 100644
--- a/Worlds/World.cs
+++ b/Worlds/World.cs
@@ -38,7 +38,7 @@ public T GetEntitySystem()
}
else
{
- T createdSystem = new();
+ T createdSystem = new T();
createdSystem.JoinWorld(this);
EntitySystems.Add(typeof(T), createdSystem);
return createdSystem;