diff options
Diffstat (limited to 'Runtime/NavMesh/NavigationModuleRegistration.cpp')
-rw-r--r-- | Runtime/NavMesh/NavigationModuleRegistration.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Runtime/NavMesh/NavigationModuleRegistration.cpp b/Runtime/NavMesh/NavigationModuleRegistration.cpp new file mode 100644 index 0000000..9bb7ed8 --- /dev/null +++ b/Runtime/NavMesh/NavigationModuleRegistration.cpp @@ -0,0 +1,40 @@ +#include "UnityPrefix.h" +#include "Runtime/BaseClasses/ClassRegistration.h" +#include "Runtime/Modules/ModuleRegistration.h" + +static void RegisterNavMeshClasses (ClassRegistrationContext& context) +{ + REGISTER_CLASS (NavMeshLayers) + REGISTER_CLASS (NavMesh) + REGISTER_CLASS (NavMeshAgent) + REGISTER_CLASS (NavMeshSettings) + REGISTER_CLASS (OffMeshLink) + REGISTER_CLASS (NavMeshObstacle) +} + +#if ENABLE_MONO || UNITY_WINRT +void ExportNavMeshBindings (); +void ExportNavMeshPathBindings (); +void ExportNavMeshAgentBindings (); +void ExportNavMeshObstacleBindings (); + +static void RegisterNavmeshICallModule () +{ +#if !INTERNAL_CALL_STRIPPING + ExportNavMeshBindings (); + ExportNavMeshPathBindings (); + ExportNavMeshAgentBindings (); + ExportNavMeshObstacleBindings (); +#endif +} +#endif + +extern "C" EXPORT_MODULE void RegisterModule_Navigation () +{ + ModuleRegistrationInfo info; + info.registerClassesCallback = &RegisterNavMeshClasses; +#if ENABLE_MONO || UNITY_WINRT + info.registerIcallsCallback = &RegisterNavmeshICallModule; +#endif + RegisterModuleInfo (info); +} |