Add DocFX documentation.
This commit is contained in:
@@ -1,8 +1,2 @@
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
var game = new TestGame();
|
||||
game.Start();
|
||||
}
|
||||
}
|
||||
var game = new TestGame();
|
||||
game.Start();
|
||||
@@ -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"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user