2.2.0 • Published 4 months ago

@sanjo-addons/events v2.2.0

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

Lua Events

This work is devoted to God.

A library for working with events. This can help other add-on creators to save some work.

All functions can only be used inside coroutines. You can check out the Coroutine library for coroutine helpers.

With the provided functions, sequential code can be written for processes which require data that is provided via events.

Functions included:

  • Events.waitForOneOfEvents: a function to wait for one of multiple events, with an optional timeout.
  • Events.waitForEventCondition: a function to wait for an event of a specific type and a condition met. A timeout can be optionally passed.
  • Events.waitForEvent: a function to wait for an event. A timeout can be optionally passed.

How to use

Please see "How to use Library" for how to use this library.

Support

You can support me on Patreon.