Пример #1
0
        public int CalculateMaxDeltaSizeInBits()
        {
            int num = 0;

            if (syncPosition == NetBodySyncPosition.Relative || syncPosition == NetBodySyncPosition.Absolute || syncPosition == NetBodySyncPosition.Local || syncPosition == NetBodySyncPosition.World || syncRotation == NetBodySyncRotation.Relative || syncRotation == NetBodySyncRotation.Absolute || syncRotation == NetBodySyncRotation.Local || syncRotation == NetBodySyncRotation.World)
            {
                num++;
                num += NetVector3Delta.CalculateMaxDeltaSizeInBits(possmall, poslarge, posfull);
                num += NetQuaternionDelta.CalculateMaxDeltaSizeInBits(rotsmall, rotlarge, rotfull);
            }
            if (syncRotation == NetBodySyncRotation.EulerX || syncRotation == NetBodySyncRotation.EulerY || syncRotation == NetBodySyncRotation.EulerZ)
            {
                num += eulerEncoder.CalculateMaxDeltaSizeInBits();
            }
            if (syncLocalScale)
            {
                num++;
                num += NetVector3Delta.CalculateMaxDeltaSizeInBits(possmall, poslarge, posfull);
            }
            return(num);
        }
Пример #2
0
 public int CalculateMaxDeltaSizeInBits()
 {
     return(encoder.CalculateMaxDeltaSizeInBits());
 }