@
CI / build-test (push) Failing after 1m8s

Add MrGameEng.AI utility-AI module; format codebase with CSharpier

New MrGameEng.AI module (ResponseCurve, Consideration, UtilityAction,
UtilityAi selector, Blackboard) plus CSharpier formatting applied across
the whole engine. Documents the CSharpier convention in CLAUDE.md.
@
This commit is contained in:
Leonid Pershin
2026-06-12 07:19:10 +03:00
parent 4ae730cafa
commit fd6343bd09
96 changed files with 2066 additions and 589 deletions
@@ -26,7 +26,12 @@ public class CameraMathTests
public void ScreenToWorld_RoundTripsWithWorldToScreen()
{
var camera = new Camera(new Vector2(123f, -45f), zoom: 1.5f, rotation: 0.3f);
var state = CameraMath.Compute(camera, 1280, 720, new ViewportMapping(new Vector2(0f, 60f), 1.5f));
var state = CameraMath.Compute(
camera,
1280,
720,
new ViewportMapping(new Vector2(0f, 60f), 1.5f)
);
var screen = new Vector2(200f, 500f);
var world = state.ScreenToWorld(screen);
@@ -49,8 +54,18 @@ public class CameraMathTests
[Fact]
public void Rotation_ExpandsCullRectToCoverRotatedView()
{
var straight = CameraMath.Compute(new Camera(Vector2.Zero), 800, 600, ViewportMapping.Identity);
var rotated = CameraMath.Compute(new Camera(Vector2.Zero, rotation: MathF.PI / 4f), 800, 600, ViewportMapping.Identity);
var straight = CameraMath.Compute(
new Camera(Vector2.Zero),
800,
600,
ViewportMapping.Identity
);
var rotated = CameraMath.Compute(
new Camera(Vector2.Zero, rotation: MathF.PI / 4f),
800,
600,
ViewportMapping.Identity
);
Assert.True(rotated.CullRect.Width > straight.CullRect.Width);
Assert.True(rotated.CullRect.Height > straight.CullRect.Height);