From 6b97317ca143aed0b37736c3cafe98726c2fc8e1 Mon Sep 17 00:00:00 2001 From: LP Date: Fri, 24 Oct 2025 21:31:49 +0100 Subject: [PATCH 1/2] Updated to latest EcsR3 and MG --- .../EcsR3.MonoGame.Examples.Asteroids.csproj | 8 ++++---- .../Game/Systems/Game/MeteorCollisionDetectionSystem.cs | 2 +- src/EcsR3.MonoGame/EcsR3.MonoGame.csproj | 8 ++++---- src/EcsR3.MonoGame/Wrappers/EcsR3Game.cs | 2 +- src/EcsR3.MonoGame/Wrappers/IEcsR3Game.cs | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/EcsR3.MonoGame.Examples.Asteroids/EcsR3.MonoGame.Examples.Asteroids.csproj b/src/EcsR3.MonoGame.Examples.Asteroids/EcsR3.MonoGame.Examples.Asteroids.csproj index 3cec0d1..5d4d208 100644 --- a/src/EcsR3.MonoGame.Examples.Asteroids/EcsR3.MonoGame.Examples.Asteroids.csproj +++ b/src/EcsR3.MonoGame.Examples.Asteroids/EcsR3.MonoGame.Examples.Asteroids.csproj @@ -26,10 +26,10 @@ - - - - + + + + diff --git a/src/EcsR3.MonoGame.Examples.Asteroids/Game/Systems/Game/MeteorCollisionDetectionSystem.cs b/src/EcsR3.MonoGame.Examples.Asteroids/Game/Systems/Game/MeteorCollisionDetectionSystem.cs index 06c967c..bd28177 100644 --- a/src/EcsR3.MonoGame.Examples.Asteroids/Game/Systems/Game/MeteorCollisionDetectionSystem.cs +++ b/src/EcsR3.MonoGame.Examples.Asteroids/Game/Systems/Game/MeteorCollisionDetectionSystem.cs @@ -60,5 +60,5 @@ public void Process(IEntityComponentAccessor entityComponentAccessor, Entity ent } public void BeforeProcessing() - { ComputedRuntimeColliders.RefreshData(); } + { ComputedRuntimeColliders.ForceRefresh(); } } \ No newline at end of file diff --git a/src/EcsR3.MonoGame/EcsR3.MonoGame.csproj b/src/EcsR3.MonoGame/EcsR3.MonoGame.csproj index a98691a..ce37229 100644 --- a/src/EcsR3.MonoGame/EcsR3.MonoGame.csproj +++ b/src/EcsR3.MonoGame/EcsR3.MonoGame.csproj @@ -13,12 +13,12 @@ - - - + + + - + diff --git a/src/EcsR3.MonoGame/Wrappers/EcsR3Game.cs b/src/EcsR3.MonoGame/Wrappers/EcsR3Game.cs index 496d7d5..ea6333a 100644 --- a/src/EcsR3.MonoGame/Wrappers/EcsR3Game.cs +++ b/src/EcsR3.MonoGame/Wrappers/EcsR3Game.cs @@ -44,7 +44,7 @@ public EcsR3Game() var observableSystemComponent = new ObservableSystemComponent(this); Components.Add(observableSystemComponent); - GameUnloading = Observable.FromEventHandler( + GameUnloading = Observable.FromEventHandler( x => Exiting += x, x => Exiting -= x) .Select(x => Unit.Default); diff --git a/src/EcsR3.MonoGame/Wrappers/IEcsR3Game.cs b/src/EcsR3.MonoGame/Wrappers/IEcsR3Game.cs index 27f927a..c512a23 100644 --- a/src/EcsR3.MonoGame/Wrappers/IEcsR3Game.cs +++ b/src/EcsR3.MonoGame/Wrappers/IEcsR3Game.cs @@ -35,5 +35,5 @@ public interface IEcsR3Game : IGameScheduler event EventHandler Activated; event EventHandler Deactivated; event EventHandler Disposed; - event EventHandler Exiting; + event EventHandler Exiting; } \ No newline at end of file From b89225f0535fdebe45e2a3ce2395785299732443 Mon Sep 17 00:00:00 2001 From: LP Date: Fri, 24 Oct 2025 21:32:13 +0100 Subject: [PATCH 2/2] Bumped version --- .github/workflows/build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 741860a..52923b9 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -2,7 +2,7 @@ name: Build And Test on: [push] env: - BuildVersion: '0.5.${{github.run_number}}' + BuildVersion: '0.6.${{github.run_number}}' SolutionFile: 'src/EcsR3.MonoGame/EcsR3.MonoGame.csproj' jobs: