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/Network/PackStateSpecialized.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Runtime/Network/PackStateSpecialized.h (limited to 'Runtime/Network/PackStateSpecialized.h') diff --git a/Runtime/Network/PackStateSpecialized.h b/Runtime/Network/PackStateSpecialized.h new file mode 100644 index 0000000..93e066e --- /dev/null +++ b/Runtime/Network/PackStateSpecialized.h @@ -0,0 +1,23 @@ +#pragma once + +#include "Configuration/UnityConfigure.h" + +#if ENABLE_NETWORK + +class BitstreamPacker; +class Rigidbody; +class MonoBehaviour; +class Transform; +class Animation; +struct NetworkMessageInfo; + +bool SerializeRigidbody (Rigidbody& rigidbody, BitstreamPacker& packer); + +void UnpackTransform (Transform& transform, BitstreamPacker& packer); +bool PackTransform (Transform& transform, BitstreamPacker& packer); + +bool SerializeAnimation (Animation& animation, BitstreamPacker& packer); + +bool SerializeMono (MonoBehaviour& mono, BitstreamPacker& deltaState, NetworkMessageInfo& timeStamp); + +#endif \ No newline at end of file -- cgit v1.1-26-g67d0