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/Interfaces/IPhysics2D.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Runtime/Interfaces/IPhysics2D.h (limited to 'Runtime/Interfaces/IPhysics2D.h') diff --git a/Runtime/Interfaces/IPhysics2D.h b/Runtime/Interfaces/IPhysics2D.h new file mode 100644 index 0000000..8cdc8f8 --- /dev/null +++ b/Runtime/Interfaces/IPhysics2D.h @@ -0,0 +1,29 @@ +#pragma once + +// -------------------------------------------------------------------------- + + +struct Physics2DStats; + + +// -------------------------------------------------------------------------- + + +class IPhysics2D +{ +public: + virtual void FixedUpdate () = 0; + virtual void DynamicUpdate () = 0; + virtual void ResetInterpolations () = 0; + +#if ENABLE_PROFILER + virtual void GetProfilerStats (Physics2DStats& stats) = 0; +#endif +}; + + +// -------------------------------------------------------------------------- + + +IPhysics2D* GetIPhysics2D (); +void SetIPhysics2D (IPhysics2D* manager); -- cgit v1.1-26-g67d0