Initial commit

This commit is contained in:
2026-01-19 13:56:50 -05:00
commit cc4fee7a34
55 changed files with 1824 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
using Microsoft.Xna.Framework;
namespace Gravity.Kernel;
public sealed partial class Scene
{
public void Initialize() {
foreach (Behavior behavior in behaviors) behavior.Initialize();
foreach (Body body in bodies) body.Initialize();
}
public void Terminate() {
foreach (Behavior behavior in behaviors) behavior.Terminate();
foreach (Body body in bodies) body.Terminate();
}
public void Load() {
foreach (Behavior behavior in behaviors) { behavior.Load(); }
foreach (Body body in bodies) { body.Load(); }
}
public void Update(GameTime __gameTime) {
foreach (Behavior behavior in behaviors) { behavior.Update(__gameTime); }
foreach (Body body in bodies) { body.Update(__gameTime); }
}
public void Draw(GameTime __gameTime) {
foreach (Behavior behavior in behaviors) { behavior.Draw(__gameTime); }
foreach (Body body in bodies) { body.Draw(__gameTime); }
}
}