Moved interaction interfaces from Server to Shared.

This commit is contained in:
Acruid
2020-07-18 22:51:56 -07:00
parent d9ce973af0
commit ea94f4a182
124 changed files with 173 additions and 426 deletions

View File

@@ -0,0 +1,19 @@
namespace Content.Shared.Interfaces.GameObjects.Components
{
/// <summary>
/// This interface allows the component's entity to be dragged and dropped onto by another entity and gives it
/// behavior when that occurs.
/// </summary>
public interface IDragDropOn
{
/// <summary>
/// Invoked server-side when another entity is being dragged and dropped onto this one
///
/// There is no other server-side drag and drop check other than a range check, so make sure to validate
/// if this object can be dropped on the dropped object!
/// </summary>
/// <returns>true iff an interaction occurred and no further interaction should
/// be processed for this drop.</returns>
bool DragDropOn(DragDropEventArgs eventArgs);
}
}