blob: c95c4bd9128abef7988d39c404b8a8c5028260c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
#include "UnityPrefix.h"
#include "Runtime/BaseClasses/ClassRegistration.h"
#include "Runtime/Modules/ModuleRegistration.h"
static void RegisterAnimationClasses (ClassRegistrationContext& context)
{
REGISTER_CLASS (Animation)
REGISTER_CLASS (AnimationClip)
REGISTER_CLASS (RuntimeAnimatorController)
REGISTER_CLASS (AnimatorController)
REGISTER_CLASS (Animator)
REGISTER_CLASS (Avatar)
REGISTER_CLASS (Motion)
#if !UNITY_WEBGL
REGISTER_CLASS (AnimatorOverrideController)
#endif
#if UNITY_EDITOR
///@TODO: Lets remove those. It's been deprecated since Unity 1.6
REGISTER_CLASS (BaseAnimationTrack)
REGISTER_CLASS (NewAnimationTrack)
#endif
}
#if ENABLE_MONO || UNITY_WINRT
void ExportRuntimeAnimatorControllerBindings();
void ExportAnimatorBindings();
void ExportAnimations();
void ExportAvatarBuilderBindings ();
void ExportAvatar ();
void ExportAnimatorOverrideControllerBindings();
static void RegisterAnimationICallModule ()
{
#if !INTERNAL_CALL_STRIPPING
ExportRuntimeAnimatorControllerBindings ();
ExportAnimatorBindings();
ExportAnimations ();
ExportAvatarBuilderBindings ();
ExportAvatar ();
ExportAnimatorOverrideControllerBindings ();
#endif
}
#endif
extern "C" EXPORT_MODULE void RegisterModule_Animation ()
{
ModuleRegistrationInfo info;
info.registerClassesCallback = &RegisterAnimationClasses;
#if ENABLE_MONO || UNITY_WINRT
info.registerIcallsCallback = &RegisterAnimationICallModule;
#endif
RegisterModuleInfo (info);
}
|