Ejemplo n.º 1
0
 /// <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");
     }
 }
Ejemplo n.º 2
0
 ///  <inheritdoc/>
 public void Reset()
 {
     _cursor = null;
 }