Module remotes

Easy remote data access for other mods.

The "remotes" subdirectory of Erlib contains several files that can be required by other mods to get easy access to certain data.

Files

events() Event names shared amongst all Erlib using mods.


Files

events()
Event names shared amongst all Erlib using mods.

This file exists for mods that want to use Erlib's event id sharing mechanism without using EventManagerLite. Just require this file and call the returned function.

Returns:

  1. table Stand-alone version of EventManagerLite.events.
  2. function Stand-alone version of EventManagerLite.generate_event_name.

Usage:

    local events, generate_event_name
      = require('__eradicators-library__/erlib/remotes/events')()
    
    script.on_event(events.on_something_happend, function(e)
      do_stuff()
      end)
    
generated by LDoc 1.4.6 Last updated 2021-09-10 19:51:19