Terraria.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /**
  3. * This file is part of GameQ.
  4. *
  5. * GameQ is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU Lesser General Public License as published by
  7. * the Free Software Foundation; either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * GameQ is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. namespace GameQ\Protocols;
  19. /**
  20. * Class Terraria
  21. *
  22. * @package GameQ\Protocols
  23. *
  24. * @author Austin Bischoff <[email protected]>
  25. */
  26. class Terraria extends Tshock
  27. {
  28. /**
  29. * String name of this protocol class
  30. *
  31. * @type string
  32. */
  33. protected $name = 'terraria';
  34. /**
  35. * Longer string name of this protocol class
  36. *
  37. * @type string
  38. */
  39. protected $name_long = "Terraria";
  40. /**
  41. * query_port = client_port + 101
  42. * 7878 = 7777 + 101
  43. *
  44. * @type int
  45. */
  46. protected $port_diff = 101;
  47. /**
  48. * The client join link
  49. *
  50. * @type string
  51. */
  52. protected $join_link = "steam://connect/%s:%d/";
  53. }