From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/Animation/Motion.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Runtime/Animation/Motion.cpp (limited to 'Runtime/Animation/Motion.cpp') 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) + -- cgit v1.1-26-g67d0