From a450ed9819c5144837beb49e233608c7f3d814c0 Mon Sep 17 00:00:00 2001 From: dnesov Date: Thu, 19 Jun 2025 13:28:10 +0200 Subject: [PATCH] Update TODO, remove audio system from TestGame. --- TODO.md | 4 +++- TestGame/TestGame.cs | 9 +++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/TODO.md b/TODO.md index 7104d29..4190d80 100644 --- a/TODO.md +++ b/TODO.md @@ -63,7 +63,9 @@ ## UI -- Immediate mode API. +- Basic widgets (button, label, text input) +- Layout +- Input propagation - Styling. - Basic input elements (button, text field, toggle). - Containers (vertical and horizontal). diff --git a/TestGame/TestGame.cs b/TestGame/TestGame.cs index 0400abf..f8bba52 100644 --- a/TestGame/TestGame.cs +++ b/TestGame/TestGame.cs @@ -16,10 +16,9 @@ public class TestGame : Game { InitializeSystemsDefault(); - _audioSystem = new OpenALSystem(); _particleSystem = new ParticleSystem(); - AddSystemToUpdate(_audioSystem); + // AddSystemToUpdate(_audioSystem); AddSystemToUpdate(_particleSystem); } @@ -57,9 +56,8 @@ public class TestGame : Game { if (Input.IsActionPressed("reload")) { - // ResourceManager.Reload(); - // _particleSystem!.RestartEmitter(_emitterId); - _audioSystem.PlaySound(_sound.Value, 1.0f); + ResourceManager.Reload(); + _particleSystem!.RestartEmitter(_emitterId); } if (Input.KeyboardKeyJustPressed(KeyboardKey.One)) @@ -109,7 +107,6 @@ public class TestGame : Game } [NotNull] private ParticleSystem _particleSystem; - private OpenALSystem _audioSystem; private int _emitterId; private ResourceRef _fireEffect; private ResourceRef _font;