Add verbs to Open/Close Openable containers, and add optional seals (#24780)
* Implement closing; add open/close verbs * Add breakable seals * Allow custom verb names; make condiment bottles closeable * Remove pointless VV annotations and false defaults * Split Sealable off into a new component * Should have a Closed event too * Oh hey, there are icons I could use * Ternary operator * Add support for seal visualizers * Moved Sealable to Shared, added networking * Replaced bottle_close1.ogg
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
namespace Content.Shared.Nutrition.EntitySystems;
|
||||
|
||||
public abstract partial class SharedOpenableSystem : EntitySystem
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Raised after an Openable is opened.
|
||||
/// </summary>
|
||||
[ByRefEvent]
|
||||
public record struct OpenableOpenedEvent;
|
||||
|
||||
/// <summary>
|
||||
/// Raised after an Openable is closed.
|
||||
/// </summary>
|
||||
[ByRefEvent]
|
||||
public record struct OpenableClosedEvent;
|
||||
Reference in New Issue
Block a user