mirror of https://github.com/axmolengine/axmol.git
modify cocos2d_specifics , add navmesh head file。 modify template。add navmesh head file and register code
This commit is contained in:
parent
8c97fec5af
commit
61db9ef103
|
@ -27,7 +27,7 @@
|
||||||
#include "js_bindings_config.h"
|
#include "js_bindings_config.h"
|
||||||
#include "jsb_cocos2dx_auto.hpp"
|
#include "jsb_cocos2dx_auto.hpp"
|
||||||
#include "jsb_event_dispatcher_manual.h"
|
#include "jsb_event_dispatcher_manual.h"
|
||||||
|
#include "navmesh/CCNavMesh.h"
|
||||||
using namespace cocos2d;
|
using namespace cocos2d;
|
||||||
|
|
||||||
schedFunc_proxy_t *_schedFunc_target_ht = NULL;
|
schedFunc_proxy_t *_schedFunc_target_ht = NULL;
|
||||||
|
|
|
@ -23,6 +23,8 @@
|
||||||
#include "network/jsb_socketio.h"
|
#include "network/jsb_socketio.h"
|
||||||
#include "jsb_cocos2dx_physics3d_auto.hpp"
|
#include "jsb_cocos2dx_physics3d_auto.hpp"
|
||||||
#include "physics3d/jsb_cocos2dx_physics3d_manual.h"
|
#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)
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
||||||
#include "platform/android/CCJavascriptJavaBridge.h"
|
#include "platform/android/CCJavascriptJavaBridge.h"
|
||||||
|
@ -116,6 +118,11 @@ bool AppDelegate::applicationDidFinishLaunching()
|
||||||
sc->addRegisterCallback(register_all_cocos2dx_physics3d_manual);
|
sc->addRegisterCallback(register_all_cocos2dx_physics3d_manual);
|
||||||
#endif
|
#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)
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
||||||
sc->addRegisterCallback(JavascriptJavaBridge::_js_register);
|
sc->addRegisterCallback(JavascriptJavaBridge::_js_register);
|
||||||
#elif (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
#elif (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
||||||
|
|
Loading…
Reference in New Issue