格式化代码
This commit is contained in:
parent
0d68a31aee
commit
5d771cc4a3
@ -7,12 +7,15 @@
|
||||
#include "scripting/js-bindings/event/EventDispatcher.h"
|
||||
#include "scripting/js-bindings/manual/jsb_conversions.hpp"
|
||||
#include "platform/CCApplication.h"
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
||||
#include "AppDelegate.h"
|
||||
#endif
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
||||
|
||||
cocos2d::Application *cocos_android_app_init(int width, int height);
|
||||
|
||||
#endif
|
||||
using namespace cocos2d;
|
||||
NS_CC_BEGIN
|
||||
@ -31,6 +34,7 @@ NS_CC_BEGIN
|
||||
}
|
||||
return ok;
|
||||
}
|
||||
|
||||
bool addToArgArray(se::ValueArray *args, const char *valChar) {
|
||||
std::string strVal(valChar);
|
||||
se::Value tmpVal;
|
||||
|
@ -2,20 +2,32 @@
|
||||
#include "stdarg.h"
|
||||
#include "scripting/js-bindings/manual/jsb_conversions.hpp"
|
||||
#include "base/ccMacros.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
bool addToArgArray(se::ValueArray *args, const char *val);
|
||||
|
||||
bool runGlobalMethod(const char *name, se::ValueArray args, se::Value *value);
|
||||
|
||||
class CC_DLL JcWallet {
|
||||
public:
|
||||
void initEnv();
|
||||
|
||||
JcWallet();
|
||||
|
||||
virtual ~JcWallet();
|
||||
|
||||
static JcWallet *getInstance() { return _instance; }
|
||||
|
||||
char *initWallet(const char *passwordChar);
|
||||
|
||||
char *signLogin(const char *nonceChar, const char *tipChar);
|
||||
|
||||
char *createAccount();
|
||||
|
||||
char *importAccount(const char *privateKey);
|
||||
|
||||
char *runJsMethod(const char *methodName, int paramCount, char **paramList);
|
||||
|
||||
private:
|
||||
static JcWallet *_instance;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user