chore: cleaned up monogame references from desktop platform & shared project

This commit is contained in:
2026-01-26 12:21:30 +03:00
parent d71882c8e7
commit 9935805f06
6 changed files with 22 additions and 200 deletions

View File

@@ -1,21 +0,0 @@
using Microsoft.Xna.Framework.Input;
using Engine.Core;
using Engine.Integration.MonoGame;
namespace MyUniverse.Shared.Behaviours;
public class MousePositionerBehaviour : Behaviour2D, IUpdate, IFirstFrameUpdate
{
private ICamera2D camera = null!;
public void FirstActiveFrame()
{
camera = Universe.FindRequiredBehaviour<ICamera2D>();
}
public void Update()
{
Transform.Position = camera.ScreenToWorldPosition(Mouse.GetState().Position.ToVector2D());
}
}