Files
tytd2025/Tesses.YouTubeDownloader/src/Event.tcross
2025-10-15 00:07:35 -05:00

27 lines
304 B
Plaintext

class TYTD.Event {
private _events = [];
public operator+(e)
{
if (!_events.Contains(e))
{
this._events.Add(e);
}
return this;
}
public operator-(e)
{
this._events.Remove(e);
return this;
}
public Invoke($$args)
{
each(var e : this._events)
{
e.Call(args);
}
}
}