src/drawable/inventory.js
/**
 * Creates the xm "core" of an item
 *
 * @private
 * @param  {String} name Internal name of the xm mesh
 * @return {xmbase}      An XmDrawable with the specified mesh name
 *                       and the Xm texture.
 */
Creates the xm "core" of an item
@private
@param  {String} name Internal name of the xm mesh
@return {xmbase}      An XmDrawable with the specified mesh name
and the Xm texture.
Creates the xm " core " of an item @private @param { String } name Internal name of the xm mesh @return { xmbase } An XmDrawable with the specified mesh name and the Xm texture .
function createCore(name) {
  class xmbase extends XmDrawable {
    constructor() {
      super(meshes[name], textures.Xm);
    }
  }
  return xmbase;
}
function createCore ( name ) { class xmbase extends XmDrawable { constructor ( ) { super ( meshes [ name ] , textures . Xm ) ; } } return xmbase ; }
Creates the xm "core" of an item
 @private
 @param  {String} name Internal name of the xm mesh
 @return {xmbase}      An XmDrawable with the specified mesh name
                       and the Xm texture.
Creates the xm " core " of an item @private @param { String } name Internal name of the xm mesh @return { xmbase } An XmDrawable with the specified mesh name and the Xm texture .