MCPcopy Create free account
hub / github.com/codecombat/codecombat / makeLevelComponent

Function makeLevelComponent

test/app/factories.coco.js:290–302  ·  view source on GitHub ↗
(attrs, sources)

Source from the content-addressed store, hash-verified

288 },
289
290 makeLevelComponent(attrs, sources) {
291 if (sources == null) { sources = {}; }
292 const _id = _.uniqueId('level_component_');
293 attrs = _.extend({}, {
294 _id,
295 system: 'action',
296 codeLanguage: 'coffeescript',
297 name: _.uniqueId('Level Component '),
298 version: makeVersion(),
299 original: _id
300 }, attrs);
301 return new LevelComponent(attrs);
302 },
303
304 makeLevelSystem(attrs, sources) {
305 if (sources == null) { sources = {}; }

Callers

nothing calls this directly

Calls 1

makeVersionFunction · 0.70

Tested by

no test coverage detected