GameEventHandlerAttribute
Marks a method to be auto-registered as a Source 2 game event handler for the named event.
public class GameEventHandlerAttribute : Attribute
Namespace: DeadworksManaged.Api
Inherits / implements: Attribute
Source: Events/GameEventHandlerAttribute.cs#L8
Constructors
new GameEventHandlerAttribute()
Signature
public GameEventHandlerAttribute(string eventName)
Source: Events/GameEventHandlerAttribute.cs#L11
Properties
GameEventHandlerAttribute.EventName
The Source 2 game event name to listen for (e.g. "player_death").
Signature
public string EventName { get; }