From d13233ce77d217efd9e4294ddfbcf000f19b4039 Mon Sep 17 00:00:00 2001 From: Syntriax Date: Tue, 15 Apr 2025 23:42:06 +0300 Subject: [PATCH] chore: updated engine --- Engine | 2 +- Platforms/Desktop/Program.cs | 2 +- Shared/Abstract/IDisplayableShape.cs | 2 +- Shared/Abstract/IDisplayableSprite.cs | 2 +- Shared/Behaviours/BallBehaviour.cs | 1 - Shared/Behaviours/CircleBehaviour.cs | 1 - Shared/Behaviours/MonoGameCamera2DBehaviour.cs | 1 - Shared/Behaviours/MovementBallBehaviour.cs | 3 --- Shared/Behaviours/ShapeAABBBehaviour.cs | 3 +-- Shared/Behaviours/ShapeBehaviour.cs | 1 - Shared/Behaviours/TextBehaviour.cs | 1 - Shared/Behaviours/WallScoreBehaviour.cs | 2 +- Shared/GamePong.cs | 1 - 13 files changed, 6 insertions(+), 16 deletions(-) diff --git a/Engine b/Engine index 5c1c025..6e5b805 160000 --- a/Engine +++ b/Engine @@ -1 +1 @@ -Subproject commit 5c1c025fe3fa6330ff7a9fb4426ad864dca994f7 +Subproject commit 6e5b805803ce60f9ad904180406e57de9e9f9c4e diff --git a/Platforms/Desktop/Program.cs b/Platforms/Desktop/Program.cs index a89d9d4..0afedc2 100644 --- a/Platforms/Desktop/Program.cs +++ b/Platforms/Desktop/Program.cs @@ -1,7 +1,7 @@ using Pong.Platforms.Desktop; using Syntriax.Engine.Core; -Syntriax.Engine.Core.Abstract.IUniverseObject universeObject = Syntriax.Engine.Core.Factory.UniverseObjectFactory.Instantiate().SetUniverseObject("Desktop HO"); +Syntriax.Engine.Core.IUniverseObject universeObject = Syntriax.Engine.Core.Factory.UniverseObjectFactory.Instantiate().SetUniverseObject("Desktop HO"); universeObject.BehaviourController.AddBehaviour(); using var game = new Pong.GamePong(universeObject); game.Run(); diff --git a/Shared/Abstract/IDisplayableShape.cs b/Shared/Abstract/IDisplayableShape.cs index a75374a..4a49ad4 100644 --- a/Shared/Abstract/IDisplayableShape.cs +++ b/Shared/Abstract/IDisplayableShape.cs @@ -1,6 +1,6 @@ using Apos.Shapes; -namespace Syntriax.Engine.Core.Abstract; +namespace Syntriax.Engine.Core; public interface IDisplayableShape { diff --git a/Shared/Abstract/IDisplayableSprite.cs b/Shared/Abstract/IDisplayableSprite.cs index 076c7b1..93ef048 100644 --- a/Shared/Abstract/IDisplayableSprite.cs +++ b/Shared/Abstract/IDisplayableSprite.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Graphics; -namespace Syntriax.Engine.Core.Abstract; +namespace Syntriax.Engine.Core; public interface IDisplayableSprite { diff --git a/Shared/Behaviours/BallBehaviour.cs b/Shared/Behaviours/BallBehaviour.cs index c195a93..8758948 100644 --- a/Shared/Behaviours/BallBehaviour.cs +++ b/Shared/Behaviours/BallBehaviour.cs @@ -2,7 +2,6 @@ using System; using Syntriax.Engine.Core; using Syntriax.Engine.Physics2D; -using Syntriax.Engine.Physics2D.Abstract; namespace Pong.Behaviours; diff --git a/Shared/Behaviours/CircleBehaviour.cs b/Shared/Behaviours/CircleBehaviour.cs index bd03642..9c6d76e 100644 --- a/Shared/Behaviours/CircleBehaviour.cs +++ b/Shared/Behaviours/CircleBehaviour.cs @@ -3,7 +3,6 @@ using Microsoft.Xna.Framework; using Apos.Shapes; using Syntriax.Engine.Core; -using Syntriax.Engine.Core.Abstract; namespace Pong.Behaviours; diff --git a/Shared/Behaviours/MonoGameCamera2DBehaviour.cs b/Shared/Behaviours/MonoGameCamera2DBehaviour.cs index 268acbe..12cb73a 100644 --- a/Shared/Behaviours/MonoGameCamera2DBehaviour.cs +++ b/Shared/Behaviours/MonoGameCamera2DBehaviour.cs @@ -2,7 +2,6 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Syntriax.Engine.Core; -using Syntriax.Engine.Core.Abstract; namespace Pong.Behaviours; diff --git a/Shared/Behaviours/MovementBallBehaviour.cs b/Shared/Behaviours/MovementBallBehaviour.cs index 3bb827e..d3876fa 100644 --- a/Shared/Behaviours/MovementBallBehaviour.cs +++ b/Shared/Behaviours/MovementBallBehaviour.cs @@ -1,8 +1,5 @@ -using System; - using Syntriax.Engine.Core; using Syntriax.Engine.Physics2D; -using Syntriax.Engine.Physics2D.Abstract; namespace Pong.Behaviours; diff --git a/Shared/Behaviours/ShapeAABBBehaviour.cs b/Shared/Behaviours/ShapeAABBBehaviour.cs index ece1e9f..47d196b 100644 --- a/Shared/Behaviours/ShapeAABBBehaviour.cs +++ b/Shared/Behaviours/ShapeAABBBehaviour.cs @@ -3,8 +3,7 @@ using Microsoft.Xna.Framework; using Apos.Shapes; using Syntriax.Engine.Core; -using Syntriax.Engine.Core.Abstract; -using Syntriax.Engine.Physics2D.Abstract; +using Syntriax.Engine.Physics2D; using Syntriax.Engine.Systems.Input; namespace Pong.Behaviours; diff --git a/Shared/Behaviours/ShapeBehaviour.cs b/Shared/Behaviours/ShapeBehaviour.cs index 12d0e88..35bb2a4 100644 --- a/Shared/Behaviours/ShapeBehaviour.cs +++ b/Shared/Behaviours/ShapeBehaviour.cs @@ -3,7 +3,6 @@ using Microsoft.Xna.Framework; using Apos.Shapes; using Syntriax.Engine.Core; -using Syntriax.Engine.Core.Abstract; namespace Pong.Behaviours; diff --git a/Shared/Behaviours/TextBehaviour.cs b/Shared/Behaviours/TextBehaviour.cs index 833cb16..d7d243f 100644 --- a/Shared/Behaviours/TextBehaviour.cs +++ b/Shared/Behaviours/TextBehaviour.cs @@ -2,7 +2,6 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Syntriax.Engine.Core; -using Syntriax.Engine.Core.Abstract; namespace Pong.Behaviours; diff --git a/Shared/Behaviours/WallScoreBehaviour.cs b/Shared/Behaviours/WallScoreBehaviour.cs index c1f8ca5..c8f6ba6 100644 --- a/Shared/Behaviours/WallScoreBehaviour.cs +++ b/Shared/Behaviours/WallScoreBehaviour.cs @@ -1,7 +1,7 @@ using System; using Syntriax.Engine.Core; -using Syntriax.Engine.Physics2D.Abstract; +using Syntriax.Engine.Physics2D; namespace Pong.Behaviours; diff --git a/Shared/GamePong.cs b/Shared/GamePong.cs index ef6bfc9..44d4516 100644 --- a/Shared/GamePong.cs +++ b/Shared/GamePong.cs @@ -7,7 +7,6 @@ using Pong.Behaviours; using Apos.Shapes; using Syntriax.Engine.Core; -using Syntriax.Engine.Core.Abstract; using Syntriax.Engine.Physics2D; namespace Pong;