Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

48 lignes
1.4 KiB

  1. let events = require('../misc/events');
  2. const routerConfig = {
  3. allowed: {
  4. player: ['performAction', 'queueAction', 'move'],
  5. auth: ['login', 'register', 'play', 'getCharacterList', 'getCharacter', 'deleteCharacter', 'getSkinList', 'createCharacter', 'getCustomChannels'],
  6. social: ['chat', 'getInvite', 'acceptInvite', 'declineInvite', 'removeFromParty', 'leaveParty']
  7. },
  8. secondaryAllowed: {
  9. dialogue: ['talk'],
  10. gatherer: ['gather'],
  11. quests: ['complete'],
  12. inventory: ['combineStacks', 'splitStack', 'useItem', 'moveItem', 'learnAbility', 'unlearnAbility', 'dropItem', 'destroyItem', 'salvageItem', 'stashItem', 'sortInventory'],
  13. equipment: ['equip', 'unequip', 'setQuickSlot', 'useQuickSlot', 'inspect'],
  14. stash: ['withdraw', 'open'],
  15. trade: ['buySell'],
  16. door: ['lock', 'unlock'],
  17. wardrobe: ['open', 'apply'],
  18. stats: ['respawn'],
  19. passives: ['tickNode', 'untickNode'],
  20. workbench: ['open', 'craft', 'getRecipe']
  21. },
  22. globalAllowed: {
  23. clientConfig: ['getClientConfig'],
  24. leaderboard: ['requestList'],
  25. cons: ['unzone'],
  26. rezoneManager: ['clientAck'],
  27. instancer: ['clientAck']
  28. },
  29. allowTargetId: {
  30. door: ['lock', 'unlock'],
  31. gatherer: ['gather'],
  32. equipment: ['inspect'],
  33. stash: ['open'],
  34. social: ['declineInvite'],
  35. wardrobe: ['open', 'apply'],
  36. workbench: ['open', 'craft', 'getRecipe']
  37. }
  38. };
  39. module.exports = {
  40. routerConfig,
  41. init: function () {
  42. events.emit('onBeforeGetRouterConfig', routerConfig);
  43. }
  44. };