BREAKING CHANGE: renamed namespace & assembly names

This commit is contained in:
2025-08-05 19:41:35 +03:00
parent 1644a751bb
commit 3d183b21cd
259 changed files with 411 additions and 405 deletions

View File

@@ -1,6 +1,6 @@
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
/// <summary>
/// Represents a <see cref="ICollider2D"/> with the shape of a <see cref="Circle"/>.

View File

@@ -1,6 +1,6 @@
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
/// <summary>
/// Represents a 2D collider.

View File

@@ -1,4 +1,4 @@
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
/// <summary>
/// Represents a 2D collision detector.

View File

@@ -1,4 +1,4 @@
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
/// <summary>
/// Represents a 2D collision resolver.

View File

@@ -1,8 +1,8 @@
using System.Collections.Generic;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
/// <summary>
/// Represents a 2D physics engine.

View File

@@ -1,4 +1,4 @@
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
/// <summary>
/// Represents a 2D physics object's responsive attributes.

View File

@@ -1,6 +1,6 @@
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
/// <summary>
/// Represents a 2D raycast resolver.

View File

@@ -1,6 +1,6 @@
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
/// <summary>
/// Represents a 2D rigid body in the engine.

View File

@@ -1,6 +1,6 @@
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
/// <summary>
/// Represents a <see cref="ICollider2D"/> with a custom <see cref="Shape2D"/>.

View File

@@ -1,6 +1,6 @@
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
public readonly struct RaycastResult(Ray2D ray, ICollider2D collider2D, Vector2D position, Vector2D normal)
{

View File

@@ -1,6 +1,6 @@
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
/// <summary>
/// Represents a <see cref="IBehaviour"/> that listens to physics simulation update phase.

View File

@@ -1,6 +1,6 @@
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
/// <summary>
/// Represents a <see cref="IBehaviour"/> that listens to physics simulation update phase.

View File

@@ -1,6 +1,6 @@
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
/// <summary>
/// Represents a <see cref="IBehaviour"/> that listens to the phase after the physics simulation phase.

View File

@@ -1,6 +1,6 @@
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
/// <summary>
/// Represents a <see cref="IBehaviour"/> that listens to the phase before the physics simulation phase.

View File

@@ -1,6 +1,6 @@
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
public abstract class Collider2DBase : Behaviour2D, ICollider2D
{

View File

@@ -1,6 +1,6 @@
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
public class Collider2DCircle : Collider2DBase, ICircleCollider2D
{

View File

@@ -1,6 +1,6 @@
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
public class Collider2DShape : Collider2DBase, IShapeCollider2D
{

View File

@@ -1,6 +1,6 @@
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
[System.Diagnostics.DebuggerDisplay("Normal: {Normal.ToString(), nq}, Penetration: {Penetration}")]
public readonly struct CollisionDetectionInformation

View File

@@ -1,7 +1,7 @@
using Syntriax.Engine.Core;
using Syntriax.Engine.Physics2D;
using Engine.Core;
using Engine.Physics2D;
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
public class CollisionDetector2D : ICollisionDetector2D
{

View File

@@ -1,6 +1,6 @@
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
public class CollisionResolver2D : ICollisionResolver2D
{

View File

@@ -4,7 +4,8 @@
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>Syntriax.Engine.Physics2D</RootNamespace>
<RootNamespace>Engine.Physics2D</RootNamespace>
<AssemblyName>Engine.Physics2D</AssemblyName>
</PropertyGroup>
<ItemGroup>

View File

@@ -1,6 +1,6 @@
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
public static class Physics2D
{

View File

@@ -1,9 +1,9 @@
using System.Collections;
using System.Collections.Generic;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
public class PhysicsCoroutineManager : Behaviour, IPhysicsUpdate
{

View File

@@ -1,8 +1,8 @@
using System.Collections.Generic;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
public class PhysicsEngine2D : Behaviour, IPreUpdate, IPhysicsEngine2D
{

View File

@@ -1,8 +1,8 @@
using System.Collections.Generic;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
public class PhysicsEngine2DStandalone : IPhysicsEngine2D
{

View File

@@ -1,4 +1,4 @@
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
public readonly struct PhysicsMaterial2D(float Friction, float Restitution) : IPhysicsMaterial2D
{

View File

@@ -1,4 +1,4 @@
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
public readonly struct PhysicsMaterial2DDefault : IPhysicsMaterial2D
{

View File

@@ -1,4 +1,4 @@
namespace Syntriax.Engine.Physics2D
namespace Engine.Physics2D
{
// This is pretty much so the assembly gets loaded automatically because
// the builds include the assembly but sometimes doesn't link load it at startup.

View File

@@ -1,8 +1,8 @@
using System.Collections.Generic;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
public class RaycastResolver2D : IRaycastResolver2D
{

View File

@@ -1,6 +1,6 @@
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Physics2D;
namespace Engine.Physics2D;
public class RigidBody2D : Behaviour2D, IRigidBody2D
{