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:
- table Stand-alone version of EventManagerLite.events.
- 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)