Initial commit
This commit is contained in:
32
Awperative/Kernel/Entities/Scenes/Time.cs
Normal file
32
Awperative/Kernel/Entities/Scenes/Time.cs
Normal 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); }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user