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