Update README.md to include project description, developer documentation links, and license information.
CI / build-test (push) Successful in 1m6s

This commit is contained in:
Leonid Pershin
2026-06-11 04:03:07 +03:00
parent 31aba3aeee
commit ff2231a8ab
72 changed files with 4113 additions and 0 deletions
@@ -0,0 +1,33 @@
using MrGameEng.Graphics;
using Xunit;
namespace MrGameEng.Graphics.Tests;
public class LayerRegistryTests
{
[Fact]
public void Registry_StartsWithDefaultWorldLayer()
{
var registry = new LayerRegistry();
Assert.Equal(1, registry.Count);
var layer = registry[LayerId.Default];
Assert.Equal("Default", layer.Name);
Assert.Equal(LayerSpace.World, layer.Space);
Assert.Equal(LayerSortMode.Depth, layer.SortMode);
}
[Fact]
public void Register_AssignsSequentialIds_InDrawOrder()
{
var registry = new LayerRegistry();
var world = registry.Register("World", LayerSpace.World, LayerSortMode.YSort);
var ui = registry.Register("UI", LayerSpace.Screen);
Assert.Equal(1, world.Value);
Assert.Equal(2, ui.Value);
Assert.Equal(LayerSortMode.YSort, registry[world].SortMode);
Assert.Equal(LayerSpace.Screen, registry[ui].Space);
}
}