2
0

BsScriptAnimationEvent.generated.cpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #include "BsScriptAnimationEvent.generated.h"
  2. #include "BsMonoMethod.h"
  3. #include "BsMonoClass.h"
  4. #include "BsMonoUtil.h"
  5. namespace bs
  6. {
  7. ScriptAnimationEvent::ScriptAnimationEvent(MonoObject* managedInstance)
  8. :ScriptObject(managedInstance)
  9. { }
  10. void ScriptAnimationEvent::initRuntimeData()
  11. { }
  12. MonoObject*ScriptAnimationEvent::box(const __AnimationEventInterop& value)
  13. {
  14. return MonoUtil::box(metaData.scriptClass->_getInternalClass(), (void*)&value);
  15. }
  16. __AnimationEventInterop ScriptAnimationEvent::unbox(MonoObject* value)
  17. {
  18. return *(__AnimationEventInterop*)MonoUtil::unbox(value);
  19. }
  20. AnimationEvent ScriptAnimationEvent::fromInterop(const __AnimationEventInterop& value)
  21. {
  22. AnimationEvent output;
  23. String tmpname;
  24. tmpname = MonoUtil::monoToString(value.name);
  25. output.name = tmpname;
  26. output.time = value.time;
  27. return output;
  28. }
  29. __AnimationEventInterop ScriptAnimationEvent::toInterop(const AnimationEvent& value)
  30. {
  31. __AnimationEventInterop output;
  32. MonoString* tmpname;
  33. tmpname = MonoUtil::stringToMono(value.name);
  34. output.name = tmpname;
  35. output.time = value.time;
  36. return output;
  37. }
  38. }