com.xmobitea.changx.gn-unity 2.0.1 → 2.0.3
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.
- package/Editor/GNServerSettingsEditor.cs +27 -23
- package/Runtime/Common/GNArray.cs +302 -302
- package/Runtime/Common/GNArray.cs.meta +11 -11
- package/Runtime/Common/GNData.cs +48 -48
- package/Runtime/Common/GNData.cs.meta +11 -11
- package/Runtime/Common/GNHashtable.cs +241 -241
- package/Runtime/Common/GNHashtable.cs.meta +11 -11
- package/Runtime/Common/IGNData.cs +11 -11
- package/Runtime/Common/IGNData.cs.meta +11 -11
- package/Runtime/Common.meta +8 -8
- package/Runtime/Config/GNServerSettings.cs.meta +11 -11
- package/Runtime/Config.meta +8 -8
- package/Runtime/Constant/Commands.cs.meta +11 -11
- package/Runtime/Constant/EnumType/FriendStatus.cs +12 -12
- package/Runtime/Constant/EnumType/FriendStatus.cs.meta +11 -11
- package/Runtime/Constant/EnumType/GoogleLoginType.cs.meta +11 -11
- package/Runtime/Constant/EnumType/GroupStatus.cs.meta +11 -11
- package/Runtime/Constant/EnumType/InvalidMemberType.cs +23 -23
- package/Runtime/Constant/EnumType/InvalidMemberType.cs.meta +11 -11
- package/Runtime/Constant/EnumType/ItemType.cs.meta +11 -11
- package/Runtime/Constant/EnumType/MatchmakingMemberStatus.cs.meta +11 -11
- package/Runtime/Constant/EnumType/MatchmakingTicketStatus.cs.meta +11 -11
- package/Runtime/Constant/EnumType/OwnerType.cs.meta +11 -11
- package/Runtime/Constant/EnumType/PermissionDataItem.cs +10 -10
- package/Runtime/Constant/EnumType/PermissionDataItem.cs.meta +11 -11
- package/Runtime/Constant/EnumType/RequestRole.cs +11 -11
- package/Runtime/Constant/EnumType/RequestRole.cs.meta +7 -7
- package/Runtime/Constant/EnumType/RequestType.cs +19 -19
- package/Runtime/Constant/EnumType/RequestType.cs.meta +11 -11
- package/Runtime/Constant/EnumType.meta +8 -8
- package/Runtime/Constant/ErrorCode/GNErrorCode.cs.meta +7 -7
- package/Runtime/Constant/ErrorCode.meta +8 -8
- package/Runtime/Constant/EventCode.cs +16 -16
- package/Runtime/Constant/EventCode.cs.meta +11 -11
- package/Runtime/Constant/OperationCode.cs.meta +11 -11
- package/Runtime/Constant/ParameterCode/GNParameterCode.cs.meta +11 -11
- package/Runtime/Constant/ParameterCode/ParameterCode.cs +12 -12
- package/Runtime/Constant/ParameterCode/ParameterCode.cs.meta +11 -11
- package/Runtime/Constant/ParameterCode.meta +8 -8
- package/Runtime/Constant/ReturnCode.cs +25 -25
- package/Runtime/Constant/ReturnCode.cs.meta +11 -11
- package/Runtime/Constant.meta +8 -8
- package/Runtime/Entity/DataMember.cs +124 -124
- package/Runtime/Entity/DataMember.cs.meta +11 -11
- package/Runtime/Entity/GNMetadata.cs +27 -27
- package/Runtime/Entity/GNMetadata.cs.meta +11 -11
- package/Runtime/Entity/InvalidMember.cs +33 -33
- package/Runtime/Entity/InvalidMember.cs.meta +11 -11
- package/Runtime/Entity/Models/AuthenticateModels.cs.meta +11 -11
- package/Runtime/Entity/Models/AuthenticateRequestModels.cs.meta +11 -11
- package/Runtime/Entity/Models/AuthenticateResponseModels.cs.meta +11 -11
- package/Runtime/Entity/Models/CharacterPlayerModels.cs.meta +11 -11
- package/Runtime/Entity/Models/CharacterPlayerRequestModels.cs.meta +11 -11
- package/Runtime/Entity/Models/CharacterPlayerResponseModels.cs.meta +11 -11
- package/Runtime/Entity/Models/ContentModels.cs.meta +11 -11
- package/Runtime/Entity/Models/ContentRequestModels.cs.meta +11 -11
- package/Runtime/Entity/Models/ContentResponseModels.cs.meta +11 -11
- package/Runtime/Entity/Models/DashboardModels.cs.meta +11 -11
- package/Runtime/Entity/Models/DashboardRequestModels.cs.meta +11 -11
- package/Runtime/Entity/Models/DashboardResponseModels.cs.meta +11 -11
- package/Runtime/Entity/Models/GamePlayerModels.cs.meta +11 -11
- package/Runtime/Entity/Models/GamePlayerRequestModels.cs.meta +11 -11
- package/Runtime/Entity/Models/GamePlayerResponseModels.cs.meta +11 -11
- package/Runtime/Entity/Models/GenericModels.cs.meta +11 -11
- package/Runtime/Entity/Models/GroupModels.cs.meta +11 -11
- package/Runtime/Entity/Models/GroupRequestModels.cs.meta +11 -11
- package/Runtime/Entity/Models/GroupResponseModels.cs.meta +11 -11
- package/Runtime/Entity/Models/InventoryModels.cs.meta +11 -11
- package/Runtime/Entity/Models/InventoryRequestModels.cs.meta +11 -11
- package/Runtime/Entity/Models/InventoryResponseModels.cs.meta +11 -11
- package/Runtime/Entity/Models/MasterPlayerModels.cs.meta +11 -11
- package/Runtime/Entity/Models/MasterPlayerRequestModels.cs.meta +11 -11
- package/Runtime/Entity/Models/MasterPlayerResponseModels.cs.meta +11 -11
- package/Runtime/Entity/Models/MultiplayerModels.cs.meta +11 -11
- package/Runtime/Entity/Models/MultiplayerRequestModels.cs.meta +11 -11
- package/Runtime/Entity/Models/MultiplayerResponseModels.cs +49 -49
- package/Runtime/Entity/Models/MultiplayerResponseModels.cs.meta +11 -11
- package/Runtime/Entity/Models/StoreInventoryModels.cs.meta +11 -11
- package/Runtime/Entity/Models/StoreInventoryRequestModels.cs.meta +11 -11
- package/Runtime/Entity/Models/StoreInventoryResponseModels.cs.meta +11 -11
- package/Runtime/Entity/Models.meta +8 -8
- package/Runtime/Entity/OperationEvent.cs +75 -75
- package/Runtime/Entity/OperationEvent.cs.meta +11 -11
- package/Runtime/Entity/OperationHelper.cs +35 -35
- package/Runtime/Entity/OperationHelper.cs.meta +11 -11
- package/Runtime/Entity/OperationRequest.cs +99 -99
- package/Runtime/Entity/OperationRequest.cs.meta +11 -11
- package/Runtime/Entity/OperationResponse.cs.meta +11 -11
- package/Runtime/Entity/Request/CustomOperationRequest.cs +61 -61
- package/Runtime/Entity/Request/CustomOperationRequest.cs.meta +11 -11
- package/Runtime/Entity/Request.meta +8 -8
- package/Runtime/Entity/Response/CustomOperationResponse.cs +63 -63
- package/Runtime/Entity/Response/CustomOperationResponse.cs.meta +11 -11
- package/Runtime/Entity/Response.meta +8 -8
- package/Runtime/Entity.meta +8 -8
- package/Runtime/GNNetwork.cs +182 -184
- package/Runtime/GNNetwork.cs.meta +11 -11
- package/Runtime/GNNetworkApi.cs +19 -26
- package/Runtime/GNNetworkApi.cs.meta +11 -11
- package/Runtime/GNNetworkAuthenticateApi.cs.meta +11 -11
- package/Runtime/GNNetworkCharacterPlayerApi.cs.meta +11 -11
- package/Runtime/GNNetworkContentApi.cs.meta +11 -11
- package/Runtime/GNNetworkDashboardApi.cs.meta +11 -11
- package/Runtime/GNNetworkGamePlayerApi.cs.meta +11 -11
- package/Runtime/GNNetworkGroupApi.cs.meta +11 -11
- package/Runtime/GNNetworkInventoryApi.cs.meta +11 -11
- package/Runtime/GNNetworkMasterPlayerApi.cs.meta +11 -11
- package/Runtime/GNNetworkMultiplayerApi.cs.meta +11 -11
- package/Runtime/GNNetworkStoreInventoryApi.cs.meta +11 -11
- package/Runtime/Helper/CodeHelper.cs +97 -97
- package/Runtime/Helper/CodeHelper.cs.meta +11 -11
- package/Runtime/Helper/ConverterService.cs +12 -22
- package/Runtime/Helper/ConverterService.cs.meta +11 -11
- package/Runtime/Helper/ParseGNHelper.cs +451 -451
- package/Runtime/Helper/ParseGNHelper.cs.meta +11 -11
- package/Runtime/Helper.meta +8 -8
- package/Runtime/Logger/GNDebug.cs +49 -49
- package/Runtime/Logger/GNDebug.cs.meta +11 -11
- package/Runtime/Logger.meta +8 -8
- package/Runtime/Networking/AuthenticateStatus.cs +35 -35
- package/Runtime/Networking/AuthenticateStatus.cs.meta +11 -11
- package/Runtime/Networking/Handler/IServerEventHandler.cs +25 -25
- package/Runtime/Networking/Handler/IServerEventHandler.cs.meta +11 -11
- package/Runtime/Networking/Handler/OnCharacterPlayerFriendUpdateEventHandler.cs +32 -32
- package/Runtime/Networking/Handler/OnCharacterPlayerFriendUpdateEventHandler.cs.meta +11 -11
- package/Runtime/Networking/Handler/OnCharacterPlayerGroupUpdateEventHandler.cs +33 -33
- package/Runtime/Networking/Handler/OnCharacterPlayerGroupUpdateEventHandler.cs.meta +11 -11
- package/Runtime/Networking/Handler/OnGamePlayerFriendUpdateEventHandler.cs +32 -32
- package/Runtime/Networking/Handler/OnGamePlayerFriendUpdateEventHandler.cs.meta +11 -11
- package/Runtime/Networking/Handler/OnGamePlayerGroupUpdateEventHandler.cs +32 -32
- package/Runtime/Networking/Handler/OnGamePlayerGroupUpdateEventHandler.cs.meta +11 -11
- package/Runtime/Networking/Handler/OnGroupMemberUpdateEventHandler.cs +29 -29
- package/Runtime/Networking/Handler/OnGroupMemberUpdateEventHandler.cs.meta +11 -11
- package/Runtime/Networking/Handler/OnGroupMessageUpdateEventHandler.cs +29 -29
- package/Runtime/Networking/Handler/OnGroupMessageUpdateEventHandler.cs.meta +11 -11
- package/Runtime/Networking/Handler.meta +8 -8
- package/Runtime/Networking/Http/HttpPeer.cs.meta +11 -11
- package/Runtime/Networking/Http/NetworkingHttpPeerBase.cs +25 -25
- package/Runtime/Networking/Http/NetworkingHttpPeerBase.cs.meta +11 -11
- package/Runtime/Networking/Http/NetworkingPeerHttpClientRequest.cs +486 -486
- package/Runtime/Networking/Http/NetworkingPeerHttpClientRequest.cs.meta +11 -11
- package/Runtime/Networking/Http/NetworkingPeerHttpRequest.cs +142 -142
- package/Runtime/Networking/Http/NetworkingPeerHttpRequest.cs.meta +11 -11
- package/Runtime/Networking/Http/NetworkingPeerUnityWebRequest.cs +188 -192
- package/Runtime/Networking/Http/NetworkingPeerUnityWebRequest.cs.meta +11 -11
- package/Runtime/Networking/Http.meta +8 -8
- package/Runtime/Networking/IPeer.cs +19 -19
- package/Runtime/Networking/IPeer.cs.meta +11 -11
- package/Runtime/Networking/NetworkingPeer.cs +144 -144
- package/Runtime/Networking/NetworkingPeer.cs.meta +11 -11
- package/Runtime/Networking/NetworkingPeerAPI.cs.meta +11 -11
- package/Runtime/Networking/OperationPending.cs +95 -95
- package/Runtime/Networking/OperationPending.cs.meta +11 -11
- package/Runtime/Networking/PeerBase.cs +242 -242
- package/Runtime/Networking/PeerBase.cs.meta +11 -11
- package/Runtime/Networking/Socket/NetworkingPeerSocketV2.cs +185 -183
- package/Runtime/Networking/Socket/NetworkingPeerSocketV2.cs.meta +11 -11
- package/Runtime/Networking/Socket/NetworkingPeerSocketV3.cs +177 -175
- package/Runtime/Networking/Socket/NetworkingPeerSocketV3.cs.meta +11 -11
- package/Runtime/Networking/Socket/NetworkingSocketPeerBase.cs.meta +11 -11
- package/Runtime/Networking/Socket/SocketPeer.cs +197 -191
- package/Runtime/Networking/Socket/SocketPeer.cs.meta +11 -11
- package/Runtime/Networking/Socket.meta +8 -8
- package/Runtime/Networking.meta +8 -8
- package/Runtime/Unity/ServiceUpdate.cs +20 -20
- package/Runtime/Unity/ServiceUpdate.cs.meta +11 -11
- package/Runtime/Unity.meta +8 -8
- package/Runtime/XmobiTea.GN.runtime.asmdef +16 -16
- package/Runtime/XmobiTea.GN.runtime.asmdef.meta +7 -7
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: e17c54504be90db46a4306e7c643af43
|
|
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: e17c54504be90db46a4306e7c643af43
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
package/Runtime/Helper.meta
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: a777c77e58fd1114880c52bd552936af
|
|
3
|
-
folderAsset: yes
|
|
4
|
-
DefaultImporter:
|
|
5
|
-
externalObjects: {}
|
|
6
|
-
userData:
|
|
7
|
-
assetBundleName:
|
|
8
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: a777c77e58fd1114880c52bd552936af
|
|
3
|
+
folderAsset: yes
|
|
4
|
+
DefaultImporter:
|
|
5
|
+
externalObjects: {}
|
|
6
|
+
userData:
|
|
7
|
+
assetBundleName:
|
|
8
|
+
assetBundleVariant:
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
namespace XmobiTea.GN.Logger
|
|
2
|
-
{
|
|
3
|
-
using System;
|
|
4
|
-
|
|
5
|
-
public enum LogType
|
|
6
|
-
{
|
|
7
|
-
Off,
|
|
8
|
-
Exception,
|
|
9
|
-
Error,
|
|
10
|
-
Warning,
|
|
11
|
-
All,
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
internal class GNDebug
|
|
15
|
-
{
|
|
16
|
-
private static LogType _logType;
|
|
17
|
-
public static LogType logType
|
|
18
|
-
{
|
|
19
|
-
get => _logType;
|
|
20
|
-
set => _logType = value;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
public static void log(object message)
|
|
24
|
-
{
|
|
25
|
-
if (_logType >= LogType.All)
|
|
26
|
-
UnityEngine.Debug.Log(message);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
public static void logException(Exception exception)
|
|
30
|
-
{
|
|
31
|
-
if (_logType >= LogType.Exception)
|
|
32
|
-
UnityEngine.Debug.LogException(exception);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
public static void logWarning(object message)
|
|
36
|
-
{
|
|
37
|
-
if (_logType >= LogType.Warning)
|
|
38
|
-
UnityEngine.Debug.LogWarning(message);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
public static void logError(object message)
|
|
42
|
-
{
|
|
43
|
-
if (_logType >= LogType.Error)
|
|
44
|
-
UnityEngine.Debug.LogError(message);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
}
|
|
1
|
+
namespace XmobiTea.GN.Logger
|
|
2
|
+
{
|
|
3
|
+
using System;
|
|
4
|
+
|
|
5
|
+
public enum LogType
|
|
6
|
+
{
|
|
7
|
+
Off,
|
|
8
|
+
Exception,
|
|
9
|
+
Error,
|
|
10
|
+
Warning,
|
|
11
|
+
All,
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
internal class GNDebug
|
|
15
|
+
{
|
|
16
|
+
private static LogType _logType;
|
|
17
|
+
public static LogType logType
|
|
18
|
+
{
|
|
19
|
+
get => _logType;
|
|
20
|
+
set => _logType = value;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
public static void log(object message)
|
|
24
|
+
{
|
|
25
|
+
if (_logType >= LogType.All)
|
|
26
|
+
UnityEngine.Debug.Log(message);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
public static void logException(Exception exception)
|
|
30
|
+
{
|
|
31
|
+
if (_logType >= LogType.Exception)
|
|
32
|
+
UnityEngine.Debug.LogException(exception);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
public static void logWarning(object message)
|
|
36
|
+
{
|
|
37
|
+
if (_logType >= LogType.Warning)
|
|
38
|
+
UnityEngine.Debug.LogWarning(message);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
public static void logError(object message)
|
|
42
|
+
{
|
|
43
|
+
if (_logType >= LogType.Error)
|
|
44
|
+
UnityEngine.Debug.LogError(message);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 9f669894cbb6d82468a31b23fc5041c6
|
|
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: 9f669894cbb6d82468a31b23fc5041c6
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
package/Runtime/Logger.meta
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 214d28849c4fe9949ba1a1cf8e0219ac
|
|
3
|
-
folderAsset: yes
|
|
4
|
-
DefaultImporter:
|
|
5
|
-
externalObjects: {}
|
|
6
|
-
userData:
|
|
7
|
-
assetBundleName:
|
|
8
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 214d28849c4fe9949ba1a1cf8e0219ac
|
|
3
|
+
folderAsset: yes
|
|
4
|
+
DefaultImporter:
|
|
5
|
+
externalObjects: {}
|
|
6
|
+
userData:
|
|
7
|
+
assetBundleName:
|
|
8
|
+
assetBundleVariant:
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
namespace XmobiTea.GN.Networking
|
|
2
|
-
{
|
|
3
|
-
public class AuthenticateStatus
|
|
4
|
-
{
|
|
5
|
-
private string authToken;
|
|
6
|
-
private string userId;
|
|
7
|
-
|
|
8
|
-
public string getAuthToken()
|
|
9
|
-
{
|
|
10
|
-
return this.authToken;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
internal void setAuthToken(string authToken)
|
|
14
|
-
{
|
|
15
|
-
this.authToken = authToken;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
//public bool isLoginAndValid()
|
|
19
|
-
//{
|
|
20
|
-
// return string.IsNullOrEmpty(this.authToken) && (authTokenTsExpire == -1 || GNNetwork.getServerTimestamp() < authTokenTsExpire);
|
|
21
|
-
//}
|
|
22
|
-
|
|
23
|
-
public string getUserId()
|
|
24
|
-
{
|
|
25
|
-
return this.userId;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
internal void setUserId(string userId)
|
|
29
|
-
{
|
|
30
|
-
this.userId = userId;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
}
|
|
1
|
+
namespace XmobiTea.GN.Networking
|
|
2
|
+
{
|
|
3
|
+
public class AuthenticateStatus
|
|
4
|
+
{
|
|
5
|
+
private string authToken;
|
|
6
|
+
private string userId;
|
|
7
|
+
|
|
8
|
+
public string getAuthToken()
|
|
9
|
+
{
|
|
10
|
+
return this.authToken;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
internal void setAuthToken(string authToken)
|
|
14
|
+
{
|
|
15
|
+
this.authToken = authToken;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//public bool isLoginAndValid()
|
|
19
|
+
//{
|
|
20
|
+
// return string.IsNullOrEmpty(this.authToken) && (authTokenTsExpire == -1 || GNNetwork.getServerTimestamp() < authTokenTsExpire);
|
|
21
|
+
//}
|
|
22
|
+
|
|
23
|
+
public string getUserId()
|
|
24
|
+
{
|
|
25
|
+
return this.userId;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
internal void setUserId(string userId)
|
|
29
|
+
{
|
|
30
|
+
this.userId = userId;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 9da4554a56b32ef4bb9f1bc06e7e94ba
|
|
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: 9da4554a56b32ef4bb9f1bc06e7e94ba
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
namespace XmobiTea.GN.Networking
|
|
2
|
-
{
|
|
3
|
-
using XmobiTea.GN.Entity;
|
|
4
|
-
|
|
5
|
-
/// <summary>
|
|
6
|
-
/// The interface, some class want handler event need implement IServerEventHandler
|
|
7
|
-
/// </summary>
|
|
8
|
-
public interface IServerEventHandler
|
|
9
|
-
{
|
|
10
|
-
/// <summary>
|
|
11
|
-
/// Get the event code, the event code should be store in EventCode file
|
|
12
|
-
/// </summary>
|
|
13
|
-
/// <returns></returns>
|
|
14
|
-
int getEventCode();
|
|
15
|
-
|
|
16
|
-
/// <summary>
|
|
17
|
-
/// handle function
|
|
18
|
-
/// How to handle this operation
|
|
19
|
-
/// </summary>
|
|
20
|
-
/// <param name="operationEvent">the operation event need handle</param>
|
|
21
|
-
void handle(OperationEvent operationEvent);
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
}
|
|
1
|
+
namespace XmobiTea.GN.Networking
|
|
2
|
+
{
|
|
3
|
+
using XmobiTea.GN.Entity;
|
|
4
|
+
|
|
5
|
+
/// <summary>
|
|
6
|
+
/// The interface, some class want handler event need implement IServerEventHandler
|
|
7
|
+
/// </summary>
|
|
8
|
+
public interface IServerEventHandler
|
|
9
|
+
{
|
|
10
|
+
/// <summary>
|
|
11
|
+
/// Get the event code, the event code should be store in EventCode file
|
|
12
|
+
/// </summary>
|
|
13
|
+
/// <returns></returns>
|
|
14
|
+
int getEventCode();
|
|
15
|
+
|
|
16
|
+
/// <summary>
|
|
17
|
+
/// handle function
|
|
18
|
+
/// How to handle this operation
|
|
19
|
+
/// </summary>
|
|
20
|
+
/// <param name="operationEvent">the operation event need handle</param>
|
|
21
|
+
void handle(OperationEvent operationEvent);
|
|
22
|
+
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 5989dacdf8a392b43b40c0926cba9658
|
|
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: 5989dacdf8a392b43b40c0926cba9658
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
namespace XmobiTea.GN.Networking
|
|
2
|
-
{
|
|
3
|
-
using System;
|
|
4
|
-
using System.Collections.Generic;
|
|
5
|
-
using XmobiTea.GN.Constant;
|
|
6
|
-
using XmobiTea.GN.Entity;
|
|
7
|
-
using XmobiTea.GN.Entity.Models;
|
|
8
|
-
using XmobiTea.GN.Helper;
|
|
9
|
-
|
|
10
|
-
public class CharacterPlayerFriendUpdate
|
|
11
|
-
{
|
|
12
|
-
[StringDataMember(code = GNParameterCode.CharacterId)]
|
|
13
|
-
public string characterId;
|
|
14
|
-
|
|
15
|
-
[GNArrayDataMember(code = GNParameterCode.PlayerFriends, elementCls = typeof(GenericModels.FriendItem))]
|
|
16
|
-
public List<GenericModels.FriendItem> playerFriends;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
public class OnCharacterPlayerFriendUpdateEventHandler : IServerEventHandler
|
|
20
|
-
{
|
|
21
|
-
public static Action<CharacterPlayerFriendUpdate> onUpdate;
|
|
22
|
-
|
|
23
|
-
public int getEventCode() => EventCode.OnCharacterPlayerFriendUpdate;
|
|
24
|
-
|
|
25
|
-
public void handle(OperationEvent operationEvent)
|
|
26
|
-
{
|
|
27
|
-
OnCharacterPlayerFriendUpdateEventHandler.onUpdate?.Invoke(ConverterService.deserializeObject<CharacterPlayerFriendUpdate>(operationEvent.getParameters()));
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
}
|
|
1
|
+
namespace XmobiTea.GN.Networking
|
|
2
|
+
{
|
|
3
|
+
using System;
|
|
4
|
+
using System.Collections.Generic;
|
|
5
|
+
using XmobiTea.GN.Constant;
|
|
6
|
+
using XmobiTea.GN.Entity;
|
|
7
|
+
using XmobiTea.GN.Entity.Models;
|
|
8
|
+
using XmobiTea.GN.Helper;
|
|
9
|
+
|
|
10
|
+
public class CharacterPlayerFriendUpdate
|
|
11
|
+
{
|
|
12
|
+
[StringDataMember(code = GNParameterCode.CharacterId)]
|
|
13
|
+
public string characterId;
|
|
14
|
+
|
|
15
|
+
[GNArrayDataMember(code = GNParameterCode.PlayerFriends, elementCls = typeof(GenericModels.FriendItem))]
|
|
16
|
+
public List<GenericModels.FriendItem> playerFriends;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
public class OnCharacterPlayerFriendUpdateEventHandler : IServerEventHandler
|
|
20
|
+
{
|
|
21
|
+
public static Action<CharacterPlayerFriendUpdate> onUpdate;
|
|
22
|
+
|
|
23
|
+
public int getEventCode() => EventCode.OnCharacterPlayerFriendUpdate;
|
|
24
|
+
|
|
25
|
+
public void handle(OperationEvent operationEvent)
|
|
26
|
+
{
|
|
27
|
+
OnCharacterPlayerFriendUpdateEventHandler.onUpdate?.Invoke(ConverterService.deserializeObject<CharacterPlayerFriendUpdate>(operationEvent.getParameters()));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 18c2eeebd6c30a543bc53152528adcef
|
|
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: 18c2eeebd6c30a543bc53152528adcef
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
namespace XmobiTea.GN.Networking
|
|
2
|
-
{
|
|
3
|
-
using System;
|
|
4
|
-
using System.Collections.Generic;
|
|
5
|
-
using XmobiTea.GN.Constant;
|
|
6
|
-
using XmobiTea.GN.Entity;
|
|
7
|
-
using XmobiTea.GN.Entity.Models;
|
|
8
|
-
using XmobiTea.GN.Helper;
|
|
9
|
-
|
|
10
|
-
public class CharacterPlayerGroupUpdate
|
|
11
|
-
{
|
|
12
|
-
[StringDataMember(code = GNParameterCode.CharacterId)]
|
|
13
|
-
public string characterId;
|
|
14
|
-
|
|
15
|
-
[GNArrayDataMember(code = GNParameterCode.PlayerGroups, elementCls = typeof(GenericModels.GroupItem))]
|
|
16
|
-
public List<GenericModels.GroupItem> playerGroups;
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
public class OnCharacterPlayerGroupUpdateEventHandler : IServerEventHandler
|
|
21
|
-
{
|
|
22
|
-
public static Action<CharacterPlayerGroupUpdate> onUpdate;
|
|
23
|
-
|
|
24
|
-
public int getEventCode() => EventCode.OnCharacterPlayerGroupUpdate;
|
|
25
|
-
|
|
26
|
-
public void handle(OperationEvent operationEvent)
|
|
27
|
-
{
|
|
28
|
-
OnCharacterPlayerGroupUpdateEventHandler.onUpdate?.Invoke(ConverterService.deserializeObject<CharacterPlayerGroupUpdate>(operationEvent.getParameters()));
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
}
|
|
1
|
+
namespace XmobiTea.GN.Networking
|
|
2
|
+
{
|
|
3
|
+
using System;
|
|
4
|
+
using System.Collections.Generic;
|
|
5
|
+
using XmobiTea.GN.Constant;
|
|
6
|
+
using XmobiTea.GN.Entity;
|
|
7
|
+
using XmobiTea.GN.Entity.Models;
|
|
8
|
+
using XmobiTea.GN.Helper;
|
|
9
|
+
|
|
10
|
+
public class CharacterPlayerGroupUpdate
|
|
11
|
+
{
|
|
12
|
+
[StringDataMember(code = GNParameterCode.CharacterId)]
|
|
13
|
+
public string characterId;
|
|
14
|
+
|
|
15
|
+
[GNArrayDataMember(code = GNParameterCode.PlayerGroups, elementCls = typeof(GenericModels.GroupItem))]
|
|
16
|
+
public List<GenericModels.GroupItem> playerGroups;
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
public class OnCharacterPlayerGroupUpdateEventHandler : IServerEventHandler
|
|
21
|
+
{
|
|
22
|
+
public static Action<CharacterPlayerGroupUpdate> onUpdate;
|
|
23
|
+
|
|
24
|
+
public int getEventCode() => EventCode.OnCharacterPlayerGroupUpdate;
|
|
25
|
+
|
|
26
|
+
public void handle(OperationEvent operationEvent)
|
|
27
|
+
{
|
|
28
|
+
OnCharacterPlayerGroupUpdateEventHandler.onUpdate?.Invoke(ConverterService.deserializeObject<CharacterPlayerGroupUpdate>(operationEvent.getParameters()));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 0b0be672ac1c10844a4c2fcbfb2b5084
|
|
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: 0b0be672ac1c10844a4c2fcbfb2b5084
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
namespace XmobiTea.GN.Networking
|
|
2
|
-
{
|
|
3
|
-
using System;
|
|
4
|
-
using System.Collections.Generic;
|
|
5
|
-
using XmobiTea.GN.Constant;
|
|
6
|
-
using XmobiTea.GN.Entity;
|
|
7
|
-
using XmobiTea.GN.Entity.Models;
|
|
8
|
-
using XmobiTea.GN.Helper;
|
|
9
|
-
|
|
10
|
-
public class GamePlayerFriendUpdate
|
|
11
|
-
{
|
|
12
|
-
[StringDataMember(code = GNParameterCode.CharacterId, isOptional = true)]
|
|
13
|
-
public string? characterId;
|
|
14
|
-
|
|
15
|
-
[GNArrayDataMember(code = GNParameterCode.PlayerFriends, elementCls = typeof(GenericModels.FriendItem))]
|
|
16
|
-
public List<GenericModels.FriendItem> playerFriends;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
public class OnGamePlayerFriendUpdateEventHandler : IServerEventHandler
|
|
20
|
-
{
|
|
21
|
-
public static Action<GamePlayerFriendUpdate> onUpdate;
|
|
22
|
-
|
|
23
|
-
public int getEventCode() => EventCode.OnGamePlayerFriendUpdate;
|
|
24
|
-
|
|
25
|
-
public void handle(OperationEvent operationEvent)
|
|
26
|
-
{
|
|
27
|
-
OnGamePlayerFriendUpdateEventHandler.onUpdate?.Invoke(ConverterService.deserializeObject<GamePlayerFriendUpdate>(operationEvent.getParameters()));
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
}
|
|
1
|
+
namespace XmobiTea.GN.Networking
|
|
2
|
+
{
|
|
3
|
+
using System;
|
|
4
|
+
using System.Collections.Generic;
|
|
5
|
+
using XmobiTea.GN.Constant;
|
|
6
|
+
using XmobiTea.GN.Entity;
|
|
7
|
+
using XmobiTea.GN.Entity.Models;
|
|
8
|
+
using XmobiTea.GN.Helper;
|
|
9
|
+
|
|
10
|
+
public class GamePlayerFriendUpdate
|
|
11
|
+
{
|
|
12
|
+
[StringDataMember(code = GNParameterCode.CharacterId, isOptional = true)]
|
|
13
|
+
public string? characterId;
|
|
14
|
+
|
|
15
|
+
[GNArrayDataMember(code = GNParameterCode.PlayerFriends, elementCls = typeof(GenericModels.FriendItem))]
|
|
16
|
+
public List<GenericModels.FriendItem> playerFriends;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
public class OnGamePlayerFriendUpdateEventHandler : IServerEventHandler
|
|
20
|
+
{
|
|
21
|
+
public static Action<GamePlayerFriendUpdate> onUpdate;
|
|
22
|
+
|
|
23
|
+
public int getEventCode() => EventCode.OnGamePlayerFriendUpdate;
|
|
24
|
+
|
|
25
|
+
public void handle(OperationEvent operationEvent)
|
|
26
|
+
{
|
|
27
|
+
OnGamePlayerFriendUpdateEventHandler.onUpdate?.Invoke(ConverterService.deserializeObject<GamePlayerFriendUpdate>(operationEvent.getParameters()));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 6ebcb4a8d827d194fb0be1fe4a2c20ce
|
|
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: 6ebcb4a8d827d194fb0be1fe4a2c20ce
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|