// // WASDKCore.h // WASDKUI // // Created by wuyx on 15/9/24. // Copyright (c) 2015骞� GHW-T-01. All rights reserved. // #import <Foundation/Foundation.h> #import <WASdkIntf/WASdkIntf.h> #import <WACommon/WACommon.h> #define WASdkLog(fmt,...) {\ if([WACoreProxy isDebugMode]){\ NSLog((@"WASDK LOG [(version %@) %s ]:" fmt), [WASdkCore getVersion],__FUNCTION__, ##__VA_ARGS__);\ [WACoreProxy addLogWithString:[NSString stringWithFormat:(@"(version %@) %s ]:" fmt),[WASdkCore getVersion],__FUNCTION__, ##__VA_ARGS__]];\ }\ } @interface WASdkCore : WACore /** * 鍒濆鍖� */ +(void)init; /** * 璁剧疆璋冭瘯妯″紡 * * @param sdkType 0 鍥藉锛�1 鍥藉唴 */ +(void)setSDKType:(NSInteger)sdkType; /** * 鑾峰彇sdk绫诲瀷 0 鍥藉锛�1 鍥藉唴 */ +(NSInteger)getSDKType; /** * 璁剧疆璋冭瘯妯″紡 * * @param isDebugMode */ +(void)setDebugMode:(BOOL)isDebugMode; /** * 鏄惁璋冭瘯妯″紡 */ +(BOOL)isDebugMode; /** * 鑾峰彇gameUserId */ +(NSString*)getGameUserId; /** * 鑾峰彇serverId */ +(NSString*)getServerId; /** * 璁剧疆userId */ +(NSString*)getUserId; /** * 鑾峰彇level */ +(int)getLevel; /** * appId */ +(NSString*)getAppId; /** * appKey */ +(NSString*)getAppKey; /** * clientId */ +(NSString*)getClientId; /** * 璁剧疆clientId * * @param clientId */ +(void)setClientId:(NSString*)clientId; /** * 娣诲姞鏃ュ織 */ +(void)addLogWithString:(NSString*)string; +(void)addEventContentWithString:(NSString*)string; +(void)setParamConfig:(void(^)(NSError* error,WAParamConfigObj* config))block; +(WAParamConfigObj*)getParamConfig; /** * 鐗堟湰淇℃伅 */ +(NSString*)getVersion; @end