summaryrefslogtreecommitdiff
path: root/Runtime/Animation/Motion.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-08-14 22:50:43 +0800
committerchai <chaifix@163.com>2019-08-14 22:50:43 +0800
commit15740faf9fe9fe4be08965098bbf2947e096aeeb (patch)
treea730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Animation/Motion.cpp
+Unity Runtime codeHEADmaster
Diffstat (limited to 'Runtime/Animation/Motion.cpp')
-rw-r--r--Runtime/Animation/Motion.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/Runtime/Animation/Motion.cpp b/Runtime/Animation/Motion.cpp
new file mode 100644
index 0000000..6a30490
--- /dev/null
+++ b/Runtime/Animation/Motion.cpp
@@ -0,0 +1,28 @@
+#include "UnityPrefix.h"
+#include "Motion.h"
+#include "Runtime/BaseClasses/GameObject.h"
+#include "Runtime/Serialize/TransferFunctions/SerializeTransfer.h"
+#include "Runtime/BaseClasses/MessageIdentifier.h"
+#include "Runtime/Misc/UserList.h"
+
+Motion::Motion (MemLabelId label, ObjectCreationMode mode) : Super (label, mode), m_ObjectUsers(this)
+{ }
+
+Motion::~Motion ()
+{
+
+}
+
+
+void Motion::NotifyObjectUsers(const MessageIdentifier& msg)
+{
+ m_ObjectUsers.SendMessage(msg);
+}
+
+void Motion::AddObjectUser( UserList& user )
+{
+ m_ObjectUsers.AddUser(user);
+}
+
+IMPLEMENT_CLASS (Motion)
+