Skip to content

EventListener<T>

Namespace Mc.Scripting · Kind delegate

public delegate void EventListener<T>(ref T ev) where T : struct, IEvent

Event handler; gets the event by reference (mutable fields and Cancelled are writable).

Parameters

Name Type Description
ev ref T