Allow drag-and-drop insertion of reagents into the ChemMaster (#19796)

* Add DumpableSolutionComponent

Separates out the component from "DrainComponent" that allows one to drag a bucket/any reagent container onto a drain/sink/toilet to empty it and allows other reagent containers to reuse the code effortlessly.

* Give the ChemMaster 4000 the DumpableSolution Component

Allows drag and dropping solutions into the ChemMaster much like you used to be able to do exclusively with drains. This also allows dumping jugs into them.
This commit is contained in:
TNE
2023-09-04 14:53:13 +02:00
committed by GitHub
parent d67569786c
commit 52ef8f9b70
9 changed files with 82 additions and 12 deletions

View File

@@ -89,6 +89,7 @@ namespace Content.Server.Interaction
var dropArgs = new DragDropTargetEvent(user.Value, msg.Dragged);
// trigger dragdrops on the target entity (what you are dropping onto)
RaiseLocalEvent(msg.Target, ref dropArgs);
}