Skip to main content

EntityIO

Namespace: DeadworksManaged.Api

Hooks into the Valve entity I/O system to observe output firings and input dispatches by entity designer name.

Methods

MethodDescription
HookOutput(string designerName, string outputName, Action<EntityOutputEvent> handler)Subscribes to outputs fired by entities with the given designer name and output name.
HookInput(string designerName, string inputName, Action<EntityInputEvent> handler)Subscribes to inputs dispatched to entities with the given designer name and input name.

EntityOutputEvent

Namespace: DeadworksManaged.Api

Data for a fired entity output, passed to handlers registered via EntityOutputEvent}).

Properties

PropertyDescription
EntityThe entity that fired the output.
ActivatorThe entity that activated the output, if any.
CallerThe entity that called the output, if any.
OutputNameThe name of the output that fired (e.g. "OnTrigger").

EntityInputEvent

Namespace: DeadworksManaged.Api

Data for a received entity input, passed to handlers registered via EntityInputEvent}).

Properties

PropertyDescription
EntityThe entity receiving the input.
ActivatorThe entity that activated the input, if any.
CallerThe entity that called the input, if any.
InputNameThe name of the input being received (e.g. "Kill").
ValueOptional string value passed with the input, or null if none.