commit | author | age
|
6e1425
|
1 |
// |
H |
2 |
// WASDKCore.h |
|
3 |
// WASDKUI |
|
4 |
// |
|
5 |
// Created by wuyx on 15/9/24. |
|
6 |
// Copyright (c) 2015年 GHW-T-01. All rights reserved. |
|
7 |
// |
|
8 |
|
|
9 |
#import <Foundation/Foundation.h> |
|
10 |
#import <WASdkIntf/WASdkIntf.h> |
|
11 |
#import <WACommon/WACommon.h> |
|
12 |
|
|
13 |
#define WASdkLog(fmt,...) {\ |
|
14 |
if([WACoreProxy isDebugMode]){\ |
|
15 |
NSLog((@"WASDK LOG [(version %@) %s ]:" fmt), [WASdkCore getVersion],__FUNCTION__, ##__VA_ARGS__);\ |
|
16 |
[WACoreProxy addLogWithString:[NSString stringWithFormat:(@"(version %@) %s ]:" fmt),[WASdkCore getVersion],__FUNCTION__, ##__VA_ARGS__]];\ |
|
17 |
}\ |
|
18 |
} |
|
19 |
|
|
20 |
@interface WASdkCore : WACore |
|
21 |
|
|
22 |
/** |
|
23 |
* 初始化 |
|
24 |
*/ |
|
25 |
+(void)init; |
|
26 |
/** |
|
27 |
* 设置调试模式 |
|
28 |
* |
|
29 |
* @param sdkType 0 国外,1 国内 |
|
30 |
*/ |
|
31 |
+(void)setSDKType:(NSInteger)sdkType; |
|
32 |
/** |
|
33 |
* 获取sdk类型 0 国外,1 国内 |
|
34 |
*/ |
|
35 |
+(NSInteger)getSDKType; |
|
36 |
/** |
|
37 |
* 设置调试模式 |
|
38 |
* |
|
39 |
* @param isDebugMode |
|
40 |
*/ |
|
41 |
+(void)setDebugMode:(BOOL)isDebugMode; |
|
42 |
|
|
43 |
/** |
|
44 |
* 是否调试模式 |
|
45 |
*/ |
|
46 |
+(BOOL)isDebugMode; |
|
47 |
|
|
48 |
/** |
|
49 |
* 获取gameUserId |
|
50 |
*/ |
|
51 |
+(NSString*)getGameUserId; |
|
52 |
|
|
53 |
/** |
|
54 |
* 获取serverId |
|
55 |
*/ |
|
56 |
+(NSString*)getServerId; |
|
57 |
|
|
58 |
/** |
|
59 |
* 设置userId |
|
60 |
*/ |
|
61 |
+(NSString*)getUserId; |
|
62 |
|
|
63 |
/** |
|
64 |
* 获取level |
|
65 |
*/ |
|
66 |
+(int)getLevel; |
|
67 |
|
|
68 |
|
|
69 |
/** |
|
70 |
* appId |
|
71 |
*/ |
|
72 |
+(NSString*)getAppId; |
|
73 |
|
|
74 |
/** |
|
75 |
* appKey |
|
76 |
*/ |
|
77 |
+(NSString*)getAppKey; |
|
78 |
|
|
79 |
/** |
|
80 |
* clientId |
|
81 |
*/ |
|
82 |
+(NSString*)getClientId; |
|
83 |
|
|
84 |
/** |
|
85 |
* 设置clientId |
|
86 |
* |
|
87 |
* @param clientId |
|
88 |
*/ |
|
89 |
+(void)setClientId:(NSString*)clientId; |
|
90 |
|
|
91 |
/** |
|
92 |
* 添加日志 |
|
93 |
*/ |
|
94 |
+(void)addLogWithString:(NSString*)string; |
|
95 |
|
|
96 |
+(void)addEventContentWithString:(NSString*)string; |
|
97 |
|
64e824
|
98 |
+(void)setParamConfig:(void(^)(NSError* error,WAParamConfigObj* config))block; |
6e1425
|
99 |
|
64e824
|
100 |
+(WAParamConfigObj*)getParamConfig; |
6e1425
|
101 |
/** |
H |
102 |
* 版本信息 |
|
103 |
*/ |
|
104 |
+(NSString*)getVersion; |
d08f6f
|
105 |
|
L |
106 |
|
|
107 |
|
6c8b26
|
108 |
|
6e1425
|
109 |
@end |