new Mod(dataopt)
- Source:
Example
// create a Mod
const { Mod } = require('lucid-dream');
const mod = new Mod({ name: 'My Mod', author: 'BSAC' });
Parameters:
Name | Type | Attributes | Default | Description | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data |
Object |
<optional> |
{}
|
An object containing the attributes of the Mod Properties
|
Methods
(async) package(outputDir) → {null}
- Source:
Package the Mod to a format loadable by Celeste
Example
// package a Mod to the `output` directory
const { Mod } = require('lucid-dream');
const mod = new Mod({ name: 'Packaged Mod', author: 'iamdadbod' });
// make any additional changes to the Mod
await mod.package('output');
Parameters:
Name | Type | Description |
---|---|---|
outputDir |
String | The directory to which to place the packaged Mod |
Returns:
- Type
- null