Event
class in package klyn.events

    public class Event:

Event

Base payload for events emitted by Klyn objects.

The `event` keyword creates the dispatch infrastructure. Event payload classes derive from this base so every handler can access the emitter and creation timestamp consistently.

    class ReloadEvent extends Event:
    public ReloadEvent(source as Object):
    super(source)

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | source `source as Object` | Object that emitted the event.
public readonly property | timestamp `timestamp as Long` | Event creation timestamp in milliseconds.

Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | Event `Event(source as Object):` | Creates an event payload.