mirror of https://github.com/axmolengine/axmol.git
Merge pull request #12438 from pandamicro/navmesh
Bind Navmesh in JSB and add test case
This commit is contained in:
commit
2a7386757e
|
@ -43,6 +43,7 @@ set(JSBINDING_SRC
|
|||
auto/jsb_cocos2dx_3d_auto.cpp
|
||||
auto/jsb_cocos2dx_3d_extension_auto.cpp
|
||||
auto/jsb_cocos2dx_physics3d_auto.cpp
|
||||
auto/jsb_cocos2dx_navmesh_auto.cpp
|
||||
manual/ScriptingCore.cpp
|
||||
manual/cocos2d_specifics.cpp
|
||||
manual/js_manual_conversions.cpp
|
||||
|
@ -69,6 +70,8 @@ set(JSBINDING_SRC
|
|||
manual/ui/jsb_cocos2dx_ui_manual.cpp
|
||||
manual/3d/jsb_cocos2dx_3d_manual.cpp
|
||||
manual/physics3d/jsb_cocos2dx_physics3d_manual.cpp
|
||||
manual/navmesh/jsb_cocos2dx_navmesh_conversions.cpp
|
||||
manual/navmesh/jsb_cocos2dx_navmesh_manual.cpp
|
||||
${cocos_root}/cocos/storage/local-storage/LocalStorage.cpp
|
||||
)
|
||||
|
||||
|
@ -77,7 +80,9 @@ include_directories(
|
|||
manual
|
||||
manual/cocostudio
|
||||
manual/spine
|
||||
manual/navmesh
|
||||
${cocos_root}/external/spidermonkey/include/${PLATFORM_FOLDER}
|
||||
${cocos_root}/cocos
|
||||
${cocos_root}/cocos/base
|
||||
${cocos_root}/cocos/2d
|
||||
${cocos_root}/cocos/3d
|
||||
|
@ -87,6 +92,7 @@ include_directories(
|
|||
${cocos_root}/cocos/network
|
||||
${cocos_root}/cocos/platform
|
||||
${cocos_root}/cocos/physics3d
|
||||
${cocos_root}/cocos/navmesh
|
||||
${cocos_root}/extensions
|
||||
${cocos_root}/external
|
||||
${cocos_root}/cocos/editor-support
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include "js_bindings_config.h"
|
||||
#include "jsb_cocos2dx_auto.hpp"
|
||||
#include "jsb_event_dispatcher_manual.h"
|
||||
|
||||
#include "navmesh/CCNavMesh.h"
|
||||
using namespace cocos2d;
|
||||
|
||||
schedFunc_proxy_t *_schedFunc_target_ht = NULL;
|
||||
|
@ -5602,6 +5602,90 @@ bool js_cocos2dx_Scene_getPhysics3DWorld(JSContext *cx, uint32_t argc, jsval *vp
|
|||
return false;
|
||||
}
|
||||
#endif //CC_ENABLE_BULLET_INTEGRATION && CC_USE_3D_PHYSICS
|
||||
#if CC_USE_NAVMESH
|
||||
bool js_cocos2dx_Scene_setNavMeshDebugCamera(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
bool ok = true;
|
||||
JS::RootedObject obj(cx, args.thisv().toObjectOrNull());
|
||||
js_proxy_t *proxy = jsb_get_js_proxy(obj);
|
||||
cocos2d::Scene* cobj = (cocos2d::Scene *)(proxy ? proxy->ptr : NULL);
|
||||
JSB_PRECONDITION2(cobj, cx, false, "js_cocos2dx_Scene_setNavMeshDebugCamera : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
cocos2d::Camera* arg0;
|
||||
do {
|
||||
if (args.get(0).isNull()) { arg0 = nullptr; break; }
|
||||
if (!args.get(0).isObject()) { ok = false; break; }
|
||||
js_proxy_t *jsProxy;
|
||||
JSObject *tmpObj = args.get(0).toObjectOrNull();
|
||||
jsProxy = jsb_get_js_proxy(tmpObj);
|
||||
arg0 = (cocos2d::Camera*)(jsProxy ? jsProxy->ptr : NULL);
|
||||
JSB_PRECONDITION2(arg0, cx, false, "Invalid Native Object");
|
||||
} while (0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_Scene_setNavMeshDebugCamera : Error processing arguments");
|
||||
cobj->setNavMeshDebugCamera(arg0);
|
||||
args.rval().setUndefined();
|
||||
return true;
|
||||
}
|
||||
|
||||
JS_ReportError(cx, "js_cocos2dx_Scene_setNavMeshDebugCamera : wrong number of arguments: %d, was expecting %d", argc, 1);
|
||||
return false;
|
||||
}
|
||||
bool js_cocos2dx_Scene_setNavMesh(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
bool ok = true;
|
||||
JS::RootedObject obj(cx, args.thisv().toObjectOrNull());
|
||||
js_proxy_t *proxy = jsb_get_js_proxy(obj);
|
||||
cocos2d::Scene* cobj = (cocos2d::Scene *)(proxy ? proxy->ptr : NULL);
|
||||
JSB_PRECONDITION2(cobj, cx, false, "js_cocos2dx_Scene_setNavMesh : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
cocos2d::NavMesh* arg0;
|
||||
do {
|
||||
if (args.get(0).isNull()) { arg0 = nullptr; break; }
|
||||
if (!args.get(0).isObject()) { ok = false; break; }
|
||||
js_proxy_t *jsProxy;
|
||||
JSObject *tmpObj = args.get(0).toObjectOrNull();
|
||||
jsProxy = jsb_get_js_proxy(tmpObj);
|
||||
arg0 = (cocos2d::NavMesh*)(jsProxy ? jsProxy->ptr : NULL);
|
||||
JSB_PRECONDITION2(arg0, cx, false, "Invalid Native Object");
|
||||
} while (0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_Scene_setNavMesh : Error processing arguments");
|
||||
cobj->setNavMesh(arg0);
|
||||
args.rval().setUndefined();
|
||||
return true;
|
||||
}
|
||||
|
||||
JS_ReportError(cx, "js_cocos2dx_Scene_setNavMesh : wrong number of arguments: %d, was expecting %d", argc, 1);
|
||||
return false;
|
||||
}
|
||||
bool js_cocos2dx_Scene_getNavMesh(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
JS::RootedObject obj(cx, args.thisv().toObjectOrNull());
|
||||
js_proxy_t *proxy = jsb_get_js_proxy(obj);
|
||||
cocos2d::Scene* cobj = (cocos2d::Scene *)(proxy ? proxy->ptr : NULL);
|
||||
JSB_PRECONDITION2(cobj, cx, false, "js_cocos2dx_Scene_getNavMesh : Invalid Native Object");
|
||||
if (argc == 0) {
|
||||
cocos2d::NavMesh* ret = cobj->getNavMesh();
|
||||
jsval jsret = JSVAL_NULL;
|
||||
do {
|
||||
if (ret) {
|
||||
js_proxy_t *jsProxy = js_get_or_create_proxy<cocos2d::NavMesh>(cx, (cocos2d::NavMesh*)ret);
|
||||
jsret = OBJECT_TO_JSVAL(jsProxy->obj);
|
||||
}
|
||||
else {
|
||||
jsret = JSVAL_NULL;
|
||||
}
|
||||
} while (0);
|
||||
args.rval().set(jsret);
|
||||
return true;
|
||||
}
|
||||
|
||||
JS_ReportError(cx, "js_cocos2dx_Scene_getNavMesh : wrong number of arguments: %d, was expecting %d", argc, 0);
|
||||
return false;
|
||||
}
|
||||
#endif //CC_USE_NAVMESH
|
||||
|
||||
JSClass *jsb_cocos2d_PolygonInfo_class;
|
||||
JSObject *jsb_cocos2d_PolygonInfo_prototype;
|
||||
|
@ -6336,4 +6420,11 @@ void register_cocos2dx_js_core(JSContext* cx, JS::HandleObject global)
|
|||
JS_DefineFunction(cx, tmpObj, "initWithPhysics", js_cocos2dx_Scene_initWithPhysics, 0, JSPROP_ENUMERATE | JSPROP_PERMANENT);
|
||||
JS_DefineFunction(cx, tmpObj, "getPhysics3DWorld", js_cocos2dx_Scene_getPhysics3DWorld, 0, JSPROP_ENUMERATE | JSPROP_PERMANENT);
|
||||
#endif //CC_ENABLE_BULLET_INTEGRATION && CC_USE_3D_PHYSICS
|
||||
|
||||
#if CC_USE_NAVMESH
|
||||
tmpObj.set(jsb_cocos2d_Scene_prototype);
|
||||
JS_DefineFunction(cx, tmpObj, "getNavMesh", js_cocos2dx_Scene_getNavMesh, 0, JSPROP_ENUMERATE | JSPROP_PERMANENT);
|
||||
JS_DefineFunction(cx, tmpObj, "setNavMeshDebugCamera", js_cocos2dx_Scene_setNavMeshDebugCamera, 1, JSPROP_ENUMERATE | JSPROP_PERMANENT);
|
||||
JS_DefineFunction(cx, tmpObj, "setNavMesh", js_cocos2dx_Scene_setNavMesh, 1, JSPROP_ENUMERATE | JSPROP_PERMANENT);
|
||||
#endif CC_USE_NAVMESH
|
||||
}
|
||||
|
|
|
@ -1562,7 +1562,6 @@ bool jsval_to_blendfunc(JSContext *cx, JS::HandleValue vp, cocos2d::BlendFunc* r
|
|||
ret->src = (unsigned int)src;
|
||||
ret->dst = (unsigned int)dst;
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool jsval_to_vector_vec2(JSContext* cx, JS::HandleValue v, std::vector<cocos2d::Vec2>* ret)
|
||||
|
|
|
@ -0,0 +1,94 @@
|
|||
/*
|
||||
* Created by Huabin LING on 17/6/15.
|
||||
* Copyright (c) 2015 Chukong Technologies Inc.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* 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 "jsb_cocos2dx_navmesh_conversions.h"
|
||||
#if CC_USE_NAVMESH
|
||||
#include "cocos2d_specifics.hpp"
|
||||
#include "js_manual_conversions.h"
|
||||
|
||||
bool jsval_to_NavMeshAgentParam(JSContext *cx, JS::HandleValue v, cocos2d::NavMeshAgentParam* ret)
|
||||
{
|
||||
JS::RootedObject tmp(cx);
|
||||
JS::RootedValue jsr(cx);
|
||||
JS::RootedValue jsh(cx);
|
||||
JS::RootedValue jsmaxA(cx);
|
||||
JS::RootedValue jsmaxS(cx);
|
||||
JS::RootedValue jscQR(cx);
|
||||
JS::RootedValue jspOR(cx);
|
||||
JS::RootedValue jssW(cx);
|
||||
JS::RootedValue jsuF(cx);
|
||||
JS::RootedValue jsoAT(cx);
|
||||
JS::RootedValue jsqFT(cx);
|
||||
double radius, height, maxAcceleration, maxSpeed, collisionQueryRange, pathOptimizationRange, separationWeight, updateFlags, obstacleAvoidanceType, queryFilterType;
|
||||
bool ok = v.isObject() &&
|
||||
JS_ValueToObject(cx, v, &tmp) &&
|
||||
JS_GetProperty(cx, tmp, "radius", &jsr) &&
|
||||
JS_GetProperty(cx, tmp, "height", &jsh) &&
|
||||
JS_GetProperty(cx, tmp, "maxAcceleration", &jsmaxA) &&
|
||||
JS_GetProperty(cx, tmp, "maxSpeed", &jsmaxS) &&
|
||||
JS_GetProperty(cx, tmp, "collisionQueryRange", &jscQR) &&
|
||||
JS_GetProperty(cx, tmp, "pathOptimizationRange", &jspOR) &&
|
||||
JS_GetProperty(cx, tmp, "separationWeight", &jssW) &&
|
||||
JS_GetProperty(cx, tmp, "updateFlags", &jsuF) &&
|
||||
JS_GetProperty(cx, tmp, "obstacleAvoidanceType", &jsoAT) &&
|
||||
JS_GetProperty(cx, tmp, "queryFilterType", &jsqFT) &&
|
||||
JS::ToNumber(cx, jsr, &radius) &&
|
||||
JS::ToNumber(cx, jsh, &height) &&
|
||||
JS::ToNumber(cx, jsmaxA, &maxAcceleration) &&
|
||||
JS::ToNumber(cx, jsmaxS, &maxSpeed) &&
|
||||
JS::ToNumber(cx, jscQR, &collisionQueryRange) &&
|
||||
JS::ToNumber(cx, jspOR, &pathOptimizationRange) &&
|
||||
JS::ToNumber(cx, jssW, &separationWeight) &&
|
||||
JS::ToNumber(cx, jsuF, &updateFlags) &&
|
||||
JS::ToNumber(cx, jsoAT, &obstacleAvoidanceType) &&
|
||||
JS::ToNumber(cx, jsoAT, &queryFilterType);
|
||||
|
||||
JSB_PRECONDITION3(ok, cx, false, "Error processing arguments");
|
||||
|
||||
ret->radius = (float)radius;
|
||||
ret->height = (float)height;
|
||||
ret->maxAcceleration = (float)maxAcceleration;
|
||||
ret->maxSpeed = (float)maxSpeed;
|
||||
ret->collisionQueryRange = (float)collisionQueryRange;
|
||||
ret->pathOptimizationRange = (float)pathOptimizationRange;
|
||||
ret->separationWeight = (float)separationWeight;
|
||||
ret->updateFlags = (unsigned char)updateFlags;
|
||||
ret->obstacleAvoidanceType = (unsigned char)obstacleAvoidanceType;
|
||||
ret->queryFilterType = (unsigned char)queryFilterType;
|
||||
return true;
|
||||
}
|
||||
|
||||
jsval offMeshLinkData_to_jsval(JSContext* cx, const cocos2d::OffMeshLinkData& v)
|
||||
{
|
||||
JS::RootedObject proto(cx);
|
||||
JS::RootedObject parent(cx);
|
||||
JS::RootedObject tmp(cx, JS_NewObject(cx, NULL, proto, parent));
|
||||
if (!tmp) return JSVAL_NULL;
|
||||
bool ok = JS_DefineProperty(cx, tmp, "startPosition", JS::RootedValue(cx, vector3_to_jsval(cx, v.startPosition)), JSPROP_ENUMERATE | JSPROP_PERMANENT) &&
|
||||
JS_DefineProperty(cx, tmp, "endPosition", JS::RootedValue(cx, vector3_to_jsval(cx, v.endPosition)), JSPROP_ENUMERATE | JSPROP_PERMANENT);
|
||||
if (ok) {
|
||||
return OBJECT_TO_JSVAL(tmp);
|
||||
}
|
||||
return JSVAL_NULL;
|
||||
}
|
||||
#endif //#if CC_USE_NAVMESH
|
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
* Created by Huabin LING on 17/6/15.
|
||||
* Copyright (c) 2015 Chukong Technologies Inc.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* 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 "base/ccConfig.h"
|
||||
#if CC_USE_NAVMESH
|
||||
#ifndef __cocos2d_js_bindings__jsb_cocos2dx_navmesh_conversions__
|
||||
#define __cocos2d_js_bindings__jsb_cocos2dx_navmesh_conversions__
|
||||
|
||||
#include "jsapi.h"
|
||||
#include "navmesh/CCNavMeshAgent.h"
|
||||
|
||||
namespace cocos2d
|
||||
{
|
||||
struct NavMeshAgentParam;
|
||||
}
|
||||
|
||||
bool jsval_to_NavMeshAgentParam(JSContext *cx, JS::HandleValue v, cocos2d::NavMeshAgentParam* ret);
|
||||
jsval offMeshLinkData_to_jsval(JSContext* cx, const cocos2d::OffMeshLinkData& v);
|
||||
|
||||
#endif /* defined(__cocos2d_js_bindings__jsb_cocos2dx_navmesh_conversions__) */
|
||||
#endif //#if CC_USE_NAVMESH
|
|
@ -0,0 +1,89 @@
|
|||
/****************************************************************************
|
||||
Copyright (c) 2008-2010 Ricardo Quesada
|
||||
Copyright (c) 2010-2012 cocos2d-x.org
|
||||
Copyright (c) 2011 Zynga Inc.
|
||||
Copyright (c) 2013-2014 Chukong Technologies Inc.
|
||||
|
||||
http://www.cocos2d-x.org
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
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 "jsb_cocos2dx_navmesh_auto.hpp"
|
||||
#if CC_USE_NAVMESH
|
||||
#include "ScriptingCore.h"
|
||||
#include "cocos2d_specifics.hpp"
|
||||
#include "cocos2d.h"
|
||||
#include "navmesh/CCNavMesh.h"
|
||||
#include "js_manual_conversions.h"
|
||||
|
||||
static bool jsb_cocos2dx_navmesh_NavMeshAgent_move(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JSObject *obj = JS_THIS_OBJECT(cx, vp);
|
||||
js_proxy_t *proxy = jsb_get_js_proxy(obj);
|
||||
cocos2d::NavMeshAgent* cobj = (cocos2d::NavMeshAgent *)(proxy ? proxy->ptr : NULL);
|
||||
JSB_PRECONDITION2(cobj, cx, false, "Invalid Native Object");
|
||||
|
||||
bool ok = true;
|
||||
|
||||
if (argc == 1){
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
cocos2d::Vec3 arg0;
|
||||
ok &= jsval_to_vector3(cx, args.get(0), &arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "jsb_cocos2dx_navmesh_NavMeshAgent_move : Error processing arguments");
|
||||
cobj->move(arg0);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (argc == 2){
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
cocos2d::Vec3 arg0;
|
||||
ok &= jsval_to_vector3(cx, args.get(0), &arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "jsb_cocos2dx_navmesh_NavMeshAgent_move : Error processing arguments");
|
||||
|
||||
std::shared_ptr<JSFunctionWrapper> func(new JSFunctionWrapper(cx, obj, args.get(1)));
|
||||
|
||||
cobj->move(arg0, [=](cocos2d::NavMeshAgent *agent, float totalTimeAfterMove)->void{
|
||||
jsval arg[2];
|
||||
js_proxy_t *agentProxy = js_get_or_create_proxy(cx, agent);
|
||||
if (proxy)
|
||||
arg[0] = OBJECT_TO_JSVAL(agentProxy->obj);
|
||||
else
|
||||
arg[0] = JSVAL_NULL;
|
||||
arg[1] = DOUBLE_TO_JSVAL((double)totalTimeAfterMove);
|
||||
JS::RootedValue rval(cx);
|
||||
|
||||
bool invokeOk = func->invoke(2, arg, &rval);
|
||||
if (!invokeOk && JS_IsExceptionPending(cx)) {
|
||||
JS_ReportPendingException(cx);
|
||||
}
|
||||
});
|
||||
return true;
|
||||
}
|
||||
|
||||
JS_ReportError(cx, "jsb_cocos2dx_navmesh_NavMeshAgent_move : wrong number of arguments: %d, was expecting %d or %d", argc, 1, 2);
|
||||
return false;
|
||||
}
|
||||
|
||||
extern JSObject *jsb_cocos2d_NavMeshAgent_prototype;
|
||||
|
||||
void register_all_cocos2dx_navmesh_manual(JSContext *cx, JS::HandleObject global)
|
||||
{
|
||||
JS_DefineFunction(cx, JS::RootedObject(cx, jsb_cocos2d_NavMeshAgent_prototype), "move", jsb_cocos2dx_navmesh_NavMeshAgent_move, 2, JSPROP_ENUMERATE | JSPROP_PERMANENT);
|
||||
}
|
||||
#endif //#if CC_USE_NAVMESH
|
|
@ -0,0 +1,37 @@
|
|||
/****************************************************************************
|
||||
Copyright (c) 2008-2010 Ricardo Quesada
|
||||
Copyright (c) 2010-2012 cocos2d-x.org
|
||||
Copyright (c) 2011 Zynga Inc.
|
||||
Copyright (c) 2013-2014 Chukong Technologies Inc.
|
||||
|
||||
http://www.cocos2d-x.org
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
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 "base/ccConfig.h"
|
||||
#if CC_USE_NAVMESH
|
||||
#ifndef __jsb_cocos2dx_navmesh_manual__
|
||||
#define __jsb_cocos2dx_navmesh_manual__
|
||||
|
||||
#include "jsapi.h"
|
||||
|
||||
void register_all_cocos2dx_navmesh_manual(JSContext *cx, JS::HandleObject global);
|
||||
|
||||
#endif // __jsb_cocos2dx_navmesh_manual__
|
||||
#endif //#if CC_USE_NAVMESH
|
|
@ -40,6 +40,7 @@ LOCAL_SRC_FILES := ../auto/jsb_cocos2dx_3d_auto.cpp \
|
|||
../auto/jsb_cocos2dx_3d_extension_auto.cpp \
|
||||
../auto/jsb_cocos2dx_experimental_webView_auto.cpp \
|
||||
../auto/jsb_cocos2dx_experimental_video_auto.cpp \
|
||||
../auto/jsb_cocos2dx_navmesh_auto.cpp \
|
||||
../auto/jsb_cocos2dx_spine_auto.cpp \
|
||||
../auto/jsb_cocos2dx_auto.cpp \
|
||||
../auto/jsb_cocos2dx_studio_auto.cpp \
|
||||
|
@ -73,6 +74,8 @@ LOCAL_SRC_FILES := ../auto/jsb_cocos2dx_3d_auto.cpp \
|
|||
../manual/network/XMLHTTPRequest.cpp \
|
||||
../manual/spine/jsb_cocos2dx_spine_manual.cpp \
|
||||
../manual/ui/jsb_cocos2dx_ui_manual.cpp \
|
||||
../manual/navmesh/jsb_cocos2dx_navmesh_conversions.cpp \
|
||||
../manual/navmesh/jsb_cocos2dx_navmesh_manual.cpp \
|
||||
../manual/physics3d/jsb_cocos2dx_physics3d_manual.cpp
|
||||
|
||||
|
||||
|
@ -83,12 +86,14 @@ LOCAL_EXPORT_CFLAGS := -DCOCOS2D_JAVASCRIPT
|
|||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../manual \
|
||||
$(LOCAL_PATH)/../manual/cocostudio \
|
||||
$(LOCAL_PATH)/../manual/spine \
|
||||
$(LOCAL_PATH)/../manual/navmesh \
|
||||
$(LOCAL_PATH)/../auto \
|
||||
$(LOCAL_PATH)/../../../2d \
|
||||
$(LOCAL_PATH)/../../../3d \
|
||||
$(LOCAL_PATH)/../../../physics3d \
|
||||
$(LOCAL_PATH)/../../../base \
|
||||
$(LOCAL_PATH)/../../../ui \
|
||||
$(LOCAL_PATH)/../../../navmesh \
|
||||
$(LOCAL_PATH)/../../../audio/include \
|
||||
$(LOCAL_PATH)/../../../storage \
|
||||
$(LOCAL_PATH)/../../../../extensions \
|
||||
|
@ -98,6 +103,7 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/../manual \
|
|||
|
||||
|
||||
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../manual \
|
||||
$(LOCAL_PATH)/../manual/navmesh \
|
||||
$(LOCAL_PATH)/../auto \
|
||||
$(LOCAL_PATH)/../../../audio/include
|
||||
|
||||
|
|
|
@ -191,6 +191,18 @@
|
|||
BAEE4D721AC3FFAD003BEB0F /* jsb_cocos2dx_3d_extension_auto.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BAEE4D6F1AC3FFAD003BEB0F /* jsb_cocos2dx_3d_extension_auto.cpp */; };
|
||||
BAEE4D731AC3FFAD003BEB0F /* jsb_cocos2dx_3d_extension_auto.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BAEE4D701AC3FFAD003BEB0F /* jsb_cocos2dx_3d_extension_auto.hpp */; };
|
||||
BAEE4D741AC3FFAD003BEB0F /* jsb_cocos2dx_3d_extension_auto.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BAEE4D701AC3FFAD003BEB0F /* jsb_cocos2dx_3d_extension_auto.hpp */; };
|
||||
BAFA58FB1B319F05004F9246 /* jsb_cocos2dx_navmesh_auto.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BAFA58F91B319F05004F9246 /* jsb_cocos2dx_navmesh_auto.cpp */; };
|
||||
BAFA58FC1B319F05004F9246 /* jsb_cocos2dx_navmesh_auto.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BAFA58F91B319F05004F9246 /* jsb_cocos2dx_navmesh_auto.cpp */; };
|
||||
BAFA58FD1B319F05004F9246 /* jsb_cocos2dx_navmesh_auto.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BAFA58FA1B319F05004F9246 /* jsb_cocos2dx_navmesh_auto.hpp */; };
|
||||
BAFA58FE1B319F05004F9246 /* jsb_cocos2dx_navmesh_auto.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BAFA58FA1B319F05004F9246 /* jsb_cocos2dx_navmesh_auto.hpp */; };
|
||||
BAFA59031B319F38004F9246 /* jsb_cocos2dx_navmesh_manual.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BAFA59011B319F38004F9246 /* jsb_cocos2dx_navmesh_manual.cpp */; };
|
||||
BAFA59041B319F38004F9246 /* jsb_cocos2dx_navmesh_manual.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BAFA59011B319F38004F9246 /* jsb_cocos2dx_navmesh_manual.cpp */; };
|
||||
BAFA59051B319F38004F9246 /* jsb_cocos2dx_navmesh_manual.h in Headers */ = {isa = PBXBuildFile; fileRef = BAFA59021B319F38004F9246 /* jsb_cocos2dx_navmesh_manual.h */; };
|
||||
BAFA59061B319F38004F9246 /* jsb_cocos2dx_navmesh_manual.h in Headers */ = {isa = PBXBuildFile; fileRef = BAFA59021B319F38004F9246 /* jsb_cocos2dx_navmesh_manual.h */; };
|
||||
BAFA59091B319F7E004F9246 /* jsb_cocos2dx_navmesh_conversions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BAFA59071B319F7E004F9246 /* jsb_cocos2dx_navmesh_conversions.cpp */; };
|
||||
BAFA590A1B319F7E004F9246 /* jsb_cocos2dx_navmesh_conversions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BAFA59071B319F7E004F9246 /* jsb_cocos2dx_navmesh_conversions.cpp */; };
|
||||
BAFA590B1B319F7E004F9246 /* jsb_cocos2dx_navmesh_conversions.h in Headers */ = {isa = PBXBuildFile; fileRef = BAFA59081B319F7E004F9246 /* jsb_cocos2dx_navmesh_conversions.h */; };
|
||||
BAFA590C1B319F7E004F9246 /* jsb_cocos2dx_navmesh_conversions.h in Headers */ = {isa = PBXBuildFile; fileRef = BAFA59081B319F7E004F9246 /* jsb_cocos2dx_navmesh_conversions.h */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
|
@ -307,6 +319,12 @@
|
|||
BA623E17191A196F00761F37 /* jsb_cocos2dx_pluginx_auto.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = jsb_cocos2dx_pluginx_auto.hpp; path = ../../../../plugin/jsbindings/auto/jsb_cocos2dx_pluginx_auto.hpp; sourceTree = "<group>"; };
|
||||
BAEE4D6F1AC3FFAD003BEB0F /* jsb_cocos2dx_3d_extension_auto.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = jsb_cocos2dx_3d_extension_auto.cpp; sourceTree = "<group>"; };
|
||||
BAEE4D701AC3FFAD003BEB0F /* jsb_cocos2dx_3d_extension_auto.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = jsb_cocos2dx_3d_extension_auto.hpp; sourceTree = "<group>"; };
|
||||
BAFA58F91B319F05004F9246 /* jsb_cocos2dx_navmesh_auto.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = jsb_cocos2dx_navmesh_auto.cpp; sourceTree = "<group>"; };
|
||||
BAFA58FA1B319F05004F9246 /* jsb_cocos2dx_navmesh_auto.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = jsb_cocos2dx_navmesh_auto.hpp; sourceTree = "<group>"; };
|
||||
BAFA59011B319F38004F9246 /* jsb_cocos2dx_navmesh_manual.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = jsb_cocos2dx_navmesh_manual.cpp; sourceTree = "<group>"; };
|
||||
BAFA59021B319F38004F9246 /* jsb_cocos2dx_navmesh_manual.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = jsb_cocos2dx_navmesh_manual.h; sourceTree = "<group>"; };
|
||||
BAFA59071B319F7E004F9246 /* jsb_cocos2dx_navmesh_conversions.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = jsb_cocos2dx_navmesh_conversions.cpp; sourceTree = "<group>"; };
|
||||
BAFA59081B319F7E004F9246 /* jsb_cocos2dx_navmesh_conversions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = jsb_cocos2dx_navmesh_conversions.h; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
|
@ -377,6 +395,8 @@
|
|||
1AB5E62A18D05BC80088DAA4 /* jsb_cocos2dx_ui_auto.hpp */,
|
||||
BA623E16191A196F00761F37 /* jsb_cocos2dx_pluginx_auto.cpp */,
|
||||
BA623E17191A196F00761F37 /* jsb_cocos2dx_pluginx_auto.hpp */,
|
||||
BAFA58F91B319F05004F9246 /* jsb_cocos2dx_navmesh_auto.cpp */,
|
||||
BAFA58FA1B319F05004F9246 /* jsb_cocos2dx_navmesh_auto.hpp */,
|
||||
);
|
||||
name = auto;
|
||||
path = ../auto;
|
||||
|
@ -385,6 +405,7 @@
|
|||
1A119E4118BDF19200352BAA /* manual */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
BAFA59001B319F38004F9246 /* navmesh */,
|
||||
426390011B0EC1C6004C53A2 /* physics3d */,
|
||||
42AD25701AFF9DFC000176E2 /* experimental */,
|
||||
420BBCF41AA48EE900493976 /* 3d */,
|
||||
|
@ -602,6 +623,17 @@
|
|||
name = pluginx;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
BAFA59001B319F38004F9246 /* navmesh */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
BAFA59071B319F7E004F9246 /* jsb_cocos2dx_navmesh_conversions.cpp */,
|
||||
BAFA59081B319F7E004F9246 /* jsb_cocos2dx_navmesh_conversions.h */,
|
||||
BAFA59011B319F38004F9246 /* jsb_cocos2dx_navmesh_manual.cpp */,
|
||||
BAFA59021B319F38004F9246 /* jsb_cocos2dx_navmesh_manual.h */,
|
||||
);
|
||||
path = navmesh;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXHeadersBuildPhase section */
|
||||
|
@ -615,6 +647,7 @@
|
|||
83A5661B18DA878400FC31A0 /* jsb_socketio.h in Headers */,
|
||||
1A1D3B7A18C44FD000922D3C /* jsb_event_dispatcher_manual.h in Headers */,
|
||||
1A119EF518BDF19200352BAA /* js_bindings_system_registration.h in Headers */,
|
||||
BAFA59051B319F38004F9246 /* jsb_cocos2dx_navmesh_manual.h in Headers */,
|
||||
1A119EBF18BDF19200352BAA /* cocosbuilder_specifics.hpp in Headers */,
|
||||
4B22F4AB1B159A7A0044C14E /* jsb_cocos2dx_experimental_webView_manual.h in Headers */,
|
||||
1A119ED118BDF19200352BAA /* js_bindings_config.h in Headers */,
|
||||
|
@ -633,7 +666,9 @@
|
|||
1A119EDF18BDF19200352BAA /* jsb_helper.h in Headers */,
|
||||
1A119ECB18BDF19200352BAA /* jsb_cocos2dx_extension_manual.h in Headers */,
|
||||
1A119EEF18BDF19200352BAA /* js_bindings_system_functions.h in Headers */,
|
||||
BAFA590B1B319F7E004F9246 /* jsb_cocos2dx_navmesh_conversions.h in Headers */,
|
||||
1A119EDD18BDF19200352BAA /* js_manual_conversions.h in Headers */,
|
||||
BAFA58FD1B319F05004F9246 /* jsb_cocos2dx_navmesh_auto.hpp in Headers */,
|
||||
1A119EFD18BDF19200352BAA /* XMLHTTPRequest.h in Headers */,
|
||||
1AB5E63518D05BF30088DAA4 /* jsb_cocos2dx_ui_manual.h in Headers */,
|
||||
1A119EE318BDF19200352BAA /* jsb_opengl_functions.h in Headers */,
|
||||
|
@ -667,10 +702,12 @@
|
|||
1A119EBE18BDF19200352BAA /* cocos2d_specifics.hpp in Headers */,
|
||||
83A5661C18DA878400FC31A0 /* jsb_socketio.h in Headers */,
|
||||
1A1D3B7B18C44FD000922D3C /* jsb_event_dispatcher_manual.h in Headers */,
|
||||
BAFA59061B319F38004F9246 /* jsb_cocos2dx_navmesh_manual.h in Headers */,
|
||||
1A119EF618BDF19200352BAA /* js_bindings_system_registration.h in Headers */,
|
||||
BA4095C51A6F730A005E53F6 /* jsb_cocos2dx_studio_conversions.h in Headers */,
|
||||
1A119EC018BDF19200352BAA /* cocosbuilder_specifics.hpp in Headers */,
|
||||
1A119ED218BDF19200352BAA /* js_bindings_config.h in Headers */,
|
||||
BAFA590C1B319F7E004F9246 /* jsb_cocos2dx_navmesh_conversions.h in Headers */,
|
||||
BAEE4D741AC3FFAD003BEB0F /* jsb_cocos2dx_3d_extension_auto.hpp in Headers */,
|
||||
1A119EB618BDF19200352BAA /* js_bindings_chipmunk_manual.h in Headers */,
|
||||
1A119EFA18BDF19200352BAA /* jsb_websocket.h in Headers */,
|
||||
|
@ -707,6 +744,7 @@
|
|||
1A119EB018BDF19200352BAA /* js_bindings_chipmunk_functions.h in Headers */,
|
||||
4BE089EC1ADF967400D65D4B /* jsb_cocos2dx_experimental_webView_manual.h in Headers */,
|
||||
BA623E0E191A195F00761F37 /* jsb_pluginx_manual_callback.h in Headers */,
|
||||
BAFA58FE1B319F05004F9246 /* jsb_cocos2dx_navmesh_auto.hpp in Headers */,
|
||||
1A119EB218BDF19200352BAA /* js_bindings_chipmunk_functions_registration.h in Headers */,
|
||||
1A119EF218BDF19200352BAA /* js_bindings_system_functions_registration.h in Headers */,
|
||||
1A119E8618BDF19200352BAA /* jsb_cocos2dx_auto.hpp in Headers */,
|
||||
|
@ -796,6 +834,7 @@
|
|||
1A119EE918BDF19200352BAA /* jsb_opengl_registration.cpp in Sources */,
|
||||
1A119EF718BDF19200352BAA /* jsb_websocket.cpp in Sources */,
|
||||
1A119ED318BDF19200352BAA /* js_bindings_core.cpp in Sources */,
|
||||
BAFA59031B319F38004F9246 /* jsb_cocos2dx_navmesh_manual.cpp in Sources */,
|
||||
1A119EC118BDF19200352BAA /* js_bindings_ccbreader.cpp in Sources */,
|
||||
1A119EFB18BDF19200352BAA /* XMLHTTPRequest.cpp in Sources */,
|
||||
BAEE4D711AC3FFAD003BEB0F /* jsb_cocos2dx_3d_extension_auto.cpp in Sources */,
|
||||
|
@ -819,8 +858,10 @@
|
|||
420BBCF01AA48EDE00493976 /* jsb_cocos2dx_3d_auto.cpp in Sources */,
|
||||
83A5661918DA878400FC31A0 /* jsb_socketio.cpp in Sources */,
|
||||
1A119EE118BDF19200352BAA /* jsb_opengl_functions.cpp in Sources */,
|
||||
BAFA59091B319F7E004F9246 /* jsb_cocos2dx_navmesh_conversions.cpp in Sources */,
|
||||
42638FFD1B0EC1B7004C53A2 /* jsb_cocos2dx_physics3d_auto.cpp in Sources */,
|
||||
1A119EA718BDF19200352BAA /* js_bindings_chipmunk_auto_classes.cpp in Sources */,
|
||||
BAFA58FB1B319F05004F9246 /* jsb_cocos2dx_navmesh_auto.cpp in Sources */,
|
||||
1A119EFF18BDF19200352BAA /* ScriptingCore.cpp in Sources */,
|
||||
1A1D3B7818C44FD000922D3C /* jsb_event_dispatcher_manual.cpp in Sources */,
|
||||
);
|
||||
|
@ -840,9 +881,11 @@
|
|||
1A119EF818BDF19200352BAA /* jsb_websocket.cpp in Sources */,
|
||||
1A119ED418BDF19200352BAA /* js_bindings_core.cpp in Sources */,
|
||||
420BBCF11AA48EDE00493976 /* jsb_cocos2dx_3d_auto.cpp in Sources */,
|
||||
BAFA58FC1B319F05004F9246 /* jsb_cocos2dx_navmesh_auto.cpp in Sources */,
|
||||
1A119EC218BDF19200352BAA /* js_bindings_ccbreader.cpp in Sources */,
|
||||
1A119EFC18BDF19200352BAA /* XMLHTTPRequest.cpp in Sources */,
|
||||
1A119EC618BDF19200352BAA /* jsb_cocos2dx_studio_manual.cpp in Sources */,
|
||||
BAFA59041B319F38004F9246 /* jsb_cocos2dx_navmesh_manual.cpp in Sources */,
|
||||
1A119E9018BDF19200352BAA /* jsb_cocos2dx_extension_auto.cpp in Sources */,
|
||||
1A119ED818BDF19200352BAA /* js_bindings_opengl.cpp in Sources */,
|
||||
1AB5E62C18D05BC80088DAA4 /* jsb_cocos2dx_ui_auto.cpp in Sources */,
|
||||
|
@ -871,6 +914,7 @@
|
|||
BA4095C31A6F730A005E53F6 /* jsb_cocos2dx_studio_conversions.cpp in Sources */,
|
||||
BA623E0B191A195F00761F37 /* jsb_pluginx_extension_registration.cpp in Sources */,
|
||||
BA623E11191A195F00761F37 /* jsb_pluginx_spidermonkey_specifics.cpp in Sources */,
|
||||
BAFA590A1B319F7E004F9246 /* jsb_cocos2dx_navmesh_conversions.cpp in Sources */,
|
||||
BA623E18191A196F00761F37 /* jsb_cocos2dx_pluginx_auto.cpp in Sources */,
|
||||
1A119F0018BDF19200352BAA /* ScriptingCore.cpp in Sources */,
|
||||
BA623E09191A195F00761F37 /* jsb_pluginx_basic_conversions.cpp in Sources */,
|
||||
|
@ -918,7 +962,7 @@
|
|||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SDKROOT = macosx;
|
||||
SKIP_INSTALL = YES;
|
||||
USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/../../../.. $(SRCROOT)/../../../../cocos $(SRCROOT)/../../../../cocos/base $(SRCROOT)/../../../../cocos/3d $(SRCROOT)/../../../../cocos/2d $(SRCROOT)/../../../../cocos/physics3d $(SRCROOT)/../../../../cocos/platform $(SRCROOT)/../../../../cocos/audio/include $(SRCROOT)/../../../../cocos/editor-support $(SRCROOT)/../../../../cocos/editor-support/cocosbuilder $(SRCROOT)/../../../../cocos/editor-support/cocostudio $(SRCROOT)/../../../../cocos/editor-support/spine $(SRCROOT)/../../../../cocos/ui $(SRCROOT)/../../../../cocos/storage $(SRCROOT)/../../../../extensions $(SRCROOT)/../../../../external/chipmunk/include/chipmunk $(SRCROOT)/../../../../external $(SRCROOT)/../auto $(SRCROOT)/../manual";
|
||||
USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/../../../.. $(SRCROOT)/../../../../cocos $(SRCROOT)/../../../../cocos/base $(SRCROOT)/../../../../cocos/3d $(SRCROOT)/../../../../cocos/2d $(SRCROOT)/../../../../cocos/physics3d $(SRCROOT)/../../../../cocos/navmesh $(SRCROOT)/../../../../cocos/platform $(SRCROOT)/../../../../cocos/audio/include $(SRCROOT)/../../../../cocos/editor-support $(SRCROOT)/../../../../cocos/editor-support/cocosbuilder $(SRCROOT)/../../../../cocos/editor-support/cocostudio $(SRCROOT)/../../../../cocos/editor-support/spine $(SRCROOT)/../../../../cocos/ui $(SRCROOT)/../../../../cocos/storage $(SRCROOT)/../../../../extensions $(SRCROOT)/../../../../external/chipmunk/include/chipmunk $(SRCROOT)/../../../../external $(SRCROOT)/../auto $(SRCROOT)/../manual";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
|
@ -952,7 +996,7 @@
|
|||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SDKROOT = macosx;
|
||||
SKIP_INSTALL = YES;
|
||||
USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/../../../.. $(SRCROOT)/../../../../cocos $(SRCROOT)/../../../../cocos/base $(SRCROOT)/../../../../cocos/3d $(SRCROOT)/../../../../cocos/2d $(SRCROOT)/../../../../cocos/physics3d $(SRCROOT)/../../../../cocos/platform $(SRCROOT)/../../../../cocos/audio/include $(SRCROOT)/../../../../cocos/editor-support $(SRCROOT)/../../../../cocos/editor-support/cocosbuilder $(SRCROOT)/../../../../cocos/editor-support/cocostudio $(SRCROOT)/../../../../cocos/editor-support/spine $(SRCROOT)/../../../../cocos/ui $(SRCROOT)/../../../../cocos/storage $(SRCROOT)/../../../../extensions $(SRCROOT)/../../../../external/chipmunk/include/chipmunk $(SRCROOT)/../../../../external $(SRCROOT)/../auto $(SRCROOT)/../manual";
|
||||
USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/../../../.. $(SRCROOT)/../../../../cocos $(SRCROOT)/../../../../cocos/base $(SRCROOT)/../../../../cocos/3d $(SRCROOT)/../../../../cocos/2d $(SRCROOT)/../../../../cocos/physics3d $(SRCROOT)/../../../../cocos/navmesh $(SRCROOT)/../../../../cocos/platform $(SRCROOT)/../../../../cocos/audio/include $(SRCROOT)/../../../../cocos/editor-support $(SRCROOT)/../../../../cocos/editor-support/cocosbuilder $(SRCROOT)/../../../../cocos/editor-support/cocostudio $(SRCROOT)/../../../../cocos/editor-support/spine $(SRCROOT)/../../../../cocos/ui $(SRCROOT)/../../../../cocos/storage $(SRCROOT)/../../../../extensions $(SRCROOT)/../../../../external/chipmunk/include/chipmunk $(SRCROOT)/../../../../external $(SRCROOT)/../auto $(SRCROOT)/../manual";
|
||||
VALIDATE_PRODUCT = YES;
|
||||
};
|
||||
name = Release;
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
<ClCompile Include="..\auto\jsb_cocos2dx_auto.cpp" />
|
||||
<ClCompile Include="..\auto\jsb_cocos2dx_builder_auto.cpp" />
|
||||
<ClCompile Include="..\auto\jsb_cocos2dx_extension_auto.cpp" />
|
||||
<ClCompile Include="..\auto\jsb_cocos2dx_navmesh_auto.cpp" />
|
||||
<ClCompile Include="..\auto\jsb_cocos2dx_physics3d_auto.cpp" />
|
||||
<ClCompile Include="..\auto\jsb_cocos2dx_spine_auto.cpp" />
|
||||
<ClCompile Include="..\auto\jsb_cocos2dx_studio_auto.cpp" />
|
||||
|
@ -39,6 +40,8 @@
|
|||
<ClCompile Include="..\manual\js_manual_conversions.cpp" />
|
||||
<ClCompile Include="..\manual\localstorage\js_bindings_system_functions.cpp" />
|
||||
<ClCompile Include="..\manual\localstorage\js_bindings_system_registration.cpp" />
|
||||
<ClCompile Include="..\manual\navmesh\jsb_cocos2dx_navmesh_conversions.cpp" />
|
||||
<ClCompile Include="..\manual\navmesh\jsb_cocos2dx_navmesh_manual.cpp" />
|
||||
<ClCompile Include="..\manual\network\jsb_socketio.cpp" />
|
||||
<ClCompile Include="..\manual\network\jsb_websocket.cpp" />
|
||||
<ClCompile Include="..\manual\network\XMLHTTPRequest.cpp" />
|
||||
|
@ -53,6 +56,7 @@
|
|||
<ClInclude Include="..\auto\jsb_cocos2dx_auto.hpp" />
|
||||
<ClInclude Include="..\auto\jsb_cocos2dx_builder_auto.hpp" />
|
||||
<ClInclude Include="..\auto\jsb_cocos2dx_extension_auto.hpp" />
|
||||
<ClInclude Include="..\auto\jsb_cocos2dx_navmesh_auto.hpp" />
|
||||
<ClInclude Include="..\auto\jsb_cocos2dx_physics3d_auto.hpp" />
|
||||
<ClInclude Include="..\auto\jsb_cocos2dx_spine_auto.hpp" />
|
||||
<ClInclude Include="..\auto\jsb_cocos2dx_studio_auto.hpp" />
|
||||
|
@ -82,6 +86,8 @@
|
|||
<ClInclude Include="..\manual\localstorage\js_bindings_system_functions.h" />
|
||||
<ClInclude Include="..\manual\localstorage\js_bindings_system_functions_registration.h" />
|
||||
<ClInclude Include="..\manual\localstorage\js_bindings_system_registration.h" />
|
||||
<ClInclude Include="..\manual\navmesh\jsb_cocos2dx_navmesh_conversions.h" />
|
||||
<ClInclude Include="..\manual\navmesh\jsb_cocos2dx_navmesh_manual.h" />
|
||||
<ClInclude Include="..\manual\network\jsb_socketio.h" />
|
||||
<ClInclude Include="..\manual\network\jsb_websocket.h" />
|
||||
<ClInclude Include="..\manual\network\XMLHTTPRequest.h" />
|
||||
|
@ -151,7 +157,7 @@
|
|||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>WIN32;_WINDOWS;_DEBUG;_LIB;COCOS2D_DEBUG=1;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;CC_ENABLE_BULLET_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>$(ProjectDir)..;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\base;$(EngineRoot)cocos\3d;$(EngineRoot)cocos\2d;$(EngineRoot)cocos\physics3d;$(EngineRoot)cocos\ui;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\editor-support\spine;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\audio\include;$(EngineRoot)extensions;$(EngineRoot)external;$(ProjectDir)..\auto;$(ProjectDir)..\manual;$(ProjectDir)..\manual\cocostudio;$(ProjectDir)..\manual\spine;$(ProjectDir)..\..\..\..\external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalIncludeDirectories>$(ProjectDir)..;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\base;$(EngineRoot)cocos\3d;$(EngineRoot)cocos\2d;$(EngineRoot)cocos\navmesh;$(EngineRoot)cocos\physics3d;$(EngineRoot)cocos\ui;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\editor-support\spine;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\audio\include;$(EngineRoot)extensions;$(EngineRoot)external;$(ProjectDir)..\auto;$(ProjectDir)..\manual;$(ProjectDir)..\manual\cocostudio;$(ProjectDir)..\manual\navmesh;$(ProjectDir)..\manual\spine;$(ProjectDir)..\..\..\..\external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<DisableSpecificWarnings>4068;4101;4800;4251;4244;4099;4083;4700;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
|
@ -177,7 +183,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\spidermonkey\prebuilt\win32\*.*"
|
|||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>WIN32;_WINDOWS;NDEBUG;_LIB;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;CC_ENABLE_BULLET_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>$(ProjectDir)..;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\base;$(EngineRoot)cocos\3d;$(EngineRoot)cocos\2d;$(EngineRoot)cocos\physics3d;$(EngineRoot)cocos\ui;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\editor-support\spine;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\audio\include;$(EngineRoot)extensions;$(EngineRoot)external;$(ProjectDir)..\auto;$(ProjectDir)..\manual;$(ProjectDir)..\manual\cocostudio;$(ProjectDir)..\manual\spine;$(ProjectDir)..\..\..\..\external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalIncludeDirectories>$(ProjectDir)..;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\base;$(EngineRoot)cocos\3d;$(EngineRoot)cocos\2d;$(EngineRoot)cocos\physics3d;$(EngineRoot)cocos\ui;$(EngineRoot)cocos\navmesh;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\editor-support\spine;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\audio\include;$(EngineRoot)extensions;$(EngineRoot)external;$(ProjectDir)..\auto;$(ProjectDir)..\manual;$(ProjectDir)..\manual\cocostudio;$(ProjectDir)..\manual\navmesh;$(ProjectDir)..\manual\spine;$(ProjectDir)..\..\..\..\external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<DisableSpecificWarnings>4068;4101;4800;4251;4244;4099;4083;4700;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
|
|
|
@ -42,6 +42,9 @@
|
|||
<Filter Include="manual\physics3d">
|
||||
<UniqueIdentifier>{3aaaf02d-80d8-4339-b4cd-89d89ade5293}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="manual\navmesh">
|
||||
<UniqueIdentifier>{8c9f2cd3-9065-4bf5-a073-7697217022e2}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\auto\jsb_cocos2dx_auto.cpp">
|
||||
|
@ -149,6 +152,15 @@
|
|||
<ClCompile Include="..\manual\physics3d\jsb_cocos2dx_physics3d_manual.cpp">
|
||||
<Filter>manual\physics3d</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\auto\jsb_cocos2dx_navmesh_auto.cpp">
|
||||
<Filter>auto</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\manual\navmesh\jsb_cocos2dx_navmesh_manual.cpp">
|
||||
<Filter>manual\navmesh</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\manual\navmesh\jsb_cocos2dx_navmesh_conversions.cpp">
|
||||
<Filter>manual\navmesh</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\auto\jsb_cocos2dx_auto.hpp">
|
||||
|
@ -277,5 +289,14 @@
|
|||
<ClInclude Include="..\manual\physics3d\jsb_cocos2dx_physics3d_manual.h">
|
||||
<Filter>manual\physics3d</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\auto\jsb_cocos2dx_navmesh_auto.hpp">
|
||||
<Filter>auto</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\manual\navmesh\jsb_cocos2dx_navmesh_manual.h">
|
||||
<Filter>manual\navmesh</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\manual\navmesh\jsb_cocos2dx_navmesh_conversions.h">
|
||||
<Filter>manual\navmesh</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -19,6 +19,7 @@
|
|||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\auto\jsb_cocos2dx_auto.hpp" />
|
||||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\auto\jsb_cocos2dx_builder_auto.hpp" />
|
||||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\auto\jsb_cocos2dx_extension_auto.hpp" />
|
||||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\auto\jsb_cocos2dx_navmesh_auto.hpp" />
|
||||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\auto\jsb_cocos2dx_physics3d_auto.hpp" />
|
||||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\auto\jsb_cocos2dx_spine_auto.hpp" />
|
||||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\auto\jsb_cocos2dx_studio_auto.hpp" />
|
||||
|
@ -48,6 +49,8 @@
|
|||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\manual\localstorage\js_bindings_system_functions.h" />
|
||||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\manual\localstorage\js_bindings_system_functions_registration.h" />
|
||||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\manual\localstorage\js_bindings_system_registration.h" />
|
||||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\manual\navmesh\jsb_cocos2dx_navmesh_conversions.h" />
|
||||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\manual\navmesh\jsb_cocos2dx_navmesh_manual.h" />
|
||||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\manual\network\jsb_socketio.h" />
|
||||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\manual\network\jsb_websocket.h" />
|
||||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\manual\network\XMLHTTPRequest.h" />
|
||||
|
@ -64,6 +67,7 @@
|
|||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\auto\jsb_cocos2dx_auto.cpp" />
|
||||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\auto\jsb_cocos2dx_builder_auto.cpp" />
|
||||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\auto\jsb_cocos2dx_extension_auto.cpp" />
|
||||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\auto\jsb_cocos2dx_navmesh_auto.cpp" />
|
||||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\auto\jsb_cocos2dx_physics3d_auto.cpp" />
|
||||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\auto\jsb_cocos2dx_spine_auto.cpp" />
|
||||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\auto\jsb_cocos2dx_studio_auto.cpp" />
|
||||
|
@ -87,6 +91,8 @@
|
|||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\manual\js_manual_conversions.cpp" />
|
||||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\manual\localstorage\js_bindings_system_functions.cpp" />
|
||||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\manual\localstorage\js_bindings_system_registration.cpp" />
|
||||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\manual\navmesh\jsb_cocos2dx_navmesh_conversions.cpp" />
|
||||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\manual\navmesh\jsb_cocos2dx_navmesh_manual.cpp" />
|
||||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\manual\network\jsb_socketio.cpp" />
|
||||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\manual\network\jsb_websocket.cpp" />
|
||||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\manual\network\XMLHTTPRequest.cpp" />
|
||||
|
|
|
@ -128,6 +128,15 @@
|
|||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\manual\physics3d\jsb_cocos2dx_physics3d_manual.h">
|
||||
<Filter>manual\physics3d</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\manual\navmesh\jsb_cocos2dx_navmesh_conversions.h">
|
||||
<Filter>manual\navmesh</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\manual\navmesh\jsb_cocos2dx_navmesh_manual.h">
|
||||
<Filter>manual\navmesh</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\auto\jsb_cocos2dx_navmesh_auto.hpp">
|
||||
<Filter>auto</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\auto\jsb_cocos2dx_3d_auto.cpp">
|
||||
|
@ -235,6 +244,15 @@
|
|||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\manual\physics3d\jsb_cocos2dx_physics3d_manual.cpp">
|
||||
<Filter>manual\physics3d</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\manual\navmesh\jsb_cocos2dx_navmesh_conversions.cpp">
|
||||
<Filter>manual\navmesh</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\manual\navmesh\jsb_cocos2dx_navmesh_manual.cpp">
|
||||
<Filter>manual\navmesh</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\auto\jsb_cocos2dx_navmesh_auto.cpp">
|
||||
<Filter>auto</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Filter Include="auto">
|
||||
|
@ -279,6 +297,9 @@
|
|||
<Filter Include="manual\physics3d">
|
||||
<UniqueIdentifier>{511b128d-2604-48af-88e1-8cc0eba79e19}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="manual\navmesh">
|
||||
<UniqueIdentifier>{39b1e456-740e-4665-a251-5dc38687acf8}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="$(MSBuildThisFileDirectory)..\..\..\auto\api\jsb_cocos2dx_3d_auto_api.js">
|
||||
|
|
|
@ -126,7 +126,7 @@
|
|||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<CompileAsWinRT>true</CompileAsWinRT>
|
||||
<SDLCheck>false</SDLCheck>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos\base;$(EngineRoot)cocos\3d;$(EngineRoot)cocos\physics3d;$(EngineRoot)cocos\2d;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\ui;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support\spine;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\editor-support;$(EngineRoot)extensions;$(EngineRoot)external\spidermonkey\include\winrt_8.1;$(ProjectDir)..\..\..\auto;$(ProjectDir)..\..\..\manual;$(ProjectDir)..\..\..\manual\cocostudio;$(ProjectDir)..\..\..\manual\spine;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos\base;$(EngineRoot)cocos\3d;$(EngineRoot)cocos\navmesh;$(EngineRoot)cocos\physics3d;$(EngineRoot)cocos\2d;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\ui;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support\spine;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\editor-support;$(EngineRoot)extensions;$(EngineRoot)external\spidermonkey\include\winrt_8.1;$(ProjectDir)..\..\..\auto;$(ProjectDir)..\..\..\manual;$(ProjectDir)..\..\..\manual\cocostudio;$(ProjectDir)..\..\..\manual\navmesh;$(ProjectDir)..\..\..\manual\spine;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<DisableSpecificWarnings>4800;4703;4101;4083;4700;4068;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<PreprocessorDefinitions>CC_ENABLE_CHIPMUNK_INTEGRATION=1;CC_ENABLE_BULLET_INTEGRATION=1;_DEBUG;COCOS2D_DEBUG=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
@ -146,7 +146,7 @@
|
|||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<CompileAsWinRT>true</CompileAsWinRT>
|
||||
<SDLCheck>false</SDLCheck>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos\base;$(EngineRoot)cocos\3d;$(EngineRoot)cocos\physics3d;$(EngineRoot)cocos\2d;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\ui;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support\spine;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\editor-support;$(EngineRoot)extensions;$(EngineRoot)external\spidermonkey\include\winrt_8.1;$(ProjectDir)..\..\..\auto;$(ProjectDir)..\..\..\manual;$(ProjectDir)..\..\..\manual\cocostudio;$(ProjectDir)..\..\..\manual\spine;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos\base;$(EngineRoot)cocos\3d;$(EngineRoot)cocos\navmesh;$(EngineRoot)cocos\physics3d;$(EngineRoot)cocos\2d;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\ui;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support\spine;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\editor-support;$(EngineRoot)extensions;$(EngineRoot)external\spidermonkey\include\winrt_8.1;$(ProjectDir)..\..\..\auto;$(ProjectDir)..\..\..\manual;$(ProjectDir)..\..\..\manual\cocostudio;$(ProjectDir)..\..\..\manua\navmesh;$(ProjectDir)..\..\..\manual\spine;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<DisableSpecificWarnings>4800;4703;4101;4083;4700;4068;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<PreprocessorDefinitions>CC_ENABLE_CHIPMUNK_INTEGRATION=1;CC_ENABLE_BULLET_INTEGRATION=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
@ -168,7 +168,7 @@
|
|||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<CompileAsWinRT>true</CompileAsWinRT>
|
||||
<SDLCheck>false</SDLCheck>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos\base;$(EngineRoot)cocos\3d;$(EngineRoot)cocos\physics3d;$(EngineRoot)cocos\2d;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\ui;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support\spine;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\editor-support;$(EngineRoot)extensions;$(EngineRoot)external\spidermonkey\include\winrt_8.1;$(ProjectDir)..\..\..\auto;$(ProjectDir)..\..\..\manual;$(ProjectDir)..\..\..\manual\cocostudio;$(ProjectDir)..\..\..\manual\spine;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos\base;$(EngineRoot)cocos\3d;$(EngineRoot)cocos\navmesh;$(EngineRoot)cocos\physics3d;$(EngineRoot)cocos\2d;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\ui;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support\spine;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\editor-support;$(EngineRoot)extensions;$(EngineRoot)external\spidermonkey\include\winrt_8.1;$(ProjectDir)..\..\..\auto;$(ProjectDir)..\..\..\manual;$(ProjectDir)..\..\..\manual\cocostudio;$(ProjectDir)..\..\..\manual\navmesh;$(ProjectDir)..\..\..\manual\spine;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<DisableSpecificWarnings>4800;4703;4101;4083;4700;4068;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<PreprocessorDefinitions>CC_ENABLE_CHIPMUNK_INTEGRATION=1;CC_ENABLE_BULLET_INTEGRATION=1;_DEBUG;COCOS2D_DEBUG=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
@ -188,7 +188,7 @@
|
|||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<CompileAsWinRT>true</CompileAsWinRT>
|
||||
<SDLCheck>false</SDLCheck>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos\base;$(EngineRoot)cocos\3d;$(EngineRoot)cocos\physics3d;$(EngineRoot)cocos\2d;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\ui;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support\spine;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\editor-support;$(EngineRoot)extensions;$(EngineRoot)external\spidermonkey\include\winrt_8.1;$(ProjectDir)..\..\..\auto;$(ProjectDir)..\..\..\manual;$(ProjectDir)..\..\..\manual\cocostudio;$(ProjectDir)..\..\..\manual\spine;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos\base;$(EngineRoot)cocos\3d;$(EngineRoot)cocos\navmesh;$(EngineRoot)cocos\physics3d;$(EngineRoot)cocos\2d;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\ui;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support\spine;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\editor-support;$(EngineRoot)extensions;$(EngineRoot)external\spidermonkey\include\winrt_8.1;$(ProjectDir)..\..\..\auto;$(ProjectDir)..\..\..\manual;$(ProjectDir)..\..\..\manual\cocostudio;$(ProjectDir)..\..\..\manua\navmesh;$(ProjectDir)..\..\..\manual\spine;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<DisableSpecificWarnings>4800;4703;4101;4083;4700;4068;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<PreprocessorDefinitions>CC_ENABLE_CHIPMUNK_INTEGRATION=1;CC_ENABLE_BULLET_INTEGRATION=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
@ -210,7 +210,7 @@
|
|||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<CompileAsWinRT>true</CompileAsWinRT>
|
||||
<SDLCheck>false</SDLCheck>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos\base;$(EngineRoot)cocos\3d;$(EngineRoot)cocos\physics3d;$(EngineRoot)cocos\2d;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\ui;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support\spine;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\editor-support;$(EngineRoot)extensions;$(EngineRoot)external\spidermonkey\include\winrt_8.1;$(ProjectDir)..\..\..\auto;$(ProjectDir)..\..\..\manual;$(ProjectDir)..\..\..\manual\cocostudio;$(ProjectDir)..\..\..\manual\spine;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos\base;$(EngineRoot)cocos\3d;$(EngineRoot)cocos\navmesh;$(EngineRoot)cocos\physics3d;$(EngineRoot)cocos\2d;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\ui;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support\spine;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\editor-support;$(EngineRoot)extensions;$(EngineRoot)external\spidermonkey\include\winrt_8.1;$(ProjectDir)..\..\..\auto;$(ProjectDir)..\..\..\manual;$(ProjectDir)..\..\..\manual\cocostudio;$(ProjectDir)..\..\..\manual\navmesh;$(ProjectDir)..\..\..\manual\spine;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<DisableSpecificWarnings>4800;4703;4101;4083;4700;4068;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<PreprocessorDefinitions>CC_ENABLE_CHIPMUNK_INTEGRATION=1;CC_ENABLE_BULLET_INTEGRATION=1;_DEBUG;COCOS2D_DEBUG=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
@ -230,7 +230,7 @@
|
|||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<CompileAsWinRT>true</CompileAsWinRT>
|
||||
<SDLCheck>false</SDLCheck>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos\base;$(EngineRoot)cocos\3d;$(EngineRoot)cocos\physics3d;$(EngineRoot)cocos\2d;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\ui;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support\spine;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\editor-support;$(EngineRoot)extensions;$(EngineRoot)external\spidermonkey\include\winrt_8.1;$(ProjectDir)..\..\..\auto;$(ProjectDir)..\..\..\manual;$(ProjectDir)..\..\..\manual\cocostudio;$(ProjectDir)..\..\..\manual\spine;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos\base;$(EngineRoot)cocos\3d;$(EngineRoot)cocos\navmesh;$(EngineRoot)cocos\physics3d;$(EngineRoot)cocos\2d;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\ui;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support\spine;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\editor-support;$(EngineRoot)extensions;$(EngineRoot)external\spidermonkey\include\winrt_8.1;$(ProjectDir)..\..\..\auto;$(ProjectDir)..\..\..\manual;$(ProjectDir)..\..\..\manual\cocostudio;$(ProjectDir)..\..\..\manua\navmesh;$(ProjectDir)..\..\..\manual\spine;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<DisableSpecificWarnings>4800;4703;4101;4083;4700;4068;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<PreprocessorDefinitions>CC_ENABLE_CHIPMUNK_INTEGRATION=1;CC_ENABLE_BULLET_INTEGRATION=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
|
|
@ -91,7 +91,7 @@
|
|||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<CompileAsWinRT>true</CompileAsWinRT>
|
||||
<SDLCheck>false</SDLCheck>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos\base;$(EngineRoot)cocos\3d;$(EngineRoot)cocos\physics3d;$(EngineRoot)cocos\2d;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\ui;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support\spine;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\editor-support;$(EngineRoot)extensions;$(EngineRoot)external\spidermonkey\include\winrt_8.1;$(ProjectDir)..\..\..\auto;$(ProjectDir)..\..\..\manual;$(ProjectDir)..\..\..\manual\cocostudio;$(ProjectDir)..\..\..\manual\spine;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos\base;$(EngineRoot)cocos\3d;$(EngineRoot)cocos\navmesh;$(EngineRoot)cocos\physics3d;$(EngineRoot)cocos\2d;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\ui;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support\spine;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\editor-support;$(EngineRoot)extensions;$(EngineRoot)external\spidermonkey\include\winrt_8.1;$(ProjectDir)..\..\..\auto;$(ProjectDir)..\..\..\manual;$(ProjectDir)..\..\..\manual\cocostudio;$(ProjectDir)..\..\..\manual\spine;$(ProjectDir)..\..\..\manual\navmesh;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<DisableSpecificWarnings>4800;4703;4101;4083;4700;4068;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<PreprocessorDefinitions>CC_ENABLE_CHIPMUNK_INTEGRATION=1;CC_ENABLE_BULLET_INTEGRATION=1;_DEBUG;COCOS2D_DEBUG=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
@ -111,7 +111,7 @@
|
|||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<CompileAsWinRT>true</CompileAsWinRT>
|
||||
<SDLCheck>false</SDLCheck>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos\base;$(EngineRoot)cocos\3d;$(EngineRoot)cocos\physics3d;$(EngineRoot)cocos\2d;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\ui;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support\spine;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\editor-support;$(EngineRoot)extensions;$(EngineRoot)external\spidermonkey\include\winrt_8.1;$(ProjectDir)..\..\..\auto;$(ProjectDir)..\..\..\manual;$(ProjectDir)..\..\..\manual\cocostudio;$(ProjectDir)..\..\..\manual\spine;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos\base;$(EngineRoot)cocos\3d;$(EngineRoot)cocos\navmesh;$(EngineRoot)cocos\physics3d;$(EngineRoot)cocos\2d;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\ui;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support\spine;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\editor-support;$(EngineRoot)extensions;$(EngineRoot)external\spidermonkey\include\winrt_8.1;$(ProjectDir)..\..\..\auto;$(ProjectDir)..\..\..\manual;$(ProjectDir)..\..\..\manual\cocostudio;$(ProjectDir)..\..\..\manual\navmesh;$(ProjectDir)..\..\..\manual\spine;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<DisableSpecificWarnings>4800;4703;4101;4083;4700;4068;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<PreprocessorDefinitions>CC_ENABLE_CHIPMUNK_INTEGRATION=1;CC_ENABLE_BULLET_INTEGRATION=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
@ -133,7 +133,7 @@
|
|||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<CompileAsWinRT>true</CompileAsWinRT>
|
||||
<SDLCheck>false</SDLCheck>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos\base;$(EngineRoot)cocos\3d;$(EngineRoot)cocos\physics3d;$(EngineRoot)cocos\2d;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\ui;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support\spine;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\editor-support;$(EngineRoot)extensions;$(EngineRoot)external\spidermonkey\include\winrt_8.1;$(ProjectDir)..\..\..\auto;$(ProjectDir)..\..\..\manual;$(ProjectDir)..\..\..\manual\cocostudio;$(ProjectDir)..\..\..\manual\spine;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos\base;$(EngineRoot)cocos\3d;$(EngineRoot)cocos\navmesh;$(EngineRoot)cocos\physics3d;$(EngineRoot)cocos\2d;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\ui;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support\spine;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\editor-support;$(EngineRoot)extensions;$(EngineRoot)external\spidermonkey\include\winrt_8.1;$(ProjectDir)..\..\..\auto;$(ProjectDir)..\..\..\manual;$(ProjectDir)..\..\..\manual\cocostudio;$(ProjectDir)..\..\..\manual\spine;$(ProjectDir)..\..\..\manual\navmesh;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<DisableSpecificWarnings>4800;4703;4101;4083;4700;4068;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<PreprocessorDefinitions>CC_ENABLE_CHIPMUNK_INTEGRATION=1;CC_ENABLE_BULLET_INTEGRATION=1;_DEBUG;COCOS2D_DEBUG=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
@ -153,7 +153,7 @@
|
|||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<CompileAsWinRT>true</CompileAsWinRT>
|
||||
<SDLCheck>false</SDLCheck>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos\base;$(EngineRoot)cocos\3d;$(EngineRoot)cocos\physics3d;$(EngineRoot)cocos\2d;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\ui;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support\spine;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\editor-support;$(EngineRoot)extensions;$(EngineRoot)external\spidermonkey\include\winrt_8.1;$(ProjectDir)..\..\..\auto;$(ProjectDir)..\..\..\manual;$(ProjectDir)..\..\..\manual\cocostudio;$(ProjectDir)..\..\..\manual\spine;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos\base;$(EngineRoot)cocos\3d;$(EngineRoot)cocos\navmesh;$(EngineRoot)cocos\physics3d;$(EngineRoot)cocos\2d;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\ui;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support\spine;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\editor-support;$(EngineRoot)extensions;$(EngineRoot)external\spidermonkey\include\winrt_8.1;$(ProjectDir)..\..\..\auto;$(ProjectDir)..\..\..\manual;$(ProjectDir)..\..\..\manual\cocostudio;$(ProjectDir)..\..\..\manual\navmesh;$(ProjectDir)..\..\..\manual\spine;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<DisableSpecificWarnings>4800;4703;4101;4083;4700;4068;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<PreprocessorDefinitions>CC_ENABLE_CHIPMUNK_INTEGRATION=1;CC_ENABLE_BULLET_INTEGRATION=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
|
|
@ -140,3 +140,6 @@ if (jsb.ParticleSystem3D) {
|
|||
|
||||
if (jsb.Physics3DObject)
|
||||
require("script/physics3d/jsb_physics3d.js");
|
||||
|
||||
if(jsb.NavMeshAgent)
|
||||
require("script/navmesh/jsb_navmesh.js");
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
|
||||
jsb.NavMesh.UpdateFlags =
|
||||
{
|
||||
DT_CROWD_ANTICIPATE_TURNS:1,
|
||||
DT_CROWD_OBSTACLE_AVOIDANCE:2,
|
||||
DT_CROWD_SEPARATION:4,
|
||||
DT_CROWD_OPTIMIZE_VIS:8, ///< Use #dtPathCorridor::optimizePathVisibility() to optimize the agent path.
|
||||
DT_CROWD_OPTIMIZE_TOPO:16, ///< Use dtPathCorridor::optimizePathTopology() to optimize the agent path.
|
||||
};
|
||||
|
||||
|
||||
jsb.NavMeshAgentParam = function(){
|
||||
this.radius = 0.6;
|
||||
this.height = 2;
|
||||
this.maxAcceleration = 8;
|
||||
this.maxSpeed = 3.5;
|
||||
this.collisionQueryRange = this.radius * 12;
|
||||
this.pathOptimizationRange = this.radius * 30;
|
||||
this.updateFlags = jsb.NavMesh.UpdateFlags.DT_CROWD_ANTICIPATE_TURNS |
|
||||
jsb.NavMesh.UpdateFlags.DT_CROWD_OPTIMIZE_VIS |
|
||||
jsb.NavMesh.UpdateFlags.DT_CROWD_OPTIMIZE_TOPO |
|
||||
jsb.NavMesh.UpdateFlags.DT_CROWD_OBSTACLE_AVOIDANCE;
|
||||
this.obstacleAvoidanceType = 3;
|
||||
this.separationWeight = 2;
|
||||
this.queryFilterType = 0;
|
||||
}
|
||||
|
||||
jsb.navMeshAgentParam = function(){
|
||||
return new jsb.NavMeshAgentParam();
|
||||
};
|
||||
|
||||
jsb.AgentUserData = function(){
|
||||
this.time = 0;
|
||||
};
|
||||
|
||||
jsb.agentUserData = function(){
|
||||
return new jsb.AgentUserData();
|
||||
};
|
||||
|
||||
jsb.NavMeshAgent.prototype.setUserData = cc.Node.prototype.setUserData;
|
||||
jsb.NavMeshAgent.prototype.getUserData = cc.Node.prototype.getUserData;
|
|
@ -23,6 +23,8 @@
|
|||
#include "network/jsb_socketio.h"
|
||||
#include "jsb_cocos2dx_physics3d_auto.hpp"
|
||||
#include "physics3d/jsb_cocos2dx_physics3d_manual.h"
|
||||
#include "jsb_cocos2dx_navmesh_auto.hpp"
|
||||
#include "navmesh/jsb_cocos2dx_navmesh_manual.h"
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
||||
#include "platform/android/CCJavascriptJavaBridge.h"
|
||||
|
@ -115,7 +117,12 @@ bool AppDelegate::applicationDidFinishLaunching()
|
|||
sc->addRegisterCallback(register_all_cocos2dx_physics3d);
|
||||
sc->addRegisterCallback(register_all_cocos2dx_physics3d_manual);
|
||||
#endif
|
||||
|
||||
|
||||
#if CC_USE_NAVMESH
|
||||
sc->addRegisterCallback(register_all_cocos2dx_navmesh);
|
||||
sc->addRegisterCallback(register_all_cocos2dx_navmesh_manual);
|
||||
#endif
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
||||
sc->addRegisterCallback(JavascriptJavaBridge::_js_register);
|
||||
#elif (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
||||
|
|
|
@ -190,6 +190,7 @@
|
|||
"src/SpritePolygonTest/SpritePolygonTest.js",
|
||||
"src/MaterialSystemTest/MaterialSystemTest.js",
|
||||
"src/TerrainTest/TerrainTest.js",
|
||||
"src/Physics3DTest/Physics3DTest.js"
|
||||
"src/Physics3DTest/Physics3DTest.js",
|
||||
"src/NavMeshTest/NavMeshTest.js"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
#include "jsb_cocos2dx_3d_extension_auto.hpp"
|
||||
#include "jsb_cocos2dx_physics3d_auto.hpp"
|
||||
#include "physics3d/jsb_cocos2dx_physics3d_manual.h"
|
||||
#include "jsb_cocos2dx_navmesh_auto.hpp"
|
||||
#include "navmesh/jsb_cocos2dx_navmesh_manual.h"
|
||||
#include "3d/jsb_cocos2dx_3d_manual.h"
|
||||
#include "extension/jsb_cocos2dx_extension_manual.h"
|
||||
#include "cocostudio/jsb_cocos2dx_studio_manual.h"
|
||||
|
@ -120,6 +122,11 @@ bool AppDelegate::applicationDidFinishLaunching()
|
|||
sc->addRegisterCallback(register_all_cocos2dx_physics3d_manual);
|
||||
#endif
|
||||
|
||||
#if CC_USE_NAVMESH
|
||||
sc->addRegisterCallback(register_all_cocos2dx_navmesh);
|
||||
sc->addRegisterCallback(register_all_cocos2dx_navmesh_manual);
|
||||
#endif
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
||||
sc->addRegisterCallback(JavascriptJavaBridge::_js_register);
|
||||
#elif (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
||||
|
|
|
@ -0,0 +1,399 @@
|
|||
var NavMeshTestIdx = -1;
|
||||
|
||||
var physicsScene = null;
|
||||
var START_POS_X = -0.5;
|
||||
var START_POS_Y = -2.5;
|
||||
var START_POS_Z = -0.5;
|
||||
|
||||
var ARRAY_SIZE_X = 4;
|
||||
var ARRAY_SIZE_Y = 3;
|
||||
var ARRAY_SIZE_Z = 4;
|
||||
|
||||
var NavMeshTestScene = cc.Scene.extend({
|
||||
|
||||
ctor:function () {
|
||||
this._super();
|
||||
|
||||
var label = new cc.LabelTTF("Main Menu", "Arial", 20);
|
||||
var menuItem = new cc.MenuItemLabel(label, this.onMainMenuCallback, this);
|
||||
|
||||
var menu = new cc.Menu(menuItem);
|
||||
menu.x = 0;
|
||||
menu.y = 0;
|
||||
menuItem.x = winSize.width - 50;
|
||||
menuItem.y = 25;
|
||||
this.addChild(menu);
|
||||
|
||||
this.initWithPhysics();
|
||||
this.getPhysics3DWorld().setDebugDrawEnable(false);
|
||||
physicsScene = this;
|
||||
},
|
||||
onMainMenuCallback:function () {
|
||||
var scene = new cc.Scene();
|
||||
var layer = new TestController();
|
||||
scene.addChild(layer);
|
||||
director.runScene(scene);
|
||||
},
|
||||
runThisTest:function (num) {
|
||||
director.runScene(this);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
var NavMeshBaseTestDemo = NavMeshTestScene.extend({
|
||||
_title:"NavMesh Test",
|
||||
_camera:null,
|
||||
_needMoveAgents:null,
|
||||
_agents:[],
|
||||
_angle:null,
|
||||
ctor:function () {
|
||||
this._super();
|
||||
|
||||
this._agents = [];
|
||||
this._angle = 0.0;
|
||||
|
||||
var size = cc.winSize;
|
||||
this._camera = cc.Camera.createPerspective(30.0, size.width / size.height, 1.0, 1000.0);
|
||||
this._camera.setPosition3D(cc.math.vec3(0, 50, 100));
|
||||
this._camera.lookAt(cc.math.vec3(0, 0, 0), cc.math.vec3(0, 1, 0));
|
||||
this._camera.setCameraFlag(cc.CameraFlag.USER1);
|
||||
this.addChild(this._camera);
|
||||
|
||||
cc.eventManager.addListener({
|
||||
event:cc.EventListener.TOUCH_ALL_AT_ONCE,
|
||||
onTouchesBegan:this.onTouchesBegan.bind(this),
|
||||
onTouchesMoved:this.onTouchesMoved.bind(this),
|
||||
onTouchesEnded:this.onTouchesEnded.bind(this)
|
||||
}, this);
|
||||
|
||||
this.initScene();
|
||||
this.scheduleUpdate();
|
||||
},
|
||||
|
||||
initScene:function () {
|
||||
//create mesh
|
||||
var trianglesList = jsb.Bundle3D.getTrianglesList("NavMesh/scene.obj");
|
||||
var rbDes = jsb.physics3DRigidBodyDes();
|
||||
rbDes.mass = 0;
|
||||
rbDes.shape = jsb.Physics3DShape.createMesh(trianglesList, trianglesList.length/3);
|
||||
var rigidBody = jsb.Physics3DRigidBody.create(rbDes);
|
||||
var component = jsb.Physics3DComponent.create(rigidBody);
|
||||
var sprite = jsb.Sprite3D.create("NavMesh/scene.obj");
|
||||
sprite.addComponent(component);
|
||||
sprite.setCameraMask(cc.CameraFlag.USER1);
|
||||
this.addChild(sprite);
|
||||
|
||||
physicsScene.setPhysics3DDebugCamera(this._camera);
|
||||
|
||||
var navMesh = jsb.NavMesh.create("NavMesh/all_tiles_tilecache.bin", "NavMesh/geomset.txt");
|
||||
navMesh.setDebugDrawEnable(true);
|
||||
physicsScene.setNavMesh(navMesh);
|
||||
physicsScene.setNavMeshDebugCamera(this._camera);
|
||||
|
||||
var ambientLight = jsb.AmbientLight.create(cc.color(64, 64, 64));
|
||||
ambientLight.setCameraMask(cc.CameraFlag.USER1);
|
||||
this.addChild(ambientLight);
|
||||
|
||||
var dirLight = jsb.DirectionLight.create(cc.math.vec3(1.2, -1.1, 0.5), cc.color(255, 255, 255));
|
||||
dirLight.setCameraMask(cc.CameraFlag.USER1);
|
||||
this.addChild(dirLight);
|
||||
},
|
||||
|
||||
onTouchesBegan:function(touches, event){
|
||||
this._needMoveAgents = true;
|
||||
return true;
|
||||
},
|
||||
|
||||
onTouchesMoved:function(touches, event){
|
||||
if(touches.length > 0 && this._camera){
|
||||
var touch = touches[0];
|
||||
var delta = touch.getDelta();
|
||||
|
||||
this._angle -= cc.degreesToRadians(delta.x);
|
||||
this._camera.setPosition3D(cc.math.vec3(100*Math.sin(this._angle), 50, 100*Math.cos(this._angle)));
|
||||
this._camera.lookAt(cc.math.vec3(0, 0, 0), cc.math.vec3(0, 1, 0));
|
||||
|
||||
if(delta.x * delta.x + delta.y + delta.y > 16)
|
||||
this._needMoveAgents = false;
|
||||
}
|
||||
},
|
||||
|
||||
onTouchesEnded:function(touches, event){
|
||||
if(!this._needMoveAgents)
|
||||
return;
|
||||
if(touches.length > 0){
|
||||
var location = touches[0].getLocationInView();
|
||||
|
||||
var nearP = cc.math.vec3(location.x, location.y, -1);
|
||||
var farP = cc.math.vec3(location.x, location.y, 1);
|
||||
nearP = this._camera.unproject(nearP);
|
||||
farP = this._camera.unproject(farP);
|
||||
cc.log("ray cast before");
|
||||
var result = physicsScene.getPhysics3DWorld().rayCast(nearP, farP);
|
||||
cc.log("ray cast after");
|
||||
this.moveAgents(result.hitPosition);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
createAgent:function(pos){
|
||||
var filePath = "Sprite3DTest/girl.c3b";
|
||||
var param = jsb.navMeshAgentParam();
|
||||
param.radius = 2.0;
|
||||
param.height = 8.0;
|
||||
param.maxSpeed = 8.0;
|
||||
var agent = jsb.NavMeshAgent.create(param);
|
||||
var agentNode = jsb.Sprite3D.create(filePath);
|
||||
agent.setOrientationRefAxes(cc.math.vec3(-1.0, 0.0, 1.0));
|
||||
|
||||
var data = jsb.agentUserData();
|
||||
agent.setUserData(data);
|
||||
agentNode.setScale(0.05);
|
||||
agentNode.addComponent(agent);
|
||||
|
||||
var node = new cc.Node();
|
||||
node.addChild(agentNode);
|
||||
node.setPosition3D(pos);
|
||||
node.setCameraMask(cc.CameraFlag.USER1);
|
||||
physicsScene.addChild(node);
|
||||
|
||||
var animation = jsb.Animation3D.create(filePath);
|
||||
var animate = jsb.Animate3D.create(animation);
|
||||
|
||||
if (animate){
|
||||
agentNode.runAction(new cc.RepeatForever(animate));
|
||||
animate.setSpeed(0);
|
||||
}
|
||||
|
||||
this._agents[this._agents.length] = {"agent":agent, "animate":animate};
|
||||
},
|
||||
createObstacle:function(pos){
|
||||
var obstacle = jsb.NavMeshObstacle.create(2.0, 8.0);
|
||||
var obstacleNode = jsb.Sprite3D.create("Sprite3DTest/cylinder.c3b");
|
||||
obstacleNode.setPosition3D(cc.math.vec3(pos.x + 0.0, pos.y - 0.5, pos.z + 0.0));
|
||||
obstacleNode.setRotation3D(cc.math.vec3(-90.0, 0.0, 0.0));
|
||||
obstacleNode.setScale(0.3);
|
||||
obstacleNode.addComponent(obstacle);
|
||||
obstacleNode.setCameraMask(cc.CameraFlag.USER1);
|
||||
this.addChild(obstacleNode);
|
||||
},
|
||||
|
||||
jump:function(pV1, pV2, height, t){
|
||||
var pOut = cc.math.vec3();
|
||||
pOut.x = pV1.x + t * (pV2.x - pV1.x);
|
||||
pOut.y = pV1.y + t * (pV2.y - pV1.y);
|
||||
pOut.z = pV1.z + t * (pV2.z - pV1.z);
|
||||
pOut.y += height * Math.sin(Math.PI * t);
|
||||
return pOut;
|
||||
},
|
||||
moveAgents:function(des){
|
||||
var self = this;
|
||||
for (var index = 0; index < this._agents.length; index++){
|
||||
var callback = function(agent, totalTimeAfterMove){
|
||||
var data = agent.getUserData();
|
||||
if (agent.isOnOffMeshLink()){
|
||||
agent.setAutoTraverseOffMeshLink(false);
|
||||
agent.setAutoOrientation(false);
|
||||
var linkdata = agent.getCurrentOffMeshLinkData();
|
||||
|
||||
agent.getOwner().setPosition3D(self.jump(linkdata.startPosition, linkdata.endPosition, 10.0, data.time));
|
||||
var dir = cc.math.vec3(linkdata.endPosition.x - linkdata.startPosition.x,
|
||||
linkdata.endPosition.y - linkdata.startPosition.y, linkdata.endPosition.z - linkdata.startPosition.z);
|
||||
dir.y = 0.0;
|
||||
dir.normalize();
|
||||
var axes;
|
||||
var refAxes = cc.math.vec3(-1.0, 0.0, 1.0);
|
||||
refAxes.normalize();
|
||||
axes = cc.math.vec3Cross(refAxes, dir);
|
||||
var angle = cc.math.vec3Dot(refAxes, dir);
|
||||
agent.getOwner().setRotationQuat(cc.math.quaternion(axes, Math.acos(angle)));
|
||||
data.time += 0.01;
|
||||
if (1.0 < data.time){
|
||||
agent.completeOffMeshLink();
|
||||
agent.setAutoOrientation(true);
|
||||
data.time = 0.0;
|
||||
}
|
||||
}
|
||||
};
|
||||
this._agents[index]["agent"].move(des, callback);
|
||||
}
|
||||
},
|
||||
update:function(dt) {
|
||||
this._super(dt);
|
||||
if (!this._agents)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
for (var index = 0; index < this._agents.length; index++){
|
||||
var speed = cc.math.vec3Length( this._agents[index]["agent"].getCurrentVelocity() ) * 0.2
|
||||
this._agents[index]["animate"].setSpeed(0.0 < speed ? speed : 0.0)
|
||||
}
|
||||
|
||||
},
|
||||
//
|
||||
// Menu
|
||||
//
|
||||
onEnter:function () {
|
||||
this._super();
|
||||
|
||||
var label = new cc.LabelTTF(this._title, "Arial", 28);
|
||||
this.addChild(label, 100, BASE_TEST_TITLE_TAG);
|
||||
label.x = winSize.width / 2;
|
||||
label.y = winSize.height - 50;
|
||||
|
||||
var label2 = new cc.LabelTTF(this._subtitle, "Thonburi", 16);
|
||||
this.addChild(label2, 101, BASE_TEST_SUBTITLE_TAG);
|
||||
label2.x = winSize.width / 2;
|
||||
label2.y = winSize.height - 80;
|
||||
|
||||
var item1 = new cc.MenuItemImage(s_pathB1, s_pathB2, this.onBackCallback, this);
|
||||
var item2 = new cc.MenuItemImage(s_pathR1, s_pathR2, this.onRestartCallback, this);
|
||||
var item3 = new cc.MenuItemImage(s_pathF1, s_pathF2, this.onNextCallback, this);
|
||||
|
||||
item1.tag = BASE_TEST_MENUITEM_PREV_TAG;
|
||||
item2.tag = BASE_TEST_MENUITEM_RESET_TAG;
|
||||
item3.tag = BASE_TEST_MENUITEM_NEXT_TAG;
|
||||
|
||||
var menu = new cc.Menu(item1, item2, item3);
|
||||
|
||||
menu.x = 0;
|
||||
menu.y = 0;
|
||||
var width = item2.width, height = item2.height;
|
||||
item1.x = winSize.width/2 - width*2;
|
||||
item1.y = height/2 ;
|
||||
item2.x = winSize.width/2;
|
||||
item2.y = height/2 ;
|
||||
item3.x = winSize.width/2 + width*2;
|
||||
item3.y = height/2 ;
|
||||
|
||||
this.addChild(menu, 102, BASE_TEST_MENU_TAG);
|
||||
},
|
||||
|
||||
onRestartCallback:function (sender) {
|
||||
director.runScene(restartNavMeshTest());
|
||||
},
|
||||
|
||||
onNextCallback:function (sender) {
|
||||
director.runScene(nextNavMeshTest());
|
||||
},
|
||||
|
||||
onBackCallback:function (sender) {
|
||||
director.runScene(previousNavMeshTest());
|
||||
}
|
||||
});
|
||||
|
||||
var NavMeshBasicTestDemo = NavMeshBaseTestDemo.extend({
|
||||
_title:"Navigation Mesh Test",
|
||||
_subtitle:"Basic Test",
|
||||
ctor:function () {
|
||||
this._super();
|
||||
|
||||
var label = new cc.LabelTTF("DebugDraw OFF");
|
||||
var menuItem = new cc.MenuItemLabel(label, function(){
|
||||
var enabledDebug = physicsScene.getNavMesh().isDebugDrawEnabled();
|
||||
physicsScene.getNavMesh().setDebugDrawEnable(!enabledDebug);
|
||||
if (enabledDebug){
|
||||
label.setString("Debug Draw ON");
|
||||
}
|
||||
else{
|
||||
label.setString("Debug Draw OFF");
|
||||
}
|
||||
}, this);
|
||||
|
||||
var menu = new cc.Menu(menuItem);
|
||||
menu.setPosition(cc.p(0, 0));
|
||||
menuItem.setAnchorPoint(cc.p(0, 1));
|
||||
menuItem.setPosition(cc.p(cc.visibleRect.left.x, cc.visibleRect.top.y - 50));
|
||||
this.addChild(menu);
|
||||
|
||||
|
||||
},
|
||||
onEnter:function () {
|
||||
this._super();
|
||||
|
||||
var result = physicsScene.getPhysics3DWorld().rayCast(cc.math.vec3(0, 50, 0), cc.math.vec3(0, -50, 0));
|
||||
this.createAgent(result.hitPosition);
|
||||
}
|
||||
});
|
||||
|
||||
var NavMeshAdvanceTestDemo = NavMeshBaseTestDemo.extend({
|
||||
_title:"Navigation Mesh Test",
|
||||
_subtitle:"Advance Test",
|
||||
ctor:function () {
|
||||
this._super();
|
||||
|
||||
var label = new cc.LabelTTF();
|
||||
var label2 = new cc.LabelTTF();
|
||||
var label3 = new cc.LabelTTF();
|
||||
var self = this;
|
||||
var menuItem = new cc.MenuItemLabel(new cc.LabelTTF("Create Obstacle"), function(){
|
||||
var x = Math.random() * 100 - 50;
|
||||
var z = Math.random() * 100 - 50;
|
||||
var result = physicsScene.getPhysics3DWorld().rayCast(cc.math.vec3(x, 50, z), cc.math.vec3(x, -50, z));
|
||||
self.createObstacle(result.hitPosition);
|
||||
}, this);
|
||||
var menuItem2 = new cc.MenuItemLabel(new cc.LabelTTF("Create Agent"), function(){
|
||||
var x = Math.random() * 100 - 50;
|
||||
var z = Math.random() * 100 - 50;
|
||||
var result = physicsScene.getPhysics3DWorld().rayCast(cc.math.vec3(x, 50, z), cc.math.vec3(x, -50, z));
|
||||
self.createAgent(result.hitPosition);
|
||||
}, this);
|
||||
|
||||
var label = new cc.LabelTTF("DebugDraw OFF");
|
||||
var menuItem3 = new cc.MenuItemLabel(label, function(){
|
||||
var enabledDebug = physicsScene.getNavMesh().isDebugDrawEnabled();
|
||||
physicsScene.getNavMesh().setDebugDrawEnable(!enabledDebug);
|
||||
if (enabledDebug){
|
||||
label.setString("Debug Draw ON");
|
||||
}
|
||||
else{
|
||||
label.setString("Debug Draw OFF");
|
||||
}
|
||||
}, this);
|
||||
|
||||
var menu = new cc.Menu(menuItem, menuItem2, menuItem3);
|
||||
menu.setPosition(cc.p(0, 0));
|
||||
menuItem.setAnchorPoint(cc.p(0, 1));
|
||||
menuItem.setPosition(cc.p(cc.visibleRect.left.x, cc.visibleRect.top.y - 50));
|
||||
menuItem2.setAnchorPoint(cc.p(0, 1));
|
||||
menuItem2.setPosition(cc.p(cc.visibleRect.left.x, cc.visibleRect.top.y - 100));
|
||||
menuItem3.setAnchorPoint(cc.p(0, 1));
|
||||
menuItem3.setPosition(cc.p(cc.visibleRect.left.x, cc.visibleRect.top.y - 150));
|
||||
this.addChild(menu);
|
||||
|
||||
},
|
||||
onEnter:function () {
|
||||
this._super();
|
||||
|
||||
var result = physicsScene.getPhysics3DWorld().rayCast(cc.math.vec3(0, 50, 0), cc.math.vec3(0, -50, 0));
|
||||
this.createAgent(result.hitPosition);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
//
|
||||
// Flow control
|
||||
//
|
||||
var arrayOfNavMeshTest = [
|
||||
NavMeshBasicTestDemo,
|
||||
NavMeshAdvanceTestDemo
|
||||
];
|
||||
|
||||
var nextNavMeshTest = function () {
|
||||
NavMeshTestIdx++;
|
||||
NavMeshTestIdx = NavMeshTestIdx % arrayOfNavMeshTest.length;
|
||||
|
||||
return new arrayOfNavMeshTest[NavMeshTestIdx ]();
|
||||
};
|
||||
var previousNavMeshTest = function () {
|
||||
NavMeshTestIdx--;
|
||||
if (NavMeshTestIdx < 0)
|
||||
NavMeshTestIdx += arrayOfNavMeshTest.length;
|
||||
|
||||
return new arrayOfNavMeshTest[NavMeshTestIdx ]();
|
||||
};
|
||||
var restartNavMeshTest = function () {
|
||||
return new arrayOfNavMeshTest[NavMeshTestIdx ]();
|
||||
};
|
|
@ -432,7 +432,7 @@ var Physics3DConstraintDemo = Physics3DTestDemo.extend({
|
|||
farP = this._camera.unproject(size, farP);
|
||||
|
||||
var result = this._world.rayCast(nearP, farP);
|
||||
if(result !== false && result.hitObj.getObjType() == jsb.Physics3DObject.PhysicsObjType.RIGID_BODY)
|
||||
if(result.hitObj !== undefined && result.hitObj.getObjType() == cc.Physics3DObject.PhysicsObjType.RIGID_BODY)
|
||||
{
|
||||
var mat = cc.math.mat4GetInversed(result.hitObj.getWorldTransform());
|
||||
var position = cc.math.mat4TransformPoint(mat, result.hitPosition);
|
||||
|
|
|
@ -538,6 +538,14 @@ var testNames = [
|
|||
return new Physics3DTestScene();
|
||||
}
|
||||
},
|
||||
{
|
||||
title:"NavMesh Test",
|
||||
platforms: PLATFORM_JSB,
|
||||
linksrc:"src/NavMeshTest/NavMeshTest.js",
|
||||
testScene:function () {
|
||||
return new nextNavMeshTest();
|
||||
}
|
||||
},
|
||||
{
|
||||
title:"ProgressActions Test",
|
||||
platforms: PLATFORM_ALL,
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 301f566839fa6505d225dfc376bc3fab4673204f
|
||||
Subproject commit 618fce7b257aa5d3c68c5671a9368a4685a6b823
|
|
@ -0,0 +1,68 @@
|
|||
[cocos2dx_navmesh]
|
||||
# the prefix to be added to the generated functions. You might or might not use this in your own
|
||||
# templates
|
||||
prefix = cocos2dx_navmesh
|
||||
|
||||
# create a target namespace (in javascript, this would create some code like the equiv. to `ns = ns || {}`)
|
||||
# all classes will be embedded in that namespace
|
||||
target_namespace = jsb
|
||||
|
||||
macro_judgement = #if CC_USE_NAVMESH
|
||||
|
||||
android_headers = -I%(androidndkdir)s/platforms/android-14/arch-arm/usr/include -I%(androidndkdir)s/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi-v7a/include -I%(androidndkdir)s/sources/cxx-stl/gnu-libstdc++/4.7/include -I%(androidndkdir)s/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a/include -I%(androidndkdir)s/sources/cxx-stl/gnu-libstdc++/4.8/include
|
||||
android_flags = -D_SIZE_T_DEFINED_
|
||||
|
||||
clang_headers = -I%(clangllvmdir)s/lib/clang/3.3/include
|
||||
clang_flags = -nostdinc -x c++ -std=c++11 -D CC_USE_NAVMESH
|
||||
|
||||
win32_clang_flags = -U __SSE__
|
||||
|
||||
cocos_headers = -I%(cocosdir)s/cocos -I%(cocosdir)s/cocos/platform/android -I%(cocosdir)s/external -I%(cocosdir)s/external/recast/Detour -I%(cocosdir)s/external/recast/DetourCrowd -I%(cocosdir)s/external/recast/DetourTileCache -I%(cocosdir)s/external/recast/DebugUtils -I%(cocosdir)s/external/recast/fastlz -I%(cocosdir)s/external/recast/Recast -I%(cocosdir)s/cocos/scripting/js-bindings/manual -I%(cocosdir)s/external/spidermonkey/include/android
|
||||
|
||||
cocos_flags = -DANDROID
|
||||
|
||||
cxxgenerator_headers =
|
||||
|
||||
# extra arguments for clang
|
||||
extra_arguments = %(android_headers)s %(clang_headers)s %(cxxgenerator_headers)s %(cocos_headers)s %(android_flags)s %(clang_flags)s %(cocos_flags)s %(extra_flags)s
|
||||
|
||||
# what headers to parse
|
||||
headers = %(cocosdir)s/cocos/navmesh/CCNavMesh.h
|
||||
|
||||
cpp_headers = navmesh/jsb_cocos2dx_navmesh_conversions.h
|
||||
|
||||
# what classes to produce code for. You can use regular expressions here. When testing the regular
|
||||
# expression, it will be enclosed in "^$", like this: "^Menu*$".
|
||||
classes = NavMesh NavMeshAgent NavMeshObstacle
|
||||
|
||||
# what should we skip? in the format ClassName::[function function]
|
||||
# ClassName is a regular expression, but will be used like this: "^ClassName$" functions are also
|
||||
# regular expressions, they will not be surrounded by "^$". If you want to skip a whole class, just
|
||||
# add a single "*" as functions. See bellow for several examples. A special class name is "*", which
|
||||
# will apply to all class names. This is a convenience wildcard to be able to skip similar named
|
||||
# functions from all classes.
|
||||
|
||||
skip = NavMesh::[findPath],
|
||||
NavMeshObstacle::[setRadius setHeight],
|
||||
NavMeshAgent::[move (g|s)etUserData]
|
||||
|
||||
rename_functions =
|
||||
|
||||
rename_classes =
|
||||
|
||||
# for all class names, should we remove something when registering in the target VM?
|
||||
remove_prefix =
|
||||
|
||||
# classes for which there will be no "parent" lookup
|
||||
classes_have_no_parents = NavMesh
|
||||
|
||||
# base classes which will be skipped when their sub-classes found them.
|
||||
base_classes_to_skip =
|
||||
|
||||
# classes that create no constructor
|
||||
# Set is special and we will use a hand-written constructor
|
||||
abstract_classes =
|
||||
|
||||
# Determining whether to use script object(js object) to control the lifecycle of native(cpp) object or the other way around. Supported values are 'yes' or 'no'.
|
||||
script_control_cpp = no
|
||||
|
|
@ -144,7 +144,8 @@ def main():
|
|||
'cocos2dx_3d_ext.ini' : ('cocos2dx_3d_extension', 'jsb_cocos2dx_3d_extension_auto'), \
|
||||
'cocos2dx_experimental_webView.ini' : ('cocos2dx_experimental_webView', 'jsb_cocos2dx_experimental_webView_auto'), \
|
||||
'cocos2dx_experimental_video.ini' : ('cocos2dx_experimental_video', 'jsb_cocos2dx_experimental_video_auto'), \
|
||||
'cocos2dx_physics3d.ini' : ('cocos2dx_physics3d', 'jsb_cocos2dx_physics3d_auto')
|
||||
'cocos2dx_physics3d.ini' : ('cocos2dx_physics3d', 'jsb_cocos2dx_physics3d_auto'), \
|
||||
'cocos2dx_navmesh.ini' : ('cocos2dx_navmesh', 'jsb_cocos2dx_navmesh_auto'),
|
||||
}
|
||||
target = 'spidermonkey'
|
||||
generator_py = '%s/generator.py' % cxx_generator_root
|
||||
|
|
Loading…
Reference in New Issue