The event name or an array of event names where to add the listener
The listener to register
Returns a function that can be called to remove the listeners.
Registers a listener for an event.
Returns a function that can be called to remove the listeners.
Checks that the library's version matches the given version range. See https://github.com/npm/node-semver#ranges for the full syntax.
The version range to check
True if version matches the given range, false otherwise.
Evaluates JavaScript code and writes the return value and its type to the virtual filesystem for the story file to read.
JavaScript code to evaluate
Returns the Inform version, detected at handshake. Before the handshake the value is undefined.
Initializes and starts Vorple.
The function returns a promise that's resolved when the init event has triggered and the virtual filesystem has started. The promise won't wait for the story file to load.
Removes a registered event listener.
The event name or an array of event names from where to remove the listener. Leaving this parameter out completely (i.e. passing the listener function as the first and only parameter) removes the listener from all events where it's been registered.
The listener to remove
Returns true if the listener was removed from at least one event.
Require a minimum version of Vorple. Minor updates are accepted if they're not specified in the request. In other words, if version "3.1" is requested, then any Vorple version below 3.2 (3.1, 3.1.1, 3.1.2 etc) will pass. If version "3" is requested, every version 3.x.x will pass.
If an optional callback is passed to the function, it will be run with one boolean parameter: true if version matches, false otherwise. Otherwise an error is thrown if the version doesn't match.
The minimum version of Vorple that's required
If an optional callback function is passed, it will be run with one boolean parameter: true if version matches, false otherwise. If a callback isn't provided, this function throws an error if the version doesn't match.
Returns true if version matches.
Sets the Inform version.
Runs all custom event listeners for the given event.
Event to remove
Event metadata
Generated using TypeDoc
Registers a listener for an event.
https://vorple-if.com/docs/listeners.html
3.2.0