Class InventoryRelayedEvent<TEvent>
Event wrapper for relayed events.
Inheritance
System.Object
InventoryRelayedEvent<TEvent>
Namespace: Content.Shared.Inventory
Assembly: Content.Shared.dll
Syntax
public sealed class InventoryRelayedEvent<TEvent> : EntityEventArgs
Type Parameters
Name | Description |
---|---|
TEvent |
Remarks
This avoids nested inventory relays, and makes it easy to have certain events only handled by the initial target entity. E.g. health based movement speed modifiers should not be handled by a hat, even if that hat happens to be a dead mouse. Clothing that wishes to modify movement speed must subscribe to InventoryRelayedEvent<RefreshMovementSpeedModifiersEvent>
Constructors
| Improve this Doc View SourceInventoryRelayedEvent(TEvent)
Declaration
public InventoryRelayedEvent(TEvent args)
Parameters
Type | Name | Description |
---|---|---|
TEvent | args |
Fields
| Improve this Doc View SourceArgs
Declaration
public readonly TEvent Args
Field Value
Type | Description |
---|---|
TEvent |