lol-skl-parser
v0.9.0
Published
A parser for .skl files from League of Legends.
Downloads
9
Maintainers
Readme
lol-skl-parser
A parser for .skl files from League of Legends.
Download
lol-skl-parser is installable via:
Usage example
var SklParser = require('lol-skl-parser'),
skl = new SklParser();
skl.read('Kindred_Base.skl', function (err, data) {
console.log(data);
// {
// "bones": [
// {
// hash: 497252
// name: "Root"
// parent: -1
// position: {...}
// quaternion: {...}
// scale: {...}
// },
// ...
// ]
// }
});
Available methods
N.B: All methods act as promises if no callback is passed.
parse(path, cb)
It will roughly parse a .skl file from the given path.
Parameters
- path {string} A path to where the file to parse resides.
- [cb] {Function} A callback called with
(error, parsedData)
as arguments.
read(path, cb)
It will read a .skl file from the given path, leaving only the relevant data of the skeleton model.
Parameters
- path {string} A path to where the file to read resides.
- [cb] {Function} A callback called with
(error, readData)
as arguments.