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/Audio/AudioBehaviour.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Runtime/Audio/AudioBehaviour.h (limited to 'Runtime/Audio/AudioBehaviour.h') diff --git a/Runtime/Audio/AudioBehaviour.h b/Runtime/Audio/AudioBehaviour.h new file mode 100644 index 0000000..46275cb --- /dev/null +++ b/Runtime/Audio/AudioBehaviour.h @@ -0,0 +1,21 @@ +#ifndef __AUDIOTYPES_H__ +#define __AUDIOTYPES_H__ +#if ENABLE_AUDIO + +#include "Runtime/GameCode/Behaviour.h" +#include "Runtime/Serialize/TransferFunctions/SerializeTransfer.h" + +// macros/helpers +#define UNITYVEC2FMODVEC(v) *(reinterpret_cast(&v)) +#define UNITYVEC2FMODVECPTR(v) (reinterpret_cast(&v)) + +class AudioBehaviour : public Behaviour +{ +public: + REGISTER_DERIVED_ABSTRACT_CLASS (AudioBehaviour, Behaviour) + + AudioBehaviour (MemLabelId label, ObjectCreationMode mode); +}; + +#endif //ENABLE_AUDIO +#endif // __AUDIOTYPES_H__ -- cgit v1.1-26-g67d0