Make the material ejection control completely generic (#23308)
* Finish decoupling material ejection from lathes * commented
This commit is contained in:
12
Content.Client/Materials/UI/MaterialStorageUIController.cs
Normal file
12
Content.Client/Materials/UI/MaterialStorageUIController.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Content.Shared.Materials;
|
||||
using Robust.Client.UserInterface.Controllers;
|
||||
|
||||
namespace Content.Client.Materials.UI;
|
||||
|
||||
public sealed class MaterialStorageUIController : UIController
|
||||
{
|
||||
public void SendLatheEjectMessage(EntityUid uid, string material, int sheetsToEject)
|
||||
{
|
||||
EntityManager.RaisePredictiveEvent(new EjectMaterialMessage(EntityManager.GetNetEntity(uid), material, sheetsToEject));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user