| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #include "BsScriptAnimationEvent.generated.h"
- #include "BsMonoMethod.h"
- #include "BsMonoClass.h"
- #include "BsMonoUtil.h"
- namespace bs
- {
- ScriptAnimationEvent::ScriptAnimationEvent(MonoObject* managedInstance)
- :ScriptObject(managedInstance)
- { }
- void ScriptAnimationEvent::initRuntimeData()
- { }
- MonoObject*ScriptAnimationEvent::box(const __AnimationEventInterop& value)
- {
- return MonoUtil::box(metaData.scriptClass->_getInternalClass(), (void*)&value);
- }
- __AnimationEventInterop ScriptAnimationEvent::unbox(MonoObject* value)
- {
- return *(__AnimationEventInterop*)MonoUtil::unbox(value);
- }
- AnimationEvent ScriptAnimationEvent::fromInterop(const __AnimationEventInterop& value)
- {
- AnimationEvent output;
- String tmpname;
- tmpname = MonoUtil::monoToString(value.name);
- output.name = tmpname;
- output.time = value.time;
- return output;
- }
- __AnimationEventInterop ScriptAnimationEvent::toInterop(const AnimationEvent& value)
- {
- __AnimationEventInterop output;
- MonoString* tmpname;
- tmpname = MonoUtil::stringToMono(value.name);
- output.name = tmpname;
- output.time = value.time;
- return output;
- }
- }
|