idle-starship/scripts/GameObjects/Galaxy.cs
2025-09-12 08:34:06 -04:00

22 lines
520 B
C#

using System.Collections.Generic;
public partial class Galaxy : GameObject
{
public List<GameObject> GameObjects { get; private set; }
public Galaxy(string name, CoordinateVector position, CoordinateVector size)
: base(name, position, size, null)
{
this.GameObjects = new List<GameObject>();
}
public override void Simulate()
{
base.Simulate();
foreach (GameObject gameObject in this.GameObjects)
{
gameObject.Simulate();
}
}
}