EntityInputEvent
Payload for an entity input dispatch, passed to handlers registered via EntityIO.HookInput or [EntityInputHook].
public sealed class EntityInputEvent
Namespace: DeadworksManaged.Api
Source: Events/EntityInputEvent.cs#L4
Properties
EntityInputEvent.Entity
The entity receiving the input.
Signature
public required CBaseEntity Entity { get; init; }
Source: Events/EntityInputEvent.cs#L6
EntityInputEvent.ClassName
Designer name of the receiving entity (e.g. "func_button"). Already resolved at the native boundary — cheaper than reading CBaseEntity.DesignerName.
Signature
public required string ClassName { get; init; }
Source: Events/EntityInputEvent.cs#L9
EntityInputEvent.InputName
The name of the input being received (e.g. "Kill").
Signature
public required string InputName { get; init; }
Source: Events/EntityInputEvent.cs#L12
EntityInputEvent.Activator
The entity that activated the input, if any.
Signature
public CBaseEntity? Activator { get; init; }
Source: Events/EntityInputEvent.cs#L15
EntityInputEvent.Caller
The entity that called the input, if any.
Signature
public CBaseEntity? Caller { get; init; }
Source: Events/EntityInputEvent.cs#L18
EntityInputEvent.Value
The typed variant value carried by the input. Pointer is only valid for the duration of the callback.
Signature
public required EntityIOValue Value { get; init; }
Source: Events/EntityInputEvent.cs#L21