22 lines
520 B
C#
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();
|
|
}
|
|
}
|
|
}
|