StandardCommandName.cs 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. using Island.StandardLib.Storage;
  2. namespace Island.StandardLib
  3. {
  4. public static class StandardCommandName
  5. {
  6. #region DescClasses
  7. /// <summary>
  8. /// 这是一个 客户端发给服务器的 指令
  9. /// </summary>
  10. public sealed class ClientToServerCommand { }
  11. /// <summary>
  12. /// 这是一个 服务器发给客户端的 指令
  13. /// </summary>
  14. public sealed class ServerToClientCommand { }
  15. #endregion
  16. /// <summary>
  17. /// 表示和聊天相关的指令
  18. /// </summary>
  19. public const int Command_Module_Chat = 0xBA;
  20. /// <summary>
  21. /// [<see cref="ClientToServerCommand"/>] 发送消息指令,包含一个 <see cref="string"/> 参数作为消息内容
  22. /// </summary>
  23. public const int Command_Chat_Send = 0xBA0;
  24. /// <summary>
  25. /// [<see cref="ServerToClientCommand"/>] 接收消息指令,包含一个 <see cref="string"/> 参数作为消息内容
  26. /// </summary>
  27. public const int Command_Chat_Recv = 0xBA1;
  28. /// <summary>
  29. /// [<see cref="ServerToClientCommand"/>] 消息发送失败指令,包含一个 <see cref="int"/> 参数作为原因
  30. /// </summary>
  31. public const int Command_Chat_Reject = 0xBA2;
  32. public const int Command_Chat_Reject_ByTooQuickly = 0xBA200;
  33. public const int Command_Chat_Reject_ByBanned = 0xBA201;
  34. /// <summary>
  35. /// 表示和比赛房间相关的指令
  36. /// </summary>
  37. public const int Command_Module_Room = 0xCA;
  38. /// <summary>
  39. /// [<see cref="ServerToClientCommand"/>] 比赛已匹配成功的通知指令
  40. /// </summary>
  41. public const int Command_Room_Founded = 0xCA0;
  42. /// <summary>
  43. /// [<see cref="ServerToClientCommand"/>] 比赛已结束的通知指令,包含一个 <see cref="RoomEndData"/> 参数返回比赛结果
  44. /// </summary>
  45. public const int Command_Room_End = 0xCA1;
  46. /// <summary>
  47. /// [<see cref="ClientToServerCommand"/>] 开始匹配指令
  48. /// </summary>
  49. public const int Command_Room_JoinRequest = 0xCA2;
  50. /// <summary>
  51. /// [<see cref="ServerToClientCommand"/>] 服务器已处理寻找房间指令(匹配中)
  52. /// </summary>
  53. public const int Command_Room_RecvRequest = 0xCA3;
  54. /// <summary>
  55. /// [<see cref="ServerToClientCommand"/>] 服务器拒绝处理寻找房间指令(匹配失败),包含一个 <see cref="int"/> 参数作为原因
  56. /// </summary>
  57. public const int Command_Room_RejectRequest = 0xCA4;
  58. public const int Command_Room_RejectRequest_ByGaming = 0xCA400;
  59. public const int Command_Room_RejectRequest_ByBanned = 0xCA401;
  60. }
  61. }