Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

37 righe
1.2 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', 'activateMtx', 'useItem', 'moveItem', 'learnAbility', 'unlearnAbility', 'dropItem', 'destroyItem', 'stashItem', 'mailItem', '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. }
  27. };
  28. module.exports = {
  29. routerConfig,
  30. init: function () {
  31. events.emit('onBeforeGetRouterConfig', routerConfig);
  32. }
  33. };