Dialog

Dialog

new Dialog()

Source:
Example
// create a Dialog
const { Dialog } = require('lucid-dream');
const dialog = new Dialog();

Methods

encode(mod) → {String}

Source:

Encode the Dialog instance into text suitable for an English.txt file

Example
// encode Dialog data from a Mod object to text suitable for English.txt
const { Mod } = require('lucid-dream');
const mod = new Mod({ name: 'foo', author: 'bar' });
const text = mod.dialog.encode(mod);
Parameters:
Name Type Description
mod Mod

The Mod object from which to encode Dialog data

Returns:

Text data for an English.txt file

Type
String