예제 #1
0
 /// <summary>
 /// Returns whether this game item has a given drag point exposure.
 /// </summary>
 /// <param name="exposure">Exposure to check</param>
 /// <returns>True if exposed, false otherwise.</returns>
 public bool HasDragPointExposure(DragPointExposure exposure)
 {
     if (!(target is IDragPointsEditable editable))
     {
         return(false);
     }
     return(editable.GetDragPointExposition().Contains(exposure));
 }
예제 #2
0
 /// <summary>
 /// Returns whether this game item has a given drag point exposure.
 /// </summary>
 /// <param name="exposure">Exposure to check</param>
 /// <returns>True if exposed, false otherwise.</returns>
 public bool HasDragPointExposure(DragPointExposure exposure)
 {
     return(_dragPointsInspector.DragPointExposition.Contains(exposure));
 }