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.
 
 
 

56 lines
802 B

  1. let components = [
  2. 'keyboardMover',
  3. 'mouseMover',
  4. 'player',
  5. 'pather',
  6. 'attackAnimation',
  7. 'lightningEffect',
  8. 'moveAnimation',
  9. 'bumpAnimation',
  10. 'animation',
  11. 'light',
  12. 'lightPatch',
  13. 'projectile',
  14. 'particles',
  15. 'explosion',
  16. 'spellbook',
  17. 'inventory',
  18. 'stats',
  19. 'chest',
  20. 'effects',
  21. 'aggro',
  22. 'quests',
  23. 'events',
  24. 'resourceNode',
  25. 'gatherer',
  26. 'stash',
  27. 'flash',
  28. 'chatter',
  29. 'dialogue',
  30. 'trade',
  31. 'prophecies',
  32. 'reputation',
  33. 'serverActions',
  34. 'social',
  35. 'passives'
  36. ].map(function (c) {
  37. return 'js/components/' + c;
  38. });
  39. define(components, function () {
  40. let templates = {};
  41. [].forEach.call(arguments, function (t) {
  42. templates[t.type] = t;
  43. });
  44. return {
  45. getTemplate: function (type) {
  46. if (type == 'lightpatch')
  47. type = 'lightPatch';
  48. return templates[type];
  49. }
  50. };
  51. });