From 35933dfd14c79973c4416234186001d76a6004ad Mon Sep 17 00:00:00 2001 From: Syntriax Date: Wed, 31 Jan 2024 18:43:17 +0300 Subject: [PATCH] feat: ICamera2D --- Game/Abstract/ICamera2D.cs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Game/Abstract/ICamera2D.cs diff --git a/Game/Abstract/ICamera2D.cs b/Game/Abstract/ICamera2D.cs new file mode 100644 index 0000000..0b809af --- /dev/null +++ b/Game/Abstract/ICamera2D.cs @@ -0,0 +1,9 @@ +namespace Syntriax.Engine.Core.Abstract; + +public interface ICamera2D : IBehaviour, IAssignableTransform +{ + float Zoom { get; set; } + + Vector2D ScreenToWorldPosition(Vector2D screenPosition); + Vector2D WorldToScreenPosition(Vector2D screenPosition); +}