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 "jsb_cocos2dx_auto.hpp"
|
||||
#include "jsb_event_dispatcher_manual.h"
|
||||
|
||||
#include "navmesh/CCNavMesh.h"
|
||||
using namespace cocos2d;
|
||||
|
||||
schedFunc_proxy_t *_schedFunc_target_ht = NULL;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue