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.

36 lines
1.1 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. },
  21. globalAllowed: {
  22. clientConfig: ['getClientConfig'],
  23. leaderboard: ['requestList'],
  24. cons: ['unzone']
  25. }
  26. };
  27. module.exports = {
  28. routerConfig,
  29. init: function () {
  30. events.emit('onBeforeGetRouterConfig', routerConfig);
  31. }
  32. };