You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

generator.js 545 B

123456789101112131415161718192021222324252627282930313233343536
  1. define([
  2. ], function(
  3. ) {
  4. return {
  5. player: function(blueprint) {
  6. var result = {
  7. fireEvent: function() {},
  8. syncer: {},
  9. instance: {
  10. syncer: {
  11. queue: function() {}
  12. }
  13. }
  14. };
  15. blueprint.syncer = {};
  16. for (var p in blueprint) {
  17. var componentTemplate = require('../src/server/components/' + p);
  18. var component = extend(true, {}, componentTemplate, blueprint[p]);
  19. component.obj = result;
  20. result[p] = component
  21. }
  22. return result;
  23. },
  24. mob: function(blueprint) {
  25. }
  26. };
  27. });