添加cocos相关代码
This commit is contained in:
parent
73775ed341
commit
8800bd0afd
91
Classes_cocos/AppDelegate.cpp
Executable file
91
Classes_cocos/AppDelegate.cpp
Executable file
@ -0,0 +1,91 @@
|
|||||||
|
/****************************************************************************
|
||||||
|
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
|
||||||
|
|
||||||
|
http://www.cocos.com
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated engine source code (the "Software"), a limited,
|
||||||
|
worldwide, royalty-free, non-assignable, revocable and non-exclusive license
|
||||||
|
to use Cocos Creator solely to develop games on your target platforms. You shall
|
||||||
|
not use Cocos Creator software for developing other software or tools that's
|
||||||
|
used for developing games. You are not granted to publish, distribute,
|
||||||
|
sublicense, and/or sell copies of Cocos Creator.
|
||||||
|
|
||||||
|
The software or tools in this License Agreement are licensed, not sold.
|
||||||
|
Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
#include "AppDelegate.h"
|
||||||
|
|
||||||
|
//#include "cocos2d.h"
|
||||||
|
|
||||||
|
#include "cocos/scripting/js-bindings/manual/jsb_module_register.hpp"
|
||||||
|
#include "cocos/scripting/js-bindings/manual/jsb_global.h"
|
||||||
|
#include "cocos/scripting/js-bindings/jswrapper/SeApi.h"
|
||||||
|
#include "cocos/scripting/js-bindings/event/EventDispatcher.h"
|
||||||
|
#include "cocos/scripting/js-bindings/manual/jsb_classtype.hpp"
|
||||||
|
|
||||||
|
USING_NS_CC;
|
||||||
|
|
||||||
|
AppDelegate::AppDelegate(int width, int height) : Application("Cocos Game", width, height)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
AppDelegate::~AppDelegate()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
bool AppDelegate::applicationDidFinishLaunching()
|
||||||
|
{
|
||||||
|
se::ScriptEngine *se = se::ScriptEngine::getInstance();
|
||||||
|
|
||||||
|
jsb_set_xxtea_key("");
|
||||||
|
jsb_init_file_operation_delegate();
|
||||||
|
|
||||||
|
#if defined(COCOS2D_DEBUG) && (COCOS2D_DEBUG > 0)
|
||||||
|
// Enable debugger here
|
||||||
|
jsb_enable_debugger("0.0.0.0", 6086, false);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
se->setExceptionCallback([](const char *location, const char *message, const char *stack) {
|
||||||
|
// Send exception information to server like Tencent Bugly.
|
||||||
|
cocos2d::log("\nUncaught Exception:\n - location : %s\n - msg : %s\n - detail : \n %s\n", location, message, stack);
|
||||||
|
});
|
||||||
|
|
||||||
|
jsb_register_all_modules();
|
||||||
|
|
||||||
|
se->start();
|
||||||
|
|
||||||
|
se::AutoHandleScope hs;
|
||||||
|
jsb_run_script("js/jsb-adapter/jsb-builtin.js");
|
||||||
|
jsb_run_script("js/jcwallet.js");
|
||||||
|
jsb_run_script("js/main.js");
|
||||||
|
se::Value rval;
|
||||||
|
jsb_run_code("JSON.stringify(wallet[0])", &rval);
|
||||||
|
|
||||||
|
se->addAfterCleanupHook([]() {
|
||||||
|
JSBClassType::destroy();
|
||||||
|
});
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// This function will be called when the app is inactive. When comes a phone call,it's be invoked too
|
||||||
|
void AppDelegate::onPause()
|
||||||
|
{
|
||||||
|
EventDispatcher::dispatchOnPauseEvent();
|
||||||
|
}
|
||||||
|
|
||||||
|
// this function will be called when the app is active again
|
||||||
|
void AppDelegate::onResume()
|
||||||
|
{
|
||||||
|
EventDispatcher::dispatchOnResumeEvent();
|
||||||
|
}
|
55
Classes_cocos/AppDelegate.h
Executable file
55
Classes_cocos/AppDelegate.h
Executable file
@ -0,0 +1,55 @@
|
|||||||
|
/****************************************************************************
|
||||||
|
Copyright (c) 2018 Xiamen Yaji Software Co., Ltd.
|
||||||
|
|
||||||
|
http://www.cocos.com
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated engine source code (the "Software"), a limited,
|
||||||
|
worldwide, royalty-free, non-assignable, revocable and non-exclusive license
|
||||||
|
to use Cocos Creator solely to develop games on your target platforms. You shall
|
||||||
|
not use Cocos Creator software for developing other software or tools that's
|
||||||
|
used for developing games. You are not granted to publish, distribute,
|
||||||
|
sublicense, and/or sell copies of Cocos Creator.
|
||||||
|
|
||||||
|
The software or tools in this License Agreement are licensed, not sold.
|
||||||
|
Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "platform/CCApplication.h"
|
||||||
|
/**
|
||||||
|
@brief The cocos2d Application.
|
||||||
|
|
||||||
|
The reason for implement as private inheritance is to hide some interface call by Director.
|
||||||
|
*/
|
||||||
|
class AppDelegate : public cocos2d::Application
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
AppDelegate(int width, int height);
|
||||||
|
virtual ~AppDelegate();
|
||||||
|
|
||||||
|
/**
|
||||||
|
@brief Implement Director and Scene init code here.
|
||||||
|
@return true Initialize success, app continue.
|
||||||
|
@return false Initialize failed, app terminate.
|
||||||
|
*/
|
||||||
|
virtual bool applicationDidFinishLaunching() override;
|
||||||
|
|
||||||
|
/**
|
||||||
|
@brief The function be called when the application is paused
|
||||||
|
*/
|
||||||
|
virtual void onPause() override;
|
||||||
|
|
||||||
|
/**
|
||||||
|
@brief The function be called when the application is resumed
|
||||||
|
*/
|
||||||
|
virtual void onResume() override;
|
||||||
|
};
|
31
Classes_cocos/NativeConfig.h
Executable file
31
Classes_cocos/NativeConfig.h
Executable file
@ -0,0 +1,31 @@
|
|||||||
|
/****************************************************************************
|
||||||
|
Copyright (c) 2020 Xiamen Yaji Software Co., Ltd.
|
||||||
|
|
||||||
|
http://www.cocos.com
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated engine source code (the "Software"), a limited,
|
||||||
|
worldwide, royalty-free, non-assignable, revocable and non-exclusive license
|
||||||
|
to use Cocos Creator solely to develop games on your target platforms. You shall
|
||||||
|
not use Cocos Creator software for developing other software or tools that's
|
||||||
|
used for developing games. You are not granted to publish, distribute,
|
||||||
|
sublicense, and/or sell copies of Cocos Creator.
|
||||||
|
|
||||||
|
The software or tools in this License Agreement are licensed, not sold.
|
||||||
|
Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
****************************************************************************/
|
||||||
|
//window size for mac
|
||||||
|
#define MACOS_WIN_SIZE_WIDTH 960
|
||||||
|
#define MACOS_WIN_SIZE_HEIGHT 640
|
||||||
|
|
||||||
|
//window size for win32
|
||||||
|
#define WINDOWS_WIN_SIZE_WIDTH 960
|
||||||
|
#define WINDOWS_WIN_SIZE_HEIGHT 640
|
@ -182,6 +182,12 @@
|
|||||||
D5F2CFA7287BEC0D003C2B62 /* Bulk_UnityEngine.UI_2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5F2CF3E287BEC0D003C2B62 /* Bulk_UnityEngine.UI_2.cpp */; };
|
D5F2CFA7287BEC0D003C2B62 /* Bulk_UnityEngine.UI_2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5F2CF3E287BEC0D003C2B62 /* Bulk_UnityEngine.UI_2.cpp */; };
|
||||||
D5F2CFA8287BEC0D003C2B62 /* Il2CppCompilerCalculateTypeValues_13Table.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5F2CF3F287BEC0D003C2B62 /* Il2CppCompilerCalculateTypeValues_13Table.cpp */; };
|
D5F2CFA8287BEC0D003C2B62 /* Il2CppCompilerCalculateTypeValues_13Table.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5F2CF3F287BEC0D003C2B62 /* Il2CppCompilerCalculateTypeValues_13Table.cpp */; };
|
||||||
D5F2CFA9287BEC0D003C2B62 /* Il2CppCompilerCalculateTypeValues_12Table.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5F2CF40287BEC0D003C2B62 /* Il2CppCompilerCalculateTypeValues_12Table.cpp */; };
|
D5F2CFA9287BEC0D003C2B62 /* Il2CppCompilerCalculateTypeValues_12Table.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5F2CF40287BEC0D003C2B62 /* Il2CppCompilerCalculateTypeValues_12Table.cpp */; };
|
||||||
|
D5F2CFB1287BF3BD003C2B62 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5F2CFAF287BF3BD003C2B62 /* AppDelegate.cpp */; };
|
||||||
|
D5F2CFCA287BF7E4003C2B62 /* libicucore.A.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = D5F2CFC9287BF7E4003C2B62 /* libicucore.A.tbd */; };
|
||||||
|
D5F2CFCC287BF7ED003C2B62 /* libsqlite3.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = D5F2CFCB287BF7ED003C2B62 /* libsqlite3.tbd */; };
|
||||||
|
D5F2CFCE287BF7FE003C2B62 /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D5F2CFCD287BF7FE003C2B62 /* JavaScriptCore.framework */; };
|
||||||
|
D5F2CFD0287BF80A003C2B62 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = D5F2CFCF287BF80A003C2B62 /* libz.tbd */; };
|
||||||
|
D5F2CFD2287BF83C003C2B62 /* js in Resources */ = {isa = PBXBuildFile; fileRef = D5F2CFD1287BF83C003C2B62 /* js */; };
|
||||||
D82DCFC30E8000A5005D6AD8 /* main.mm in Sources */ = {isa = PBXBuildFile; fileRef = D82DCFBB0E8000A5005D6AD8 /* main.mm */; };
|
D82DCFC30E8000A5005D6AD8 /* main.mm in Sources */ = {isa = PBXBuildFile; fileRef = D82DCFBB0E8000A5005D6AD8 /* main.mm */; };
|
||||||
D8A1C7280E80637F000160D3 /* RegisterMonoModules.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D8A1C7240E80637F000160D3 /* RegisterMonoModules.cpp */; };
|
D8A1C7280E80637F000160D3 /* RegisterMonoModules.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D8A1C7240E80637F000160D3 /* RegisterMonoModules.cpp */; };
|
||||||
E9D340DABD2259166E8A82AF /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 65204119BF754354B5DD4D0C /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
|
E9D340DABD2259166E8A82AF /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 65204119BF754354B5DD4D0C /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
|
||||||
@ -198,6 +204,13 @@
|
|||||||
remoteGlobalIDString = 1D6058900D05DD3D006BFB54;
|
remoteGlobalIDString = 1D6058900D05DD3D006BFB54;
|
||||||
remoteInfo = "Unity-iPhone";
|
remoteInfo = "Unity-iPhone";
|
||||||
};
|
};
|
||||||
|
D5F2CFB9287BF425003C2B62 /* PBXContainerItemProxy */ = {
|
||||||
|
isa = PBXContainerItemProxy;
|
||||||
|
containerPortal = D5F2CFB2287BF425003C2B62 /* cocos2d_libs.xcodeproj */;
|
||||||
|
proxyType = 2;
|
||||||
|
remoteGlobalIDString = A07A4D641783777C0073F6A7;
|
||||||
|
remoteInfo = "libcocos2d iOS";
|
||||||
|
};
|
||||||
/* End PBXContainerItemProxy section */
|
/* End PBXContainerItemProxy section */
|
||||||
|
|
||||||
/* Begin PBXCopyFilesBuildPhase section */
|
/* Begin PBXCopyFilesBuildPhase section */
|
||||||
@ -436,6 +449,15 @@
|
|||||||
D5F2CF3E287BEC0D003C2B62 /* Bulk_UnityEngine.UI_2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Bulk_UnityEngine.UI_2.cpp; sourceTree = "<group>"; };
|
D5F2CF3E287BEC0D003C2B62 /* Bulk_UnityEngine.UI_2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Bulk_UnityEngine.UI_2.cpp; sourceTree = "<group>"; };
|
||||||
D5F2CF3F287BEC0D003C2B62 /* Il2CppCompilerCalculateTypeValues_13Table.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Il2CppCompilerCalculateTypeValues_13Table.cpp; sourceTree = "<group>"; };
|
D5F2CF3F287BEC0D003C2B62 /* Il2CppCompilerCalculateTypeValues_13Table.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Il2CppCompilerCalculateTypeValues_13Table.cpp; sourceTree = "<group>"; };
|
||||||
D5F2CF40287BEC0D003C2B62 /* Il2CppCompilerCalculateTypeValues_12Table.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Il2CppCompilerCalculateTypeValues_12Table.cpp; sourceTree = "<group>"; };
|
D5F2CF40287BEC0D003C2B62 /* Il2CppCompilerCalculateTypeValues_12Table.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Il2CppCompilerCalculateTypeValues_12Table.cpp; sourceTree = "<group>"; };
|
||||||
|
D5F2CFAC287BF3BD003C2B62 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
|
||||||
|
D5F2CFAE287BF3BD003C2B62 /* NativeConfig.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NativeConfig.h; sourceTree = "<group>"; };
|
||||||
|
D5F2CFAF287BF3BD003C2B62 /* AppDelegate.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AppDelegate.cpp; sourceTree = "<group>"; };
|
||||||
|
D5F2CFB2287BF425003C2B62 /* cocos2d_libs.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = cocos2d_libs.xcodeproj; path = "../../../../cocos/cocos2d-x/build/cocos2d_libs.xcodeproj"; sourceTree = "<group>"; };
|
||||||
|
D5F2CFC9287BF7E4003C2B62 /* libicucore.A.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libicucore.A.tbd; path = usr/lib/libicucore.A.tbd; sourceTree = SDKROOT; };
|
||||||
|
D5F2CFCB287BF7ED003C2B62 /* libsqlite3.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libsqlite3.tbd; path = usr/lib/libsqlite3.tbd; sourceTree = SDKROOT; };
|
||||||
|
D5F2CFCD287BF7FE003C2B62 /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
|
||||||
|
D5F2CFCF287BF80A003C2B62 /* libz.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; };
|
||||||
|
D5F2CFD1287BF83C003C2B62 /* js */ = {isa = PBXFileReference; lastKnownFileType = folder; path = js; sourceTree = "<group>"; };
|
||||||
D82DCFBB0E8000A5005D6AD8 /* main.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = main.mm; path = Classes/main.mm; sourceTree = SOURCE_ROOT; };
|
D82DCFBB0E8000A5005D6AD8 /* main.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = main.mm; path = Classes/main.mm; sourceTree = SOURCE_ROOT; };
|
||||||
D8A1C7240E80637F000160D3 /* RegisterMonoModules.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = RegisterMonoModules.cpp; path = Libraries/RegisterMonoModules.cpp; sourceTree = SOURCE_ROOT; };
|
D8A1C7240E80637F000160D3 /* RegisterMonoModules.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = RegisterMonoModules.cpp; path = Libraries/RegisterMonoModules.cpp; sourceTree = SOURCE_ROOT; };
|
||||||
D8A1C7250E80637F000160D3 /* RegisterMonoModules.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RegisterMonoModules.h; path = Libraries/RegisterMonoModules.h; sourceTree = SOURCE_ROOT; };
|
D8A1C7250E80637F000160D3 /* RegisterMonoModules.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RegisterMonoModules.h; path = Libraries/RegisterMonoModules.h; sourceTree = SOURCE_ROOT; };
|
||||||
@ -451,6 +473,10 @@
|
|||||||
isa = PBXFrameworksBuildPhase;
|
isa = PBXFrameworksBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
|
D5F2CFD0287BF80A003C2B62 /* libz.tbd in Frameworks */,
|
||||||
|
D5F2CFCE287BF7FE003C2B62 /* JavaScriptCore.framework in Frameworks */,
|
||||||
|
D5F2CFCC287BF7ED003C2B62 /* libsqlite3.tbd in Frameworks */,
|
||||||
|
D5F2CFCA287BF7E4003C2B62 /* libicucore.A.tbd in Frameworks */,
|
||||||
5BAD78611F2B5A59006103DE /* Security.framework in Frameworks */,
|
5BAD78611F2B5A59006103DE /* Security.framework in Frameworks */,
|
||||||
960391221D6CE46E003BF157 /* MediaToolbox.framework in Frameworks */,
|
960391221D6CE46E003BF157 /* MediaToolbox.framework in Frameworks */,
|
||||||
00000000008063A1000160D3 /* libiPhone-lib.a in Frameworks */,
|
00000000008063A1000160D3 /* libiPhone-lib.a in Frameworks */,
|
||||||
@ -499,6 +525,9 @@
|
|||||||
29B97314FDCFA39411CA2CEA /* CustomTemplate */ = {
|
29B97314FDCFA39411CA2CEA /* CustomTemplate */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
|
D5F2CFD1287BF83C003C2B62 /* js */,
|
||||||
|
D5F2CFB2287BF425003C2B62 /* cocos2d_libs.xcodeproj */,
|
||||||
|
D5F2CFAB287BF3BD003C2B62 /* Classes_cocos */,
|
||||||
D5F2CED5287BE9C4003C2B62 /* Data */,
|
D5F2CED5287BE9C4003C2B62 /* Data */,
|
||||||
56C56C9717D6015100616839 /* Images.xcassets */,
|
56C56C9717D6015100616839 /* Images.xcassets */,
|
||||||
D82DCFB50E8000A5005D6AD8 /* Classes */,
|
D82DCFB50E8000A5005D6AD8 /* Classes */,
|
||||||
@ -520,6 +549,10 @@
|
|||||||
29B97323FDCFA39411CA2CEA /* Frameworks */ = {
|
29B97323FDCFA39411CA2CEA /* Frameworks */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
|
D5F2CFCF287BF80A003C2B62 /* libz.tbd */,
|
||||||
|
D5F2CFCD287BF7FE003C2B62 /* JavaScriptCore.framework */,
|
||||||
|
D5F2CFCB287BF7ED003C2B62 /* libsqlite3.tbd */,
|
||||||
|
D5F2CFC9287BF7E4003C2B62 /* libicucore.A.tbd */,
|
||||||
8A20382C213D4B3C005E6C56 /* AVKit.framework */,
|
8A20382C213D4B3C005E6C56 /* AVKit.framework */,
|
||||||
5BAD78601F2B5A59006103DE /* Security.framework */,
|
5BAD78601F2B5A59006103DE /* Security.framework */,
|
||||||
960391211D6CE46E003BF157 /* MediaToolbox.framework */,
|
960391211D6CE46E003BF157 /* MediaToolbox.framework */,
|
||||||
@ -773,6 +806,24 @@
|
|||||||
path = ../../tebg/Classes/Native;
|
path = ../../tebg/Classes/Native;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
|
D5F2CFAB287BF3BD003C2B62 /* Classes_cocos */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
D5F2CFAC287BF3BD003C2B62 /* AppDelegate.h */,
|
||||||
|
D5F2CFAE287BF3BD003C2B62 /* NativeConfig.h */,
|
||||||
|
D5F2CFAF287BF3BD003C2B62 /* AppDelegate.cpp */,
|
||||||
|
);
|
||||||
|
path = Classes_cocos;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
D5F2CFB3287BF425003C2B62 /* Products */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
D5F2CFBA287BF425003C2B62 /* libcocos2d iOS.a */,
|
||||||
|
);
|
||||||
|
name = Products;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
D82DCFB50E8000A5005D6AD8 /* Classes */ = {
|
D82DCFB50E8000A5005D6AD8 /* Classes */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
@ -889,6 +940,12 @@
|
|||||||
);
|
);
|
||||||
mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */;
|
mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */;
|
||||||
projectDirPath = "";
|
projectDirPath = "";
|
||||||
|
projectReferences = (
|
||||||
|
{
|
||||||
|
ProductGroup = D5F2CFB3287BF425003C2B62 /* Products */;
|
||||||
|
ProjectRef = D5F2CFB2287BF425003C2B62 /* cocos2d_libs.xcodeproj */;
|
||||||
|
},
|
||||||
|
);
|
||||||
projectRoot = "";
|
projectRoot = "";
|
||||||
targets = (
|
targets = (
|
||||||
1D6058900D05DD3D006BFB54 /* Unity-iPhone */,
|
1D6058900D05DD3D006BFB54 /* Unity-iPhone */,
|
||||||
@ -897,6 +954,16 @@
|
|||||||
};
|
};
|
||||||
/* End PBXProject section */
|
/* End PBXProject section */
|
||||||
|
|
||||||
|
/* Begin PBXReferenceProxy section */
|
||||||
|
D5F2CFBA287BF425003C2B62 /* libcocos2d iOS.a */ = {
|
||||||
|
isa = PBXReferenceProxy;
|
||||||
|
fileType = archive.ar;
|
||||||
|
path = "libcocos2d iOS.a";
|
||||||
|
remoteRef = D5F2CFB9287BF425003C2B62 /* PBXContainerItemProxy */;
|
||||||
|
sourceTree = BUILT_PRODUCTS_DIR;
|
||||||
|
};
|
||||||
|
/* End PBXReferenceProxy section */
|
||||||
|
|
||||||
/* Begin PBXResourcesBuildPhase section */
|
/* Begin PBXResourcesBuildPhase section */
|
||||||
1D60588D0D05DD3D006BFB54 /* Resources */ = {
|
1D60588D0D05DD3D006BFB54 /* Resources */ = {
|
||||||
isa = PBXResourcesBuildPhase;
|
isa = PBXResourcesBuildPhase;
|
||||||
@ -905,6 +972,7 @@
|
|||||||
56C56C9817D6015200616839 /* Images.xcassets in Resources */,
|
56C56C9817D6015200616839 /* Images.xcassets in Resources */,
|
||||||
ED8C4EF082C57FADCB72325E /* LaunchScreen-iPhone.xib in Resources */,
|
ED8C4EF082C57FADCB72325E /* LaunchScreen-iPhone.xib in Resources */,
|
||||||
35DD4E0BA71A8E4480E79156 /* LaunchScreen-iPhonePortrait.png in Resources */,
|
35DD4E0BA71A8E4480E79156 /* LaunchScreen-iPhonePortrait.png in Resources */,
|
||||||
|
D5F2CFD2287BF83C003C2B62 /* js in Resources */,
|
||||||
7885412B8F5A921FCB052FCC /* LaunchScreen-iPhoneLandscape.png in Resources */,
|
7885412B8F5A921FCB052FCC /* LaunchScreen-iPhoneLandscape.png in Resources */,
|
||||||
B39C4391A8C22B442413FE00 /* LaunchScreen-iPad.xib in Resources */,
|
B39C4391A8C22B442413FE00 /* LaunchScreen-iPad.xib in Resources */,
|
||||||
C7134CE09546D0C147DAA3D3 /* LaunchScreen-iPad.png in Resources */,
|
C7134CE09546D0C147DAA3D3 /* LaunchScreen-iPad.png in Resources */,
|
||||||
@ -951,6 +1019,7 @@
|
|||||||
D5F2CF83287BEC0D003C2B62 /* Il2CppCompilerCalculateTypeValues_0Table.cpp in Sources */,
|
D5F2CF83287BEC0D003C2B62 /* Il2CppCompilerCalculateTypeValues_0Table.cpp in Sources */,
|
||||||
D5F2CF7A287BEC0D003C2B62 /* Bulk_UnityEngine.AudioModule_0.cpp in Sources */,
|
D5F2CF7A287BEC0D003C2B62 /* Bulk_UnityEngine.AudioModule_0.cpp in Sources */,
|
||||||
D5F2CF78287BEC0D003C2B62 /* Bulk_Generics_12.cpp in Sources */,
|
D5F2CF78287BEC0D003C2B62 /* Bulk_Generics_12.cpp in Sources */,
|
||||||
|
D5F2CFB1287BF3BD003C2B62 /* AppDelegate.cpp in Sources */,
|
||||||
D5F2CF5A287BEC0D003C2B62 /* Il2CppGenericInstDefinitions.cpp in Sources */,
|
D5F2CF5A287BEC0D003C2B62 /* Il2CppGenericInstDefinitions.cpp in Sources */,
|
||||||
D5F2CFA6287BEC0D003C2B62 /* Bulk_netstandard_0.cpp in Sources */,
|
D5F2CFA6287BEC0D003C2B62 /* Bulk_netstandard_0.cpp in Sources */,
|
||||||
D5F2CF53287BEC0D003C2B62 /* GenericMethods0.cpp in Sources */,
|
D5F2CF53287BEC0D003C2B62 /* GenericMethods0.cpp in Sources */,
|
||||||
@ -1159,6 +1228,8 @@
|
|||||||
"$(SRCROOT)/Classes/Native",
|
"$(SRCROOT)/Classes/Native",
|
||||||
"$(SRCROOT)/Libraries/bdwgc/include",
|
"$(SRCROOT)/Libraries/bdwgc/include",
|
||||||
"$(SRCROOT)/Libraries/libil2cpp/include",
|
"$(SRCROOT)/Libraries/libil2cpp/include",
|
||||||
|
"/Users/zhl/Documents/workspace/cocos/cocos2d-x/cocos/platform/mac",
|
||||||
|
"/Users/zhl/Documents/workspace/cocos/cocos2d-x/external/glfw3/include/mac",
|
||||||
);
|
);
|
||||||
INFOPLIST_FILE = Info.plist;
|
INFOPLIST_FILE = Info.plist;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||||
@ -1167,6 +1238,7 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"\"$(SRCROOT)\"",
|
"\"$(SRCROOT)\"",
|
||||||
"\"$(SRCROOT)/Libraries\"",
|
"\"$(SRCROOT)/Libraries\"",
|
||||||
|
"/Users/zhl/Documents/workspace/cocos/cocos2d-x/external/ios/libs",
|
||||||
);
|
);
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
OTHER_CFLAGS = (
|
OTHER_CFLAGS = (
|
||||||
@ -1229,6 +1301,8 @@
|
|||||||
"$(SRCROOT)/Classes/Native",
|
"$(SRCROOT)/Classes/Native",
|
||||||
"$(SRCROOT)/Libraries/bdwgc/include",
|
"$(SRCROOT)/Libraries/bdwgc/include",
|
||||||
"$(SRCROOT)/Libraries/libil2cpp/include",
|
"$(SRCROOT)/Libraries/libil2cpp/include",
|
||||||
|
"/Users/zhl/Documents/workspace/cocos/cocos2d-x/cocos/platform/mac",
|
||||||
|
"/Users/zhl/Documents/workspace/cocos/cocos2d-x/external/glfw3/include/mac",
|
||||||
);
|
);
|
||||||
INFOPLIST_FILE = Info.plist;
|
INFOPLIST_FILE = Info.plist;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||||
@ -1237,6 +1311,7 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"\"$(SRCROOT)\"",
|
"\"$(SRCROOT)\"",
|
||||||
"\"$(SRCROOT)/Libraries\"",
|
"\"$(SRCROOT)/Libraries\"",
|
||||||
|
"/Users/zhl/Documents/workspace/cocos/cocos2d-x/external/ios/libs",
|
||||||
);
|
);
|
||||||
ONLY_ACTIVE_ARCH = NO;
|
ONLY_ACTIVE_ARCH = NO;
|
||||||
OTHER_CFLAGS = (
|
OTHER_CFLAGS = (
|
||||||
@ -1392,6 +1467,7 @@
|
|||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
SUPPORTED_PLATFORMS = iphoneos;
|
SUPPORTED_PLATFORMS = iphoneos;
|
||||||
|
USER_HEADER_SEARCH_PATHS = "/Users/zhl/Documents/workspace/cocos/cocos2d-x /Users/zhl/Documents/workspace/cocos/cocos2d-x/cocos /Users/zhl/Documents/workspace/cocos/cocos2d-x/cocos/network /Users/zhl/Documents/workspace/cocos/cocos2d-x/cocos/base /Users/zhl/Documents/workspace/cocos/cocos2d-x/extensions /Users/zhl/Documents/workspace/cocos/cocos2d-x/external /Users/zhl/Documents/workspace/cocos/cocos2d-x/external/sources /Users/zhl/Documents/workspace/cocos/cocos2d-x/external/chipmunk/include/chipmunk /Users/zhl/Documents/workspace/cocos/cocos2d-x/cocos/scripting/js-bindings/manual";
|
||||||
};
|
};
|
||||||
name = ReleaseForRunning;
|
name = ReleaseForRunning;
|
||||||
};
|
};
|
||||||
@ -1427,6 +1503,8 @@
|
|||||||
"$(SRCROOT)/Classes/Native",
|
"$(SRCROOT)/Classes/Native",
|
||||||
"$(SRCROOT)/Libraries/bdwgc/include",
|
"$(SRCROOT)/Libraries/bdwgc/include",
|
||||||
"$(SRCROOT)/Libraries/libil2cpp/include",
|
"$(SRCROOT)/Libraries/libil2cpp/include",
|
||||||
|
"/Users/zhl/Documents/workspace/cocos/cocos2d-x/cocos/platform/mac",
|
||||||
|
"/Users/zhl/Documents/workspace/cocos/cocos2d-x/external/glfw3/include/mac",
|
||||||
);
|
);
|
||||||
INFOPLIST_FILE = Info.plist;
|
INFOPLIST_FILE = Info.plist;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||||
@ -1435,6 +1513,7 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"\"$(SRCROOT)\"",
|
"\"$(SRCROOT)\"",
|
||||||
"\"$(SRCROOT)/Libraries\"",
|
"\"$(SRCROOT)/Libraries\"",
|
||||||
|
"/Users/zhl/Documents/workspace/cocos/cocos2d-x/external/ios/libs",
|
||||||
);
|
);
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
OTHER_CFLAGS = (
|
OTHER_CFLAGS = (
|
||||||
@ -1533,6 +1612,7 @@
|
|||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
SUPPORTED_PLATFORMS = iphoneos;
|
SUPPORTED_PLATFORMS = iphoneos;
|
||||||
|
USER_HEADER_SEARCH_PATHS = "/Users/zhl/Documents/workspace/cocos/cocos2d-x /Users/zhl/Documents/workspace/cocos/cocos2d-x/cocos /Users/zhl/Documents/workspace/cocos/cocos2d-x/cocos/network /Users/zhl/Documents/workspace/cocos/cocos2d-x/cocos/base /Users/zhl/Documents/workspace/cocos/cocos2d-x/extensions /Users/zhl/Documents/workspace/cocos/cocos2d-x/external /Users/zhl/Documents/workspace/cocos/cocos2d-x/external/sources /Users/zhl/Documents/workspace/cocos/cocos2d-x/external/chipmunk/include/chipmunk /Users/zhl/Documents/workspace/cocos/cocos2d-x/cocos/scripting/js-bindings/manual";
|
||||||
};
|
};
|
||||||
name = ReleaseForProfiling;
|
name = ReleaseForProfiling;
|
||||||
};
|
};
|
||||||
@ -1567,6 +1647,8 @@
|
|||||||
"$(SRCROOT)/Classes/Native",
|
"$(SRCROOT)/Classes/Native",
|
||||||
"$(SRCROOT)/Libraries/bdwgc/include",
|
"$(SRCROOT)/Libraries/bdwgc/include",
|
||||||
"$(SRCROOT)/Libraries/libil2cpp/include",
|
"$(SRCROOT)/Libraries/libil2cpp/include",
|
||||||
|
"/Users/zhl/Documents/workspace/cocos/cocos2d-x/cocos/platform/mac",
|
||||||
|
"/Users/zhl/Documents/workspace/cocos/cocos2d-x/external/glfw3/include/mac",
|
||||||
);
|
);
|
||||||
INFOPLIST_FILE = Info.plist;
|
INFOPLIST_FILE = Info.plist;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||||
@ -1575,6 +1657,7 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"\"$(SRCROOT)\"",
|
"\"$(SRCROOT)\"",
|
||||||
"\"$(SRCROOT)/Libraries\"",
|
"\"$(SRCROOT)/Libraries\"",
|
||||||
|
"/Users/zhl/Documents/workspace/cocos/cocos2d-x/external/ios/libs",
|
||||||
);
|
);
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
OTHER_CFLAGS = (
|
OTHER_CFLAGS = (
|
||||||
@ -1676,6 +1759,7 @@
|
|||||||
OTHER_LDFLAGS = "";
|
OTHER_LDFLAGS = "";
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
SUPPORTED_PLATFORMS = iphoneos;
|
SUPPORTED_PLATFORMS = iphoneos;
|
||||||
|
USER_HEADER_SEARCH_PATHS = "/Users/zhl/Documents/workspace/cocos/cocos2d-x /Users/zhl/Documents/workspace/cocos/cocos2d-x/cocos /Users/zhl/Documents/workspace/cocos/cocos2d-x/cocos/network /Users/zhl/Documents/workspace/cocos/cocos2d-x/cocos/base /Users/zhl/Documents/workspace/cocos/cocos2d-x/extensions /Users/zhl/Documents/workspace/cocos/cocos2d-x/external /Users/zhl/Documents/workspace/cocos/cocos2d-x/external/sources /Users/zhl/Documents/workspace/cocos/cocos2d-x/external/chipmunk/include/chipmunk /Users/zhl/Documents/workspace/cocos/cocos2d-x/cocos/scripting/js-bindings/manual";
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
};
|
};
|
||||||
@ -1695,6 +1779,7 @@
|
|||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
SUPPORTED_PLATFORMS = iphoneos;
|
SUPPORTED_PLATFORMS = iphoneos;
|
||||||
|
USER_HEADER_SEARCH_PATHS = "/Users/zhl/Documents/workspace/cocos/cocos2d-x /Users/zhl/Documents/workspace/cocos/cocos2d-x/cocos /Users/zhl/Documents/workspace/cocos/cocos2d-x/cocos/network /Users/zhl/Documents/workspace/cocos/cocos2d-x/cocos/base /Users/zhl/Documents/workspace/cocos/cocos2d-x/extensions /Users/zhl/Documents/workspace/cocos/cocos2d-x/external /Users/zhl/Documents/workspace/cocos/cocos2d-x/external/sources /Users/zhl/Documents/workspace/cocos/cocos2d-x/external/chipmunk/include/chipmunk /Users/zhl/Documents/workspace/cocos/cocos2d-x/cocos/scripting/js-bindings/manual";
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
|
Binary file not shown.
@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>SchemeUserState</key>
|
||||||
|
<dict>
|
||||||
|
<key>Unity-iPhone.xcscheme_^#shared#^_</key>
|
||||||
|
<dict>
|
||||||
|
<key>orderHint</key>
|
||||||
|
<integer>0</integer>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
61
js/jcwallet.js
Normal file
61
js/jcwallet.js
Normal file
File diff suppressed because one or more lines are too long
7889
js/jsb-adapter/jsb-builtin.js
Normal file
7889
js/jsb-adapter/jsb-builtin.js
Normal file
File diff suppressed because it is too large
Load Diff
3700
js/jsb-adapter/jsb-engine.js
Normal file
3700
js/jsb-adapter/jsb-engine.js
Normal file
File diff suppressed because it is too large
Load Diff
12
js/main.js
Normal file
12
js/main.js
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
console.log('hi tiny cocos')
|
||||||
|
var wallet = new jcwallet.default();
|
||||||
|
var account = jc.wallet.currentAccount();
|
||||||
|
console.log('[WALLET]' + account.address);
|
||||||
|
// var web3 = new Web3('https://rpc-testnet.kcc.network')
|
||||||
|
// let key = '0xa6c4354fb93a55fb67117969a12465209395ec31089fea9e6e061f873b87a473'
|
||||||
|
// web3.eth.accounts.wallet.add(key);
|
||||||
|
// web3.eth.accounts.wallet.save('111111')
|
||||||
|
// window.wallet = web3.eth.accounts.wallet.load('111111')
|
||||||
|
// console.log(web3.eth.accounts.wallet[0].address);
|
||||||
|
// console.log(web3.eth.accounts.wallet[0].privateKey);
|
||||||
|
// console.log('end of main.js')
|
Loading…
x
Reference in New Issue
Block a user