Add DocFX documentation.

This commit is contained in:
2024-10-14 20:01:01 +02:00
parent f68f8f4b02
commit 9397073901
118 changed files with 64687 additions and 76 deletions

View File

@@ -1,3 +1,4 @@
using System.Numerics;
using Voile;
using Voile.Audio;
using Voile.Resources;
@@ -18,19 +19,14 @@ public class TestGame : Game
protected override void LoadResources()
{
if (ResourceManager.TryLoad<Sound>("my_sound", "sounds/test_sound.ogg"))
if (!ResourceManager.TryLoad("my_sound", "sounds/test_sound.ogg", out Sound? _testSound))
{
ResourceManager.TryGetResource("my_sound", out _testSound);
}
if (ResourceManager.TryLoad<Font>("inter_regular", "fonts/Inter-Regular.ttf"))
if (!ResourceManager.TryLoad("inter_regular", "fonts/Inter-Regular.ttf", out Font? _font))
{
ResourceManager.TryGetResource("inter_regular", out _font);
if (_font is not null)
{
_font.Size = 20;
}
}
}
@@ -64,7 +60,7 @@ public class TestGame : Game
protected override void Run()
{
while (_scene!.ShouldRun)
while (Renderer.ShouldRun)
{
if (Input.IsActionPressed("play"))
{