/// <summary> /// Sets the <see cref="Components.Cursor"/>. /// </summary> /// <param name="data">A <see cref="Components.Cursor"/> object.</param> public void SetData(object data) { if (data is Components.Cursor cursor) { _cursor = cursor; } else { throw new Exception($"{nameof(CursorRenderStep)} must have a {nameof(Components.Cursor)} passed to the {nameof(SetData)} method"); } }
/// <inheritdoc/> public void Reset() { _cursor = null; }