29 lines
714 B
JavaScript
29 lines
714 B
JavaScript
let map = require(`./zeppelin/map.json`);
|
|
const _ = require('underscore');
|
|
|
|
function i(context) {
|
|
return new Promise((resolve, reject) => {
|
|
//Build from here.
|
|
let scenario = {};
|
|
console.info(`[${context.id}] Loading zeppelin map information`);
|
|
scenario.map = map;
|
|
console.info(`[${context.id}] Setting auxiliary context`);
|
|
scenario.timer = 0;
|
|
console.info(`[${context.id}] Succesfully loaded zeppelin scenario`);
|
|
context.scenario = scenario;
|
|
resolve(context);
|
|
});
|
|
}
|
|
|
|
function t(context) {
|
|
//populate with triggers.js
|
|
//later, calm down.
|
|
}
|
|
|
|
module.exports = storylines => {
|
|
storylines['zeppelin'] = {
|
|
initialize: i,
|
|
trigger: t
|
|
}
|
|
}
|