feat: IAssignableGameObject to ITransform

I originally didn't want ITransform to have a reference to any IGameObject, since it didn't seem necessary to couple these two, and to make ITransform more flexible and reusable but without it we can't get a reference to the IGameObject(s) that's using that ITransform without doing some very stupid workarounds. I'll try to find a better way for this.
This commit is contained in:
2024-02-06 12:47:58 +03:00
parent 6e4c9b0ef8
commit fed288859f
3 changed files with 30 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ namespace Syntriax.Engine.Core.Abstract;
/// <summary>
/// Represents the transformation properties of an object such as position, scale, and rotation.
/// </summary>
public interface ITransform : IEnumerable<ITransform>
public interface ITransform : IAssignableGameObject, IEnumerable<ITransform>
{
/// <summary>
/// Event triggered when the <see cref="Position"/> of the <see cref="ITransform"/> changes.