Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

48 řádky
683 B

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