Add ObjectStoreLite to reduce memory footprint if the full object data is not needed

This commit is contained in:
Casper Warden
2017-12-14 02:06:28 +00:00
parent 9c6375a917
commit 60e300f052
58 changed files with 1525 additions and 62 deletions

View File

@@ -2,14 +2,20 @@ const nmv = require('../dist/index');
const loginParameters = new nmv.LoginParameters();
const parameters = require('./loginParameters.json');
const fs = require('fs');
loginParameters.firstName = parameters.firstName;
loginParameters.lastName = parameters.lastName;
loginParameters.password = parameters.password;
loginParameters.start = "last";
const bot = new nmv.Bot(loginParameters);
//const options = nmv.BotOptionFlags.None;
// If you don't intend to use the object store (i.e you have no interest in inworld objects, textures, etc,
// using ObjectStoreLite will drastically reduce the footprint
//
const options = nmv.BotOptionFlags.LiteObjectStore;
const bot = new nmv.Bot(loginParameters, options);
let isConnected = false;