From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- .../Interfaces/IAnimationStateNetworkProvider.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Runtime/Interfaces/IAnimationStateNetworkProvider.h (limited to 'Runtime/Interfaces/IAnimationStateNetworkProvider.h') diff --git a/Runtime/Interfaces/IAnimationStateNetworkProvider.h b/Runtime/Interfaces/IAnimationStateNetworkProvider.h new file mode 100644 index 0000000..797c744 --- /dev/null +++ b/Runtime/Interfaces/IAnimationStateNetworkProvider.h @@ -0,0 +1,22 @@ +#pragma once + +class Animation; + +struct AnimationStateForNetwork +{ + bool enabled; + float weight; + float time; +}; + +class IAnimationStateNetworkProvider +{ +public: + + virtual int GetNetworkAnimationStateCount (Animation& animation) = 0; + virtual void GetNetworkAnimationState (Animation& animation, AnimationStateForNetwork* state, int count) = 0; + virtual void SetNetworkAnimationState (Animation& animation, const AnimationStateForNetwork* serialize, int count) = 0; +}; + +EXPORT_COREMODULE IAnimationStateNetworkProvider* GetIAnimationStateNetworkProvider (); +EXPORT_COREMODULE void SetIAnimationStateNetworkProvider (IAnimationStateNetworkProvider* manager); \ No newline at end of file -- cgit v1.1-26-g67d0