/// <summary> /// Create a <see cref="MorroSystem"/> that combines the functionality of an <see cref="UpdateSystem"/> and a <see cref="DrawSystem"/>. /// </summary> /// <param name="scene">The scene this system will exist in.</param> /// <param name="tasks">The total amount of tasks to divide the update cycle into. Assigning more than one task allows entities to be updated asynchronously.</param> internal HybridSystem(Scene scene, uint tasks) : base(scene) { updateSystemHandler = new UpdateSystemHandler(this, UpdateEntity) { TotalTasks = tasks, }; drawSystemHandler = new DrawSystemHandler(this, DrawEntity); }
/// <summary> /// Create a <see cref="MorroSystem"/> that will process <see cref="IComponent"/> data and preform draw logic every frame. /// </summary> /// <param name="scene">The scene this system will exist in.</param> internal DrawSystem(Scene scene) : base(scene) { drawSystemHandler = new DrawSystemHandler(this, DrawEntity); }