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.
|events()||Event names shared amongst all Erlib using mods.|
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.
- table Stand-alone version of EventManagerLite.events.
- function Stand-alone version of EventManagerLite.generate_event_name.
local events, generate_event_name = require('__eradicators-library__/erlib/remotes/events')() script.on_event(events.on_something_happend, function(e) do_stuff() end)