Add avatar customizations to content API

This commit is contained in:
Phillip Thelen
2016-01-21 14:24:10 +01:00
committed by Blade Barringer
parent 0d06d765f2
commit 8e8c28725a
18 changed files with 583 additions and 350 deletions

View File

@@ -0,0 +1,31 @@
import hair from './hair';
import shirts from './shirt.js';
import skins from './skin.js';
import sizes from './size.js';
import backgrounds from './backgrounds.js';
import {forOwn, clone} from 'lodash';
let reorderedBgs = {};
forOwn(backgrounds, function restructureBackgroundSet (value, key) {
forOwn(value, function restructureBackground (bgObject, bgKey) {
let bg = clone(bgObject);
bg.set = {
text: key,
key,
setPrice: 15,
};
reorderedBgs[bgKey] = bg;
});
});
let appearances = {
hair,
shirt: shirts,
size: sizes,
skin: skins,
background: reorderedBgs,
};
module.exports = appearances;