Magic World game server
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.

76 lines
1.1 KiB

5 years ago
  1. #pragma once
  2. #include "Ice/BuiltinSequences.ice"
  3. #include "Glacier2/Session.ice"
  4. module MW
  5. {
  6. /**
  7. *
  8. * The InvalidMessageException is raised when a user sends an invalid
  9. * message to the server. A message is considered invalid if the
  10. * message size exceeds the maximum message size.
  11. *
  12. **/
  13. exception InvalidMessageException
  14. {
  15. /**
  16. *
  17. * The reason why the message was rejected by the server.
  18. *
  19. **/
  20. string reason;
  21. }
  22. class MWMapEvent
  23. {
  24. /** The timestamp. */
  25. long timestamp;
  26. /** The name of the user. */
  27. string name;
  28. }
  29. /**
  30. *
  31. * A sequence of state changes in the MW map.
  32. *
  33. * @see MWMapEvent
  34. *
  35. **/
  36. sequence<MWMapEvent> MWMapEventSeq;
  37. /**
  38. *
  39. * This event is generated when a user joins the MW map.
  40. *
  41. * @see MWMapEvent
  42. *
  43. **/
  44. class UserJoinedEvent extends MWMapEvent
  45. {
  46. }
  47. /**
  48. *
  49. * This event is generated when a user leaves the MW map.
  50. *
  51. * @see MWMapEvent
  52. *
  53. **/
  54. class UserLeftEvent extends MWMapEvent
  55. {
  56. }
  57. /**
  58. *
  59. * This event is generated when a user sends a posotion in the
  60. * map.
  61. *
  62. * @see MWMapEvent
  63. *
  64. **/
  65. class PositionEvent extends MWMapEvent
  66. {
  67. /** The contents of the message. */
  68. string message;
  69. }
  70. }