BREAKING CHANGE: renamed namespace & assembly names
This commit is contained in:
@@ -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"/>.
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using Syntriax.Engine.Core;
|
||||
using Engine.Core;
|
||||
|
||||
namespace Syntriax.Engine.Physics2D;
|
||||
namespace Engine.Physics2D;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a 2D collider.
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace Syntriax.Engine.Physics2D;
|
||||
namespace Engine.Physics2D;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a 2D collision detector.
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace Syntriax.Engine.Physics2D;
|
||||
namespace Engine.Physics2D;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a 2D collision resolver.
|
||||
|
@@ -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.
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace Syntriax.Engine.Physics2D;
|
||||
namespace Engine.Physics2D;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a 2D physics object's responsive attributes.
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using Syntriax.Engine.Core;
|
||||
using Engine.Core;
|
||||
|
||||
namespace Syntriax.Engine.Physics2D;
|
||||
namespace Engine.Physics2D;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a 2D raycast resolver.
|
||||
|
@@ -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.
|
||||
|
@@ -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"/>.
|
||||
|
@@ -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)
|
||||
{
|
||||
|
@@ -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.
|
||||
|
@@ -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.
|
||||
|
@@ -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.
|
||||
|
@@ -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.
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using Syntriax.Engine.Core;
|
||||
using Engine.Core;
|
||||
|
||||
namespace Syntriax.Engine.Physics2D;
|
||||
namespace Engine.Physics2D;
|
||||
|
||||
public abstract class Collider2DBase : Behaviour2D, ICollider2D
|
||||
{
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using Syntriax.Engine.Core;
|
||||
using Engine.Core;
|
||||
|
||||
namespace Syntriax.Engine.Physics2D;
|
||||
namespace Engine.Physics2D;
|
||||
|
||||
public class Collider2DCircle : Collider2DBase, ICircleCollider2D
|
||||
{
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using Syntriax.Engine.Core;
|
||||
using Engine.Core;
|
||||
|
||||
namespace Syntriax.Engine.Physics2D;
|
||||
namespace Engine.Physics2D;
|
||||
|
||||
public class Collider2DShape : Collider2DBase, IShapeCollider2D
|
||||
{
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using Syntriax.Engine.Core;
|
||||
using Engine.Core;
|
||||
|
||||
namespace Syntriax.Engine.Physics2D;
|
||||
namespace Engine.Physics2D;
|
||||
|
||||
public class CollisionResolver2D : ICollisionResolver2D
|
||||
{
|
||||
|
@@ -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>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using Syntriax.Engine.Core;
|
||||
using Engine.Core;
|
||||
|
||||
namespace Syntriax.Engine.Physics2D;
|
||||
namespace Engine.Physics2D;
|
||||
|
||||
public static class Physics2D
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace Syntriax.Engine.Physics2D;
|
||||
namespace Engine.Physics2D;
|
||||
|
||||
public readonly struct PhysicsMaterial2D(float Friction, float Restitution) : IPhysicsMaterial2D
|
||||
{
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace Syntriax.Engine.Physics2D;
|
||||
namespace Engine.Physics2D;
|
||||
|
||||
public readonly struct PhysicsMaterial2DDefault : IPhysicsMaterial2D
|
||||
{
|
||||
|
@@ -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.
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using Syntriax.Engine.Core;
|
||||
using Engine.Core;
|
||||
|
||||
namespace Syntriax.Engine.Physics2D;
|
||||
namespace Engine.Physics2D;
|
||||
|
||||
public class RigidBody2D : Behaviour2D, IRigidBody2D
|
||||
{
|
||||
|
Reference in New Issue
Block a user