Add RaiseEvent action to CGL. Machines raise a MachineDeconstructedEvent.
The latter is very useful for any special machine cleanup that needs to happen when a machine is deconstructed. The former will be useful for so many things!
This commit is contained in:
@@ -8,6 +8,7 @@ using Robust.Server.GameObjects;
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.IoC;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Server.Construction.Components
|
||||
@@ -357,4 +358,9 @@ namespace Content.Server.Construction.Components
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
[DataDefinition]
|
||||
public class MachineDeconstructedEvent : EntityEventArgs
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user