com.taptap.sdk.core 4.5.5 → 4.5.6
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/Mobile/Runtime/TapCoreMobile.cs +5 -0
- package/Runtime/Internal/Platform/ITapCorePlatform.cs +2 -0
- package/Runtime/Internal/Utils/EventManager.cs +2 -0
- package/Runtime/Public/TapTapSDK.cs +7 -1
- package/Runtime/Public/TapTapSdkOptions.cs +5 -0
- package/Standalone/Plugins/x86_64/taptap_api.dll +0 -0
- package/Standalone/Plugins/x86_64/taptap_api.dll.meta +52 -0
- package/Standalone/Resources/Prefabs/TapClient/TapClientConnectTipPanel.prefab +983 -0
- package/Standalone/Resources/Prefabs/TapClient/TapClientConnectTipPanel.prefab.meta +7 -0
- package/Standalone/Resources/Prefabs/TapClient.meta +8 -0
- package/Standalone/Resources/Prefabs.meta +8 -0
- package/Standalone/Resources/Texures/TapClientConnectError.png +0 -0
- package/Standalone/Resources/Texures/TapClientConnectError.png.meta +128 -0
- package/Standalone/Resources/Texures.meta +8 -0
- package/Standalone/Resources.meta +8 -0
- package/Standalone/Runtime/Internal/Openlog/TapCoreTracker.cs +107 -0
- package/Standalone/Runtime/Internal/Openlog/TapCoreTracker.cs.meta +11 -0
- package/Standalone/Runtime/Internal/TapClientBridge.cs +219 -0
- package/Standalone/Runtime/Internal/TapClientBridge.cs.meta +11 -0
- package/Standalone/Runtime/Internal/TapClientBridgePoll.cs +36 -0
- package/Standalone/Runtime/Internal/TapClientBridgePoll.cs.meta +11 -0
- package/Standalone/Runtime/Internal/UI/TapClientConnectTipController.cs +55 -0
- package/Standalone/Runtime/Internal/UI/TapClientConnectTipController.cs.meta +11 -0
- package/Standalone/Runtime/Internal/UI/TapUnderLineText.cs +76 -0
- package/Standalone/Runtime/Internal/UI/TapUnderLineText.cs.meta +11 -0
- package/Standalone/Runtime/Internal/UI.meta +8 -0
- package/Standalone/Runtime/Public/TapCoreStandalone.cs +352 -0
- package/package.json +1 -1
|
@@ -10,6 +10,8 @@ namespace TapSDK.Core.Internal.Utils
|
|
|
10
10
|
public const string OnApplicationQuit = "OnApplicationQuit";
|
|
11
11
|
|
|
12
12
|
public const string OnComplianceUserChanged = "OnComplianceUserChanged";
|
|
13
|
+
|
|
14
|
+
public const string IsLaunchedFromTapTapPCFinished = "IsLaunchedFromTapTapPCFinished";
|
|
13
15
|
private Dictionary<string, Action<object>> eventRegistries = new Dictionary<string, Action<object>>();
|
|
14
16
|
|
|
15
17
|
public static void AddListener(string eventName, Action<object> listener) {
|
|
@@ -12,7 +12,7 @@ using System.ComponentModel;
|
|
|
12
12
|
|
|
13
13
|
namespace TapSDK.Core {
|
|
14
14
|
public class TapTapSDK {
|
|
15
|
-
public static readonly string Version = "4.5.
|
|
15
|
+
public static readonly string Version = "4.5.6";
|
|
16
16
|
|
|
17
17
|
public static string SDKPlatform = "TapSDK-Unity";
|
|
18
18
|
|
|
@@ -89,6 +89,12 @@ namespace TapSDK.Core {
|
|
|
89
89
|
public static void UpdateLanguage(TapTapLanguageType language){
|
|
90
90
|
platformWrapper?.UpdateLanguage(language);
|
|
91
91
|
}
|
|
92
|
+
|
|
93
|
+
// 是否通过 PC 启动器唤起游戏
|
|
94
|
+
public static Task<bool> IsLaunchedFromTapTapPC()
|
|
95
|
+
{
|
|
96
|
+
return platformWrapper?.IsLaunchedFromTapTapPC();
|
|
97
|
+
}
|
|
92
98
|
|
|
93
99
|
private static Type[] GetInitTypeList(){
|
|
94
100
|
Type interfaceType = typeof(IInitTask);
|
|
@@ -45,6 +45,10 @@ namespace TapSDK.Core
|
|
|
45
45
|
/// </summary>
|
|
46
46
|
public string clientToken;
|
|
47
47
|
/// <summary>
|
|
48
|
+
/// PC 客户端公钥
|
|
49
|
+
/// </summary>
|
|
50
|
+
public string clientPublicKey;
|
|
51
|
+
/// <summary>
|
|
48
52
|
/// 地区,CN 为国内,Overseas 为海外
|
|
49
53
|
/// </summary>
|
|
50
54
|
public TapTapRegionType region = TapTapRegionType.CN;
|
|
@@ -88,6 +92,7 @@ namespace TapSDK.Core
|
|
|
88
92
|
/// 是否开启日志,Release 版本请设置为 false
|
|
89
93
|
/// </summary>
|
|
90
94
|
public bool enableLog = false;
|
|
95
|
+
|
|
91
96
|
|
|
92
97
|
[JsonProperty("moduleName")]
|
|
93
98
|
private string _moduleName = "TapTapSDKCore";
|
|
Binary file
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: b6f09ef7ffe9442c3a59f378a3a15005
|
|
3
|
+
PluginImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
iconMap: {}
|
|
7
|
+
executionOrder: {}
|
|
8
|
+
defineConstraints: []
|
|
9
|
+
isPreloaded: 0
|
|
10
|
+
isOverridable: 0
|
|
11
|
+
isExplicitlyReferenced: 0
|
|
12
|
+
validateReferences: 1
|
|
13
|
+
platformData:
|
|
14
|
+
- first:
|
|
15
|
+
Any:
|
|
16
|
+
second:
|
|
17
|
+
enabled: 1
|
|
18
|
+
settings: {}
|
|
19
|
+
- first:
|
|
20
|
+
Editor: Editor
|
|
21
|
+
second:
|
|
22
|
+
enabled: 0
|
|
23
|
+
settings:
|
|
24
|
+
CPU: x86_64
|
|
25
|
+
DefaultValueInitialized: true
|
|
26
|
+
- first:
|
|
27
|
+
Standalone: Linux64
|
|
28
|
+
second:
|
|
29
|
+
enabled: 1
|
|
30
|
+
settings:
|
|
31
|
+
CPU: x86_64
|
|
32
|
+
- first:
|
|
33
|
+
Standalone: OSXUniversal
|
|
34
|
+
second:
|
|
35
|
+
enabled: 0
|
|
36
|
+
settings:
|
|
37
|
+
CPU: x86_64
|
|
38
|
+
- first:
|
|
39
|
+
Standalone: Win
|
|
40
|
+
second:
|
|
41
|
+
enabled: 0
|
|
42
|
+
settings:
|
|
43
|
+
CPU: None
|
|
44
|
+
- first:
|
|
45
|
+
Standalone: Win64
|
|
46
|
+
second:
|
|
47
|
+
enabled: 1
|
|
48
|
+
settings:
|
|
49
|
+
CPU: AnyCPU
|
|
50
|
+
userData:
|
|
51
|
+
assetBundleName:
|
|
52
|
+
assetBundleVariant:
|