Files
wwdpublic/Content.Client/Materials/UI/MaterialStorageUIController.cs
Nemanja 1df3def681 Make the material ejection control completely generic (#23308)
* Finish decoupling material ejection from lathes

* commented

(cherry picked from commit 2b01899d639e1cfa5ec47df6cad4049ef72aaefb)
2024-01-23 22:50:32 +01:00

13 lines
416 B
C#

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));
}
}