Going to bed but i wanna show off my cool debugging system

This commit is contained in:
2026-02-01 23:02:53 -05:00
parent 6370a70e77
commit 6032a04ad9
20 changed files with 303 additions and 47 deletions

View File

@@ -1,3 +1,4 @@
using System.Linq;
using Microsoft.Xna.Framework;
@@ -7,22 +8,22 @@ public sealed partial class Scene
{
public void Unload() {
foreach (Behavior behavior in behaviors) behavior.Unload();
foreach (Body body in bodies) body.Unload();
foreach (Behavior behavior in behaviors.ToList()) behavior.Unload();
foreach (Body body in bodies.ToList()) body.Unload();
}
public void Load() {
foreach (Behavior behavior in behaviors) { behavior.Load(); }
foreach (Body body in bodies) { body.Load(); }
foreach (Behavior behavior in behaviors.ToList()) { behavior.Load(); }
foreach (Body body in bodies.ToList()) { body.Load(); }
}
public void Update(GameTime __gameTime) {
foreach (Behavior behavior in behaviors) { behavior.Update(__gameTime); }
foreach (Body body in bodies) { body.Update(__gameTime); }
foreach (Behavior behavior in behaviors.ToList()) { behavior.Update(__gameTime); }
foreach (Body body in bodies.ToList()) { body.Update(__gameTime); }
}
public void Draw(GameTime __gameTime) {
foreach (Behavior behavior in behaviors) { behavior.Draw(__gameTime); }
foreach (Body body in bodies) { body.Draw(__gameTime); }
foreach (Behavior behavior in behaviors.ToList()) { behavior.Draw(__gameTime); }
foreach (Body body in bodies.ToList()) { body.Draw(__gameTime); }
}
}