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); }
public int CalculateMaxDeltaSizeInBits() { return(NetVector3Delta.CalculateMaxDeltaSizeInBits(deltaSmall, deltaLarge, fullBits)); }