diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Network/PackStateSpecialized.h |
Diffstat (limited to 'Runtime/Network/PackStateSpecialized.h')
-rw-r--r-- | Runtime/Network/PackStateSpecialized.h | 23 |
1 files changed, 23 insertions, 0 deletions
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 |