com.xmobitea.changx.gn-unity 2.5.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/CHANGELOG.md.meta +7 -7
  2. package/Editor/GNServerSettingsEditor.cs +24 -17
  3. package/Editor/GNServerSettingsEditor.cs.meta +11 -11
  4. package/Editor/XmobiTea.GN.editor.asmdef.meta +7 -7
  5. package/Editor.meta +8 -8
  6. package/LICENSE.md.meta +7 -7
  7. package/README.md.meta +7 -7
  8. package/Runtime/Common/Action0.cs +5 -0
  9. package/Runtime/{Constant/ParameterCode/GNParameterCode.cs.meta → Common/Action0.cs.meta} +11 -11
  10. package/Runtime/Common/Action1.cs +5 -0
  11. package/Runtime/Common/Action1.cs.meta +11 -0
  12. package/Runtime/Common/Action2.cs +5 -0
  13. package/Runtime/Common/Action2.cs.meta +11 -0
  14. package/Runtime/Common/Action3.cs +5 -0
  15. package/Runtime/Common/Action3.cs.meta +11 -0
  16. package/Runtime/Common/Action4.cs +5 -0
  17. package/Runtime/Common/Action4.cs.meta +11 -0
  18. package/Runtime/Common/GNArray.cs +1 -1
  19. package/Runtime/Common/GNArray.cs.meta +11 -11
  20. package/Runtime/Common/GNData.cs +31 -1
  21. package/Runtime/Common/GNData.cs.meta +11 -11
  22. package/Runtime/Common/GNHashtable.cs +1 -1
  23. package/Runtime/Common/GNHashtable.cs.meta +11 -11
  24. package/Runtime/Common/IGNData.cs +1 -1
  25. package/Runtime/Common/IGNData.cs.meta +11 -11
  26. package/Runtime/Common.meta +8 -8
  27. package/Runtime/Config/GNServerSettings.cs +70 -12
  28. package/Runtime/Config/GNServerSettings.cs.meta +11 -11
  29. package/Runtime/Config.meta +8 -8
  30. package/Runtime/Constant/Commands.cs +12 -12
  31. package/Runtime/Constant/Commands.cs.meta +11 -11
  32. package/Runtime/Constant/EnumType/ExecuteResponseStatus.cs +1 -1
  33. package/Runtime/Constant/EnumType/ExecuteResponseStatus.cs.meta +11 -11
  34. package/Runtime/Constant/EnumType/FriendStatus.cs +1 -1
  35. package/Runtime/Constant/EnumType/FriendStatus.cs.meta +11 -11
  36. package/Runtime/Constant/EnumType/GoogleLoginType.cs +1 -1
  37. package/Runtime/Constant/EnumType/GoogleLoginType.cs.meta +11 -11
  38. package/Runtime/Constant/EnumType/GroupStatus.cs +1 -1
  39. package/Runtime/Constant/EnumType/GroupStatus.cs.meta +11 -11
  40. package/Runtime/Constant/EnumType/InvalidMemberType.cs +1 -1
  41. package/Runtime/Constant/EnumType/InvalidMemberType.cs.meta +11 -11
  42. package/Runtime/Constant/EnumType/ItemType.cs +1 -1
  43. package/Runtime/Constant/EnumType/ItemType.cs.meta +11 -11
  44. package/Runtime/Constant/EnumType/MatchmakingMemberStatus.cs +1 -1
  45. package/Runtime/Constant/EnumType/MatchmakingMemberStatus.cs.meta +11 -11
  46. package/Runtime/Constant/EnumType/MatchmakingTicketStatus.cs +1 -1
  47. package/Runtime/Constant/EnumType/MatchmakingTicketStatus.cs.meta +11 -11
  48. package/Runtime/Constant/EnumType/OwnerType.cs +1 -1
  49. package/Runtime/Constant/EnumType/OwnerType.cs.meta +11 -11
  50. package/Runtime/Constant/EnumType/PermissionDataItem.cs +1 -1
  51. package/Runtime/Constant/EnumType/PermissionDataItem.cs.meta +11 -11
  52. package/Runtime/Constant/EnumType/PushPlatformType.cs +1 -1
  53. package/Runtime/Constant/EnumType/PushPlatformType.cs.meta +11 -11
  54. package/Runtime/Constant/EnumType/RequestRole.cs +1 -1
  55. package/Runtime/Constant/EnumType/RequestRole.cs.meta +11 -11
  56. package/Runtime/Constant/EnumType/RequestType.cs +1 -1
  57. package/Runtime/Constant/EnumType/RequestType.cs.meta +11 -11
  58. package/Runtime/Constant/EnumType/StoreItemType.cs +1 -1
  59. package/Runtime/Constant/EnumType/StoreItemType.cs.meta +11 -11
  60. package/Runtime/Constant/EnumType/StoreReceiveType.cs +1 -1
  61. package/Runtime/Constant/EnumType/StoreReceiveType.cs.meta +11 -11
  62. package/Runtime/Constant/EnumType.meta +8 -8
  63. package/Runtime/Constant/ErrorCode/{GNErrorCode.cs → ErrorCode.cs} +3 -3
  64. package/Runtime/Constant/ErrorCode/{GNErrorCode.cs.meta → ErrorCode.cs.meta} +11 -11
  65. package/Runtime/Constant/ErrorCode.meta +8 -8
  66. package/Runtime/Constant/EventCode.cs +7 -7
  67. package/Runtime/Constant/EventCode.cs.meta +11 -11
  68. package/Runtime/Constant/OperationCode.cs +249 -247
  69. package/Runtime/Constant/OperationCode.cs.meta +11 -11
  70. package/Runtime/Constant/ParameterCode/ParameterCode.cs +670 -5
  71. package/Runtime/Constant/ParameterCode/ParameterCode.cs.meta +11 -11
  72. package/Runtime/Constant/ParameterCode.meta +8 -8
  73. package/Runtime/Constant/ReturnCode.cs +1 -1
  74. package/Runtime/Constant/ReturnCode.cs.meta +11 -11
  75. package/Runtime/Constant.meta +8 -8
  76. package/Runtime/Entity/DataMember.cs +5 -5
  77. package/Runtime/Entity/DataMember.cs.meta +11 -11
  78. package/Runtime/Entity/GNMetadata.cs +2 -4
  79. package/Runtime/Entity/GNMetadata.cs.meta +11 -11
  80. package/Runtime/Entity/InvalidMember.cs +2 -2
  81. package/Runtime/Entity/InvalidMember.cs.meta +11 -11
  82. package/Runtime/Entity/Models/AuthenticateModels.cs +92 -85
  83. package/Runtime/Entity/Models/AuthenticateModels.cs.meta +11 -11
  84. package/Runtime/Entity/Models/AuthenticateRequestModels.cs +39 -57
  85. package/Runtime/Entity/Models/AuthenticateRequestModels.cs.meta +11 -11
  86. package/Runtime/Entity/Models/AuthenticateResponseModels.cs +3 -3
  87. package/Runtime/Entity/Models/AuthenticateResponseModels.cs.meta +11 -11
  88. package/Runtime/Entity/Models/CharacterPlayerModels.cs +239 -242
  89. package/Runtime/Entity/Models/CharacterPlayerModels.cs.meta +11 -11
  90. package/Runtime/Entity/Models/CharacterPlayerRequestModels.cs +239 -292
  91. package/Runtime/Entity/Models/CharacterPlayerRequestModels.cs.meta +11 -11
  92. package/Runtime/Entity/Models/CharacterPlayerResponseModels.cs +6 -6
  93. package/Runtime/Entity/Models/CharacterPlayerResponseModels.cs.meta +11 -11
  94. package/Runtime/Entity/Models/CloudScriptModels.cs +33 -33
  95. package/Runtime/Entity/Models/CloudScriptModels.cs.meta +11 -11
  96. package/Runtime/Entity/Models/CloudScriptRequestModels.cs +23 -28
  97. package/Runtime/Entity/Models/CloudScriptRequestModels.cs.meta +11 -11
  98. package/Runtime/Entity/Models/CloudScriptResponseModels.cs +2 -2
  99. package/Runtime/Entity/Models/CloudScriptResponseModels.cs.meta +11 -11
  100. package/Runtime/Entity/Models/ContentModels.cs +28 -28
  101. package/Runtime/Entity/Models/ContentModels.cs.meta +11 -11
  102. package/Runtime/Entity/Models/ContentRequestModels.cs +31 -38
  103. package/Runtime/Entity/Models/ContentRequestModels.cs.meta +11 -11
  104. package/Runtime/Entity/Models/ContentResponseModels.cs +2 -2
  105. package/Runtime/Entity/Models/ContentResponseModels.cs.meta +11 -11
  106. package/Runtime/Entity/Models/DashboardModels.cs +735 -687
  107. package/Runtime/Entity/Models/DashboardModels.cs.meta +11 -11
  108. package/Runtime/Entity/Models/DashboardRequestModels.cs +68 -84
  109. package/Runtime/Entity/Models/DashboardRequestModels.cs.meta +11 -11
  110. package/Runtime/Entity/Models/DashboardResponseModels.cs +10 -5
  111. package/Runtime/Entity/Models/DashboardResponseModels.cs.meta +11 -11
  112. package/Runtime/Entity/Models/GamePlayerModels.cs +278 -278
  113. package/Runtime/Entity/Models/GamePlayerModels.cs.meta +11 -11
  114. package/Runtime/Entity/Models/GamePlayerRequestModels.cs +237 -288
  115. package/Runtime/Entity/Models/GamePlayerRequestModels.cs.meta +11 -11
  116. package/Runtime/Entity/Models/GamePlayerResponseModels.cs +7 -7
  117. package/Runtime/Entity/Models/GamePlayerResponseModels.cs.meta +11 -11
  118. package/Runtime/Entity/Models/GenericModels.cs +33 -33
  119. package/Runtime/Entity/Models/GenericModels.cs.meta +11 -11
  120. package/Runtime/Entity/Models/GroupModels.cs +190 -193
  121. package/Runtime/Entity/Models/GroupModels.cs.meta +11 -11
  122. package/Runtime/Entity/Models/GroupRequestModels.cs +181 -221
  123. package/Runtime/Entity/Models/GroupRequestModels.cs.meta +11 -11
  124. package/Runtime/Entity/Models/GroupResponseModels.cs +5 -5
  125. package/Runtime/Entity/Models/GroupResponseModels.cs.meta +11 -11
  126. package/Runtime/Entity/Models/InventoryModels.cs +149 -149
  127. package/Runtime/Entity/Models/InventoryModels.cs.meta +11 -11
  128. package/Runtime/Entity/Models/InventoryRequestModels.cs +145 -179
  129. package/Runtime/Entity/Models/InventoryRequestModels.cs.meta +11 -11
  130. package/Runtime/Entity/Models/InventoryResponseModels.cs +3 -3
  131. package/Runtime/Entity/Models/InventoryResponseModels.cs.meta +11 -11
  132. package/Runtime/Entity/Models/MasterPlayerModels.cs +435 -431
  133. package/Runtime/Entity/Models/MasterPlayerModels.cs.meta +11 -11
  134. package/Runtime/Entity/Models/MasterPlayerRequestModels.cs +368 -454
  135. package/Runtime/Entity/Models/MasterPlayerRequestModels.cs.meta +11 -11
  136. package/Runtime/Entity/Models/MasterPlayerResponseModels.cs +5 -5
  137. package/Runtime/Entity/Models/MasterPlayerResponseModels.cs.meta +11 -11
  138. package/Runtime/Entity/Models/MultiplayerModels.cs +65 -65
  139. package/Runtime/Entity/Models/MultiplayerModels.cs.meta +11 -11
  140. package/Runtime/Entity/Models/MultiplayerRequestModels.cs +43 -53
  141. package/Runtime/Entity/Models/MultiplayerRequestModels.cs.meta +11 -11
  142. package/Runtime/Entity/Models/MultiplayerResponseModels.cs +2 -2
  143. package/Runtime/Entity/Models/MultiplayerResponseModels.cs.meta +11 -11
  144. package/Runtime/Entity/Models/StoreInventoryModels.cs +156 -156
  145. package/Runtime/Entity/Models/StoreInventoryModels.cs.meta +11 -11
  146. package/Runtime/Entity/Models/StoreInventoryRequestModels.cs +65 -79
  147. package/Runtime/Entity/Models/StoreInventoryRequestModels.cs.meta +11 -11
  148. package/Runtime/Entity/Models/StoreInventoryResponseModels.cs +3 -3
  149. package/Runtime/Entity/Models/StoreInventoryResponseModels.cs.meta +11 -11
  150. package/Runtime/Entity/Models.meta +8 -8
  151. package/Runtime/Entity/OperationEvent.cs +6 -29
  152. package/Runtime/Entity/OperationEvent.cs.meta +11 -11
  153. package/Runtime/Entity/OperationRequest.cs +9 -31
  154. package/Runtime/Entity/OperationRequest.cs.meta +11 -11
  155. package/Runtime/Entity/OperationResponse.cs +9 -29
  156. package/Runtime/Entity/OperationResponse.cs.meta +11 -11
  157. package/Runtime/Entity/Request/CustomOperationRequest.cs +8 -13
  158. package/Runtime/Entity/Request/CustomOperationRequest.cs.meta +11 -11
  159. package/Runtime/Entity/Request.meta +8 -8
  160. package/Runtime/Entity/Response/CustomOperationResponse.cs +6 -7
  161. package/Runtime/Entity/Response/CustomOperationResponse.cs.meta +11 -11
  162. package/Runtime/Entity/Response/GetAuthInfoResponse.cs +2 -2
  163. package/Runtime/Entity/Response/GetAuthInfoResponse.cs.meta +11 -11
  164. package/Runtime/Entity/Response/HealthCheckResponse.cs +33 -0
  165. package/Runtime/Entity/Response/HealthCheckResponse.cs.meta +11 -0
  166. package/Runtime/Entity/Response/UploadFileResponse.cs +1 -1
  167. package/Runtime/Entity/Response/UploadFileResponse.cs.meta +11 -11
  168. package/Runtime/Entity/Response.meta +8 -8
  169. package/Runtime/Entity.meta +8 -8
  170. package/Runtime/GNNetwork.cs +70 -62
  171. package/Runtime/GNNetwork.cs.meta +11 -11
  172. package/Runtime/GNNetworkApi.cs +28 -7
  173. package/Runtime/GNNetworkApi.cs.meta +11 -11
  174. package/Runtime/GNNetworkAuthenticateApi.cs +22 -23
  175. package/Runtime/GNNetworkAuthenticateApi.cs.meta +11 -11
  176. package/Runtime/GNNetworkCharacterPlayerApi.cs +203 -204
  177. package/Runtime/GNNetworkCharacterPlayerApi.cs.meta +11 -11
  178. package/Runtime/GNNetworkCloudScriptApi.cs +19 -20
  179. package/Runtime/GNNetworkCloudScriptApi.cs.meta +11 -11
  180. package/Runtime/GNNetworkContentApi.cs +25 -26
  181. package/Runtime/GNNetworkContentApi.cs.meta +11 -11
  182. package/Runtime/GNNetworkDashboardApi.cs +47 -39
  183. package/Runtime/GNNetworkDashboardApi.cs.meta +11 -11
  184. package/Runtime/GNNetworkGamePlayerApi.cs +202 -203
  185. package/Runtime/GNNetworkGamePlayerApi.cs.meta +11 -11
  186. package/Runtime/GNNetworkGroupApi.cs +151 -152
  187. package/Runtime/GNNetworkGroupApi.cs.meta +11 -11
  188. package/Runtime/GNNetworkInventoryApi.cs +115 -116
  189. package/Runtime/GNNetworkInventoryApi.cs.meta +11 -11
  190. package/Runtime/GNNetworkMasterPlayerApi.cs +278 -279
  191. package/Runtime/GNNetworkMasterPlayerApi.cs.meta +11 -11
  192. package/Runtime/GNNetworkMultiplayerApi.cs +34 -35
  193. package/Runtime/GNNetworkMultiplayerApi.cs.meta +11 -11
  194. package/Runtime/GNNetworkStoreInventoryApi.cs +55 -56
  195. package/Runtime/GNNetworkStoreInventoryApi.cs.meta +11 -11
  196. package/Runtime/Helper/CodeHelper.cs +47 -57
  197. package/Runtime/Helper/CodeHelper.cs.meta +11 -11
  198. package/Runtime/Helper/ConverterService.cs +7 -4
  199. package/Runtime/Helper/ConverterService.cs.meta +11 -11
  200. package/Runtime/Helper/GNUtils.cs +2 -2
  201. package/Runtime/Helper/GNUtils.cs.meta +11 -11
  202. package/Runtime/Helper/MessagePackConverterService.cs +1 -1
  203. package/Runtime/Helper/MessagePackConverterService.cs.meta +11 -11
  204. package/Runtime/{Entity → Helper}/OperationHelper.cs +12 -11
  205. package/Runtime/{Entity → Helper}/OperationHelper.cs.meta +11 -11
  206. package/Runtime/Helper/ParseGNHelper.cs +1 -1
  207. package/Runtime/Helper/ParseGNHelper.cs.meta +11 -11
  208. package/Runtime/Helper/StorageService.cs +17 -0
  209. package/Runtime/Helper/StorageService.cs.meta +11 -0
  210. package/Runtime/Helper.meta +8 -8
  211. package/Runtime/Logger/GNDebug.cs +4 -35
  212. package/Runtime/Logger/GNDebug.cs.meta +11 -11
  213. package/Runtime/Logger/LogType.cs +35 -0
  214. package/Runtime/Logger/LogType.cs.meta +11 -0
  215. package/Runtime/Logger.meta +8 -8
  216. package/Runtime/Networking/AuthenticateStatus.cs +1 -1
  217. package/Runtime/Networking/AuthenticateStatus.cs.meta +11 -11
  218. package/Runtime/Networking/Handler/IServerEventHandler.cs +3 -3
  219. package/Runtime/Networking/Handler/IServerEventHandler.cs.meta +11 -11
  220. package/Runtime/Networking/Handler/OnCharacterPlayerFriendUpdateEventHandler.cs +10 -10
  221. package/Runtime/Networking/Handler/OnCharacterPlayerFriendUpdateEventHandler.cs.meta +11 -11
  222. package/Runtime/Networking/Handler/OnCharacterPlayerGroupUpdateEventHandler.cs +10 -10
  223. package/Runtime/Networking/Handler/OnCharacterPlayerGroupUpdateEventHandler.cs.meta +11 -11
  224. package/Runtime/Networking/Handler/OnGamePlayerFriendUpdateEventHandler.cs +10 -10
  225. package/Runtime/Networking/Handler/OnGamePlayerFriendUpdateEventHandler.cs.meta +11 -11
  226. package/Runtime/Networking/Handler/OnGamePlayerGroupUpdateEventHandler.cs +10 -10
  227. package/Runtime/Networking/Handler/OnGamePlayerGroupUpdateEventHandler.cs.meta +11 -11
  228. package/Runtime/Networking/Handler/OnGroupMemberUpdateEventHandler.cs +9 -9
  229. package/Runtime/Networking/Handler/OnGroupMemberUpdateEventHandler.cs.meta +11 -11
  230. package/Runtime/Networking/Handler/OnGroupMessageUpdateEventHandler.cs +9 -9
  231. package/Runtime/Networking/Handler/OnGroupMessageUpdateEventHandler.cs.meta +11 -11
  232. package/Runtime/Networking/Handler.meta +8 -8
  233. package/Runtime/Networking/Http/HttpPeer.cs +43 -41
  234. package/Runtime/Networking/Http/HttpPeer.cs.meta +11 -11
  235. package/Runtime/Networking/Http/NetworkingHttpPeerBase.cs +5 -6
  236. package/Runtime/Networking/Http/NetworkingHttpPeerBase.cs.meta +11 -11
  237. package/Runtime/Networking/Http/NetworkingPeerHttpClientRequest.cs +29 -31
  238. package/Runtime/Networking/Http/NetworkingPeerHttpClientRequest.cs.meta +11 -11
  239. package/Runtime/Networking/Http/NetworkingPeerHttpRequest.cs +15 -17
  240. package/Runtime/Networking/Http/NetworkingPeerHttpRequest.cs.meta +11 -11
  241. package/Runtime/Networking/Http/NetworkingPeerUnityWebRequest.cs +16 -18
  242. package/Runtime/Networking/Http/NetworkingPeerUnityWebRequest.cs.meta +11 -11
  243. package/Runtime/Networking/Http.meta +8 -8
  244. package/Runtime/Networking/IPeer.cs +6 -7
  245. package/Runtime/Networking/IPeer.cs.meta +11 -11
  246. package/Runtime/Networking/NetworkingPeer.cs +32 -26
  247. package/Runtime/Networking/NetworkingPeer.cs.meta +11 -11
  248. package/Runtime/Networking/NetworkingPeerAPI.cs +95 -21
  249. package/Runtime/Networking/NetworkingPeerAPI.cs.meta +11 -11
  250. package/Runtime/Networking/OperationPending.cs +21 -22
  251. package/Runtime/Networking/OperationPending.cs.meta +11 -11
  252. package/Runtime/Networking/PeerBase.cs +33 -42
  253. package/Runtime/Networking/PeerBase.cs.meta +11 -11
  254. package/Runtime/Networking/Socket/NetworkingPeerSocketIOUnity.cs +277 -0
  255. package/Runtime/Networking/Socket/NetworkingPeerSocketIOUnity.cs.meta +11 -0
  256. package/Runtime/Networking/Socket/NetworkingPeerSocketV2.cs +22 -20
  257. package/Runtime/Networking/Socket/NetworkingPeerSocketV2.cs.meta +11 -11
  258. package/Runtime/Networking/Socket/NetworkingPeerSocketV3.cs +22 -20
  259. package/Runtime/Networking/Socket/NetworkingPeerSocketV3.cs.meta +11 -11
  260. package/Runtime/Networking/Socket/NetworkingSocketPeerBase.cs +109 -61
  261. package/Runtime/Networking/Socket/NetworkingSocketPeerBase.cs.meta +11 -11
  262. package/Runtime/Networking/Socket/SocketPeer.cs +62 -45
  263. package/Runtime/Networking/Socket/SocketPeer.cs.meta +11 -11
  264. package/Runtime/Networking/Socket.meta +8 -8
  265. package/Runtime/Networking.meta +8 -8
  266. package/Runtime/Unity/ServiceCoroutine.cs +1 -1
  267. package/Runtime/Unity/ServiceCoroutine.cs.meta +11 -11
  268. package/Runtime/Unity/ServiceUpdate.cs +2 -2
  269. package/Runtime/Unity/ServiceUpdate.cs.meta +11 -11
  270. package/Runtime/Unity.meta +8 -8
  271. package/Runtime/XmobiTea.GN.runtime.asmdef +2 -1
  272. package/Runtime/XmobiTea.GN.runtime.asmdef.meta +7 -7
  273. package/Runtime.meta +8 -8
  274. package/package.json +3 -3
  275. package/package.json.meta +7 -7
  276. package/Runtime/Constant/ParameterCode/GNParameterCode.cs +0 -648
@@ -1,4 +1,4 @@
1
- namespace XmobiTea.GN.Config
1
+ namespace XmobiTea.GearN.Config
2
2
  {
3
3
  using UnityEngine;
4
4
 
@@ -7,20 +7,30 @@
7
7
  /// </summary>
8
8
  public enum PeerSocketVersion
9
9
  {
10
+ None = 0,
11
+ #if UNITY_USING_BEST_HTTP
12
+ /// <summary>
13
+ /// Socket.IO version 2 with protocol v2 from BestHttp2.
14
+ /// </summary>
15
+ V2_v2_BestHttp = 1,
16
+
10
17
  /// <summary>
11
- /// Socket.IO version 2 with protocol v2.
18
+ /// Socket.IO version 2 with protocol v3 from BestHttp2.
12
19
  /// </summary>
13
- V2_v2 = 0,
20
+ V2_v3_BestHttp = 2,
14
21
 
15
22
  /// <summary>
16
- /// Socket.IO version 2 with protocol v3.
23
+ /// Socket.IO version 3 from BestHttp2.
17
24
  /// </summary>
18
- V2_v3 = 1,
25
+ V3_BestHttp = 3,
26
+ #endif
19
27
 
28
+ #if UNITY_USING_SOCKET_IO_UNITY
20
29
  /// <summary>
21
- /// Socket.IO version 3.
30
+ /// Socket.IO version 4 from SocketIOUnity
22
31
  /// </summary>
23
- V3 = 2,
32
+ V4_SocketIOUnity = 4,
33
+ #endif
24
34
  }
25
35
 
26
36
  /// <summary>
@@ -41,9 +51,15 @@
41
51
  #endif
42
52
 
43
53
  /// <summary>
44
- /// HttpWebRequest for HTTP requests.
54
+ /// HttpClientRequest for HTTP requests.
45
55
  /// </summary>
46
- HttpWebRequest = 2,
56
+ HttpClientRequest = 2,
57
+ }
58
+
59
+ public enum MessageType
60
+ {
61
+ Json = 1,
62
+ MsgPack = 2,
47
63
  }
48
64
 
49
65
  /// <summary>
@@ -72,6 +88,12 @@
72
88
  [SerializeField]
73
89
  private bool useHttp = true;
74
90
 
91
+ [SerializeField]
92
+ private int defaultTimeoutInSeconds = 20;
93
+
94
+ [SerializeField]
95
+ private MessageType messageType = MessageType.MsgPack;
96
+
75
97
  [SerializeField]
76
98
  private int sendRate = 20;
77
99
 
@@ -94,13 +116,13 @@
94
116
  private string clientSecretKey;
95
117
 
96
118
  [SerializeField]
97
- private PeerSocketVersion peerSocketVersion = PeerSocketVersion.V3;
119
+ private PeerSocketVersion peerSocketVersion = PeerSocketVersion.None;
98
120
 
99
121
  [SerializeField]
100
122
  private HttpRequestType httpRequestType = HttpRequestType.UnityWebRequest;
101
123
 
102
124
  [SerializeField]
103
- private GN.Logger.LogType logType = GN.Logger.LogType.All;
125
+ private GearN.Logger.LogType logType = GearN.Logger.LogType.All;
104
126
 
105
127
  /// <summary>
106
128
  /// Gets the server address.
@@ -108,78 +130,112 @@
108
130
  /// <returns>The server address.</returns>
109
131
  public string getServerAddress() => this.serverAddress;
110
132
 
133
+ public void setServerAddress(string serverAddress) => this.serverAddress = serverAddress;
134
+
111
135
  /// <summary>
112
136
  /// Gets the server port.
113
137
  /// </summary>
114
138
  /// <returns>The server port.</returns>
115
139
  public int getServerPort() => this.serverPort;
116
140
 
141
+ public void setServerPort(int serverPort) => this.serverPort = serverPort;
142
+
117
143
  /// <summary>
118
144
  /// Gets the server socket port.
119
145
  /// </summary>
120
146
  /// <returns>The server socket port.</returns>
121
147
  public int getServerSocketPort() => this.serverSocketPort;
122
148
 
149
+ public void setServerSocketPort(int serverSocketPort) => this.serverSocketPort = serverSocketPort;
150
+
123
151
  /// <summary>
124
152
  /// Indicates whether SSL is used.
125
153
  /// </summary>
126
154
  /// <returns>True if SSL is used; otherwise, false.</returns>
127
155
  public bool isUseSsl() => this.useSsl;
128
156
 
157
+ public void setUseSsl(bool useSsl) => this.useSsl = useSsl;
158
+
129
159
  /// <summary>
130
160
  /// Indicates whether socket communication is enabled.
131
161
  /// </summary>
132
162
  /// <returns>True if socket is used; otherwise, false.</returns>
133
163
  public bool isUseSocket() => this.useSocket;
134
164
 
165
+ public void setUseSocket(bool useSocket) => this.useSocket = useSocket;
166
+
135
167
  /// <summary>
136
168
  /// Indicates whether HTTP communication is enabled.
137
169
  /// </summary>
138
170
  /// <returns>True if HTTP is used; otherwise, false.</returns>
139
171
  public bool isUseHttp() => this.useHttp;
140
172
 
173
+ public void setUseHttp(bool useHttp) => this.useHttp = useHttp;
174
+
175
+ public int getDefaultTimeoutInSeconds() => this.defaultTimeoutInSeconds;
176
+
177
+ public void setDefaultTimeoutInSeconds(int defaultTimeoutInSeconds) => this.defaultTimeoutInSeconds = defaultTimeoutInSeconds;
178
+
179
+ public MessageType getMessageType() => this.messageType;
180
+
181
+ public void setMessageType(MessageType messageType) => this.messageType = messageType;
182
+
141
183
  /// <summary>
142
184
  /// Gets the message send rate.
143
185
  /// </summary>
144
186
  /// <returns>The send rate.</returns>
145
187
  public int getSendRate() => this.sendRate;
146
188
 
189
+ public void setSendRate(int sendRate) => this.sendRate = sendRate;
190
+
147
191
  /// <summary>
148
192
  /// Gets the reconnect delay in milliseconds.
149
193
  /// </summary>
150
194
  /// <returns>The reconnect delay.</returns>
151
195
  public int getReconnectDelay() => this.reconnectDelay;
152
196
 
197
+ public void setReconnectDelay(int reconnectDelay) => this.reconnectDelay = reconnectDelay;
198
+
153
199
  /// <summary>
154
200
  /// Gets the ping interval in milliseconds.
155
201
  /// </summary>
156
202
  /// <returns>The ping interval.</returns>
157
203
  public float getPingInterval() => this.pingInterval;
158
204
 
205
+ public void setPingInterval(int pingInterval) => this.pingInterval = pingInterval;
206
+
159
207
  /// <summary>
160
208
  /// Gets the ping timeout in milliseconds.
161
209
  /// </summary>
162
210
  /// <returns>The ping timeout.</returns>
163
211
  public float getPingTimeout() => this.pingTimeout;
164
212
 
213
+ public void setPingTimeout(float pingTimeout) => this.pingTimeout = pingTimeout;
214
+
165
215
  /// <summary>
166
216
  /// Gets the admin secret key.
167
217
  /// </summary>
168
218
  /// <returns>The admin secret key.</returns>
169
219
  public string getAdminSecretKey() => this.adminSecretKey;
170
220
 
221
+ public void setAdminSecretKey(string adminSecretKey) => this.adminSecretKey = adminSecretKey;
222
+
171
223
  /// <summary>
172
224
  /// Gets the server secret key.
173
225
  /// </summary>
174
226
  /// <returns>The server secret key.</returns>
175
227
  public string getServerSecretKey() => this.serverSecretKey;
176
228
 
229
+ public void setServerSecretKey(string serverSecretKey) => this.serverSecretKey = serverSecretKey;
230
+
177
231
  /// <summary>
178
232
  /// Gets the client secret key.
179
233
  /// </summary>
180
234
  /// <returns>The client secret key.</returns>
181
235
  public string getClientSecretKey() => this.clientSecretKey;
182
236
 
237
+ public void setClientSecretKey(string clientSecretKey) => this.clientSecretKey = clientSecretKey;
238
+
183
239
  /// <summary>
184
240
  /// Gets the peer socket version.
185
241
  /// </summary>
@@ -196,7 +252,9 @@
196
252
  /// Gets the log type.
197
253
  /// </summary>
198
254
  /// <returns>The log type.</returns>
199
- public GN.Logger.LogType getLogType() => this.logType;
255
+ public GearN.Logger.LogType getLogType() => this.logType;
256
+
257
+ public void setLogType(GearN.Logger.LogType logType) => this.logType = logType;
200
258
 
201
259
  /// <summary>
202
260
  /// Constructs the socket URL.
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 1f5a0d671baecc84a96081fada3dd9e4
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 1f5a0d671baecc84a96081fada3dd9e4
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,8 +1,8 @@
1
- fileFormatVersion: 2
2
- guid: ffaf78f72b4123b4aa40cc27bc08417f
3
- folderAsset: yes
4
- DefaultImporter:
5
- externalObjects: {}
6
- userData:
7
- assetBundleName:
8
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: ffaf78f72b4123b4aa40cc27bc08417f
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -1,4 +1,4 @@
1
- namespace XmobiTea.GN.Constant
1
+ namespace XmobiTea.GearN.Constant
2
2
  {
3
3
  /// <summary>
4
4
  /// Holds constant values used throughout the GN networking system.
@@ -33,57 +33,57 @@
33
33
  /// <summary>
34
34
  /// Key for the authentication token in requests.
35
35
  /// </summary>
36
- public const string RequestAuthTokenCmd = "a";
36
+ public const string RequestAuthTokenCmd = "Auth-Token";
37
37
 
38
38
  /// <summary>
39
39
  /// Key for the secret key in requests.
40
40
  /// </summary>
41
- public const string RequestSecretCmd = "s";
41
+ public const string RequestSecretCmd = "Secret-Key";
42
42
 
43
43
  /// <summary>
44
44
  /// Key for the gameId key in requests.
45
45
  /// </summary>
46
- public const string RequestGameIdCmd = "g";
46
+ public const string RequestGameIdCmd = "Game-Id";
47
47
 
48
48
  /// <summary>
49
49
  /// Key for MsgPack request commands.
50
50
  /// </summary>
51
- public const string RequestCmd_MsgPack = "r";
51
+ public const string RequestCmd_MsgPack = "rMsgPack";
52
52
 
53
53
  /// <summary>
54
54
  /// Key for MsgPack response commands.
55
55
  /// </summary>
56
- public const string ResponseCmd_MsgPack = "r";
56
+ public const string ResponseCmd_MsgPack = "rMsgPack";
57
57
 
58
58
  /// <summary>
59
59
  /// Key for MsgPack event commands.
60
60
  /// </summary>
61
- public const string EventCmd_MsgPack = "e";
61
+ public const string EventCmd_MsgPack = "eMsgPack";
62
62
 
63
63
  /// <summary>
64
64
  /// Key for JSON request commands.
65
65
  /// </summary>
66
- public const string RequestCmd_Json = "t";
66
+ public const string RequestCmd_Json = "rJson";
67
67
 
68
68
  /// <summary>
69
69
  /// Key for JSON response commands.
70
70
  /// </summary>
71
- public const string ResponseCmd_Json = "t";
71
+ public const string ResponseCmd_Json = "rJson";
72
72
 
73
73
  /// <summary>
74
74
  /// Key for JSON event commands.
75
75
  /// </summary>
76
- public const string EventCmd_Json = "y";
76
+ public const string EventCmd_Json = "eJson";
77
77
 
78
78
  /// <summary>
79
79
  /// General key for data fields.
80
80
  /// </summary>
81
- public const string Data = "d";
81
+ public const string Data = "data";
82
82
 
83
83
  /// <summary>
84
84
  /// Key for file fields.
85
85
  /// </summary>
86
- public const string File = "f";
86
+ public const string File = "file";
87
87
 
88
88
  /// <summary>
89
89
  /// Private constructor to prevent instantiation of this utility class.
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: ceac771235ac3ad43b6c9eb215cf1b7d
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: ceac771235ac3ad43b6c9eb215cf1b7d
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,4 +1,4 @@
1
- namespace XmobiTea.GN.Constant
1
+ namespace XmobiTea.GearN.Constant
2
2
  {
3
3
  public enum ExecuteResponseStatus
4
4
  {
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: a47fe9a70cba79b42a406fea5719b286
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: a47fe9a70cba79b42a406fea5719b286
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,4 +1,4 @@
1
- namespace XmobiTea.GN.Constant
1
+ namespace XmobiTea.GearN.Constant
2
2
  {
3
3
  public enum FriendStatus
4
4
  {
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 2c9ae4fd7faaae7488a70ea9a538f38c
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 2c9ae4fd7faaae7488a70ea9a538f38c
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,4 +1,4 @@
1
- namespace XmobiTea.GN.Constant
1
+ namespace XmobiTea.GearN.Constant
2
2
  {
3
3
  public enum GoogleLoginType
4
4
  {
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 4576809c05f4d1642889f463afce2d0b
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 4576809c05f4d1642889f463afce2d0b
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,4 +1,4 @@
1
- namespace XmobiTea.GN.Constant
1
+ namespace XmobiTea.GearN.Constant
2
2
  {
3
3
  public enum GroupStatus
4
4
  {
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 779cfd8373db86d4ab9e820c032c1fc0
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 779cfd8373db86d4ab9e820c032c1fc0
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,4 +1,4 @@
1
- namespace XmobiTea.GN.Constant
1
+ namespace XmobiTea.GearN.Constant
2
2
  {
3
3
  public enum InvalidMemberType
4
4
  {
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: df262f4500fda8547b8056fd0a7a1001
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: df262f4500fda8547b8056fd0a7a1001
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,4 +1,4 @@
1
- namespace XmobiTea.GN.Constant
1
+ namespace XmobiTea.GearN.Constant
2
2
  {
3
3
  public enum ItemType
4
4
  {
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: cfc1a2632567b6048807d780f8c82f74
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: cfc1a2632567b6048807d780f8c82f74
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,4 +1,4 @@
1
- namespace XmobiTea.GN.Constant
1
+ namespace XmobiTea.GearN.Constant
2
2
  {
3
3
  public enum MatchmakingMemberStatus
4
4
  {
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 3d0ecb4f8957d344aadaae7e4069f4f0
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 3d0ecb4f8957d344aadaae7e4069f4f0
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,4 +1,4 @@
1
- namespace XmobiTea.GN.Constant
1
+ namespace XmobiTea.GearN.Constant
2
2
  {
3
3
  public enum MatchmakingTicketStatus
4
4
  {
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 89d3e5c556b6e994090dc0d7dfbb394f
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 89d3e5c556b6e994090dc0d7dfbb394f
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,4 +1,4 @@
1
- namespace XmobiTea.GN.Constant
1
+ namespace XmobiTea.GearN.Constant
2
2
  {
3
3
  public enum OwnerType
4
4
  {
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 3c3a06f93b513f044aa1af005c7ac5a6
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 3c3a06f93b513f044aa1af005c7ac5a6
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,4 +1,4 @@
1
- namespace XmobiTea.GN.Constant
1
+ namespace XmobiTea.GearN.Constant
2
2
  {
3
3
  public enum PermissionDataItem
4
4
  {
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 6e97d252d2d40ee43806a1b6ec384aef
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 6e97d252d2d40ee43806a1b6ec384aef
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant: