/trunk/Demo.Mmose.Core/ServerEngine/World/ZoneCluster/PacketHandlers/Enum.cs

# · C# · 208 lines · 51 code · 20 blank · 137 comment · 0 complexity · 16ce3f74a9f6743f14db424360a8793a MD5 · raw file

  1. #region zh-CHS 2006 - 2008 DemoSoft 团队 | en 2006 - 2008 DemoSoft Team
  2. // NOTES
  3. // ---------------
  4. //
  5. // This file is a part of the MMOSE(Massively Multiplayer Online Server Engine) for .NET.
  6. //
  7. // 2006-2008 DemoSoft Team
  8. //
  9. //
  10. // First Version : by H.Q.Cai - mailto:caihuanqing@hotmail.com
  11. /***************************************************************************
  12. *
  13. * This program is free software; you can redistribute it and/or modify
  14. * it under the terms of the GNU Lesser General Public License as published
  15. * by the Free Software Foundation; either version 2.1 of the License, or
  16. * (at your option) any later version.
  17. *
  18. ***************************************************************************/
  19. #region zh-CHS 包含名字空间 | en Include namespace
  20. #endregion
  21. namespace Demo.Mmose.Core.World.ZoneClusterWorld
  22. {
  23. /// <summary>
  24. /// ZoneCluster OpCode Client
  25. /// </summary>
  26. internal enum ZoneClusterOpCodeToZone
  27. {
  28. //////////////////////////////////////////////////////////////////////////
  29. // 连接至Zone - OpCode(2 << 12)
  30. // 从ZoneCluster返回的结果信息给Zone - OpCode(2 << 12)
  31. /// <summary>
  32. /// 登陆Zone
  33. /// </summary>
  34. CMSG_LOGIN_ZONE = ( 2 << 12 ) + 0x0,
  35. /// <summary>
  36. /// 登陆ZoneCluster后,返回的结果信息
  37. /// </summary>
  38. SMSG_LOGIN_ZONE_RESULT = ( 2 << 12 ) + 0x80,
  39. /// <summary>
  40. /// 通知当前的Zone已有个新的Zone添加至当前连接的ZoneCluster
  41. /// </summary>
  42. CMSG_NOTIFY_ADD_ZONE = ( 2 << 12 ) + 0x1,
  43. /// <summary>
  44. /// 添加当前的Zone至当前连接的ZoneCluster后,返回的结果信息
  45. /// </summary>
  46. SMSG_NOTIFY_ADD_ZONE_RESULT = ( 2 << 12 ) + 0x81,
  47. /// <summary>
  48. /// 通知当前的Zone有个Zone已在当前连接的ZoneCluster中移去
  49. /// </summary>
  50. CMSG_NOTIFY_REMOVE_ZONE = ( 2 << 12 ) + 0x2,
  51. /// <summary>
  52. /// 移去当前的Zone至当前连接的ZoneCluster后,返回的结果信息
  53. /// </summary>
  54. SMSG_NOTIFY_REMOVE_ZONE_RESULT = ( 2 << 12 ) + 0x82,
  55. /// <summary>
  56. /// 通知当前的Zone连接是在线的
  57. /// </summary>
  58. CMSG_PING_ZONE = ( 2 << 12 ) + 0x3,
  59. /// <summary>
  60. /// 返回通知当前的Zone连接是在线的
  61. /// </summary>
  62. SMSG_PONG_ZONE = ( 2 << 12 ) + 0x83,
  63. }
  64. /// <summary>
  65. ///
  66. /// </summary>
  67. internal enum ZoneClusterOpCodeToDomain
  68. {
  69. //////////////////////////////////////////////////////////////////////////
  70. // 从ZoneCluster的信息 - OpCode( 4 << 12 + ? )
  71. // 从ZoneCluster返回的结果信息 - OpCode( 4 << 120x80 + ? )
  72. /// <summary>
  73. /// 登陆Domain
  74. /// </summary>
  75. CMSG_LOGIN_DOMAIN = ( 4 << 12 ) + 0x0,
  76. /// <summary>
  77. /// 登陆Domain后,返回的结果信息
  78. /// </summary>
  79. SMSG_LOGIN_DOMAIN_RESULT = ( 4 << 12 ) + 0x80,
  80. /// <summary>
  81. /// 添加个新的ZoneCluster至当前的Domain中
  82. /// </summary>
  83. CMSG_ADD_CURRENT_ZONE_CLUSTER = ( 4 << 12 ) + 0x1,
  84. /// <summary>
  85. /// 通知当前的ZoneCluster已有个新的ZoneCluster添加至当前连接的Domain
  86. /// </summary>
  87. SMSG_ADD_CURRENT_ZONE_CLUSTER_RESULT = ( 4 << 12 ) + 0x81,
  88. /// <summary>
  89. /// 移去个ZoneCluster在当前的Domain中
  90. /// </summary>
  91. CMSG_REMOVE_CURRENT_ZONE_CLUSTER = ( 4 << 12 ) + 0x2,
  92. /// <summary>
  93. /// 通知当前的ZoneCluster有个ZoneCluster已在当前连接的Domain中移去
  94. /// </summary>
  95. SMSG_REMOVE_CURRENT_ZONE_CLUSTER_RESULT = ( 4 << 12 ) + 0x82,
  96. /// <summary>
  97. /// 通知当前的Domain连接是在线的
  98. /// </summary>
  99. CMSG_PING_DOMAIN = ( 4 << 12 ) + 0x3,
  100. /// <summary>
  101. /// 通知当前的Domain连接是在线的
  102. /// </summary>
  103. SMSG_PONG_DOMAIN = ( 4 << 12 ) + 0x83,
  104. }
  105. /// <summary>
  106. /// ZoneCluster OpCode Server
  107. /// </summary>
  108. internal enum ZoneClusterOpCodeFromZone
  109. {
  110. //////////////////////////////////////////////////////////////////////////
  111. // 从Zone来的信息 - OpCode( 1 << 12 + ? )
  112. // 从Zone返回的结果信息 - OpCode( 1 << 12 + 0x80 + ? )
  113. /// <summary>
  114. /// 登陆ZoneCluster
  115. /// </summary>
  116. SMSG_LOGIN_ZONE_CLUSTER = ( 1 << 12 ) + 0x0,
  117. /// <summary>
  118. /// 登陆Zone后,返回的结果信息
  119. /// </summary>
  120. CMSG_LOGIN_ZONE_CLUSTER_RESULT = ( 1 << 12 ) + 0x80,
  121. /// <summary>
  122. /// 添加个新的Zone至当前的ZoneCluster
  123. /// </summary>
  124. SMSG_ADD_CURRENT_ZONE = ( 1 << 12 ) + 0x1,
  125. /// <summary>
  126. /// 通知当前的Zone已有个新的Zone添加至当前连接的ZoneCluster
  127. /// </summary>
  128. CMSG_ADD_CURRENT_ZONE_RESULT = ( 1 << 12 ) + 0x81,
  129. /// <summary>
  130. /// 移去个Zone在当前的ZoneCluster中
  131. /// </summary>
  132. SMSG_REMOVE_CURRENT_ZONE = ( 1 << 12 ) + 0x2,
  133. /// <summary>
  134. /// 通知当前的Zone有个Zone已在当前连接的ZoneCluster中移去
  135. /// </summary>
  136. CMSG_REMOVE_CURRENT_ZONE_RESULT = ( 1 << 12 ) + 0x82,
  137. /// <summary>
  138. /// 通知当前的ZoneCluster连接是在线的
  139. /// </summary>
  140. SMSG_ZONE_PING_ZONE_CLUSTER = ( 1 << 12 ) + 0x3,
  141. /// <summary>
  142. /// 返回通知当前的ZoneCluster连接是在线的
  143. /// </summary>
  144. CMSG_PONG_ZONE_CLUSTER = ( 1 << 12 ) + 0x83,
  145. }
  146. /// <summary>
  147. ///
  148. /// </summary>
  149. internal enum ZoneClusterOpCodeFromDomain
  150. {
  151. //////////////////////////////////////////////////////////////////////////
  152. // 连接至ZoneCluster - OpCode( 3 << 12 + ? )
  153. // 从Domain返回的结果信息给ZoneCluster - OpCode( 3 << 12 + 0x80 + ? )
  154. /// <summary>
  155. /// 登陆ZoneCluster
  156. /// </summary>
  157. SMSG_LOGIN_ZONE_CLUSTER = ( 3 << 12 ) + 0x0,
  158. /// <summary>
  159. /// 登陆Domain后,返回的结果信息
  160. /// </summary>
  161. CMSG_LOGIN_ZONE_CLUSTER_RESULT = ( 3 << 12 ) + 0x80,
  162. /// <summary>
  163. /// 通知当前的ZoneCluster有个新的ZoneCluster添加至当前连接的Domain
  164. /// </summary>
  165. SMSG_NOTIFY_ADD_ZONE_CLUSTER = ( 3 << 12 ) + 0x1,
  166. /// <summary>
  167. /// 添加ZoneCluster后,返回的结果信息
  168. /// </summary>
  169. CMSG_NOTIFY_ADD_ZONE_CLUSTER_RESULT = ( 3 << 12 ) + 0x81,
  170. /// <summary>
  171. /// 通知当前的ZoneCluster有个ZoneCluster已在当前连接的Domain中移去
  172. /// </summary>
  173. SMSG_NOTIFY_REMOVE_ZONE_CLUSTER = ( 3 << 12 ) + 0x2,
  174. /// <summary>
  175. /// 移去ZoneCluster后,返回的结果信息
  176. /// </summary>
  177. CMSG_NOTIFY_REMOVE_ZONE_CLUSTER_RESULT = ( 3 << 12 ) + 0x82,
  178. /// <summary>
  179. /// 通知当前的ZoneCluster连接是在线的
  180. /// </summary>
  181. SMSG_DOMAIN_PING_ZONE_CLUSTER = ( 3 << 12 ) + 0x3,
  182. /// <summary>
  183. /// 返回通知当前的ZoneCluster连接是在线的
  184. /// </summary>
  185. CMSG_PONG_ZONE_CLUSTER = ( 3 << 12 ) + 0x83,
  186. }
  187. }
  188. #endregion