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