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