public static void WriteUintToPacket( uint value, CompressionInfo.UnsignedInteger compressionInfo) { MBAPI.IMBNetwork.WriteUintToPacket(value, ref compressionInfo); DebugNetworkEventStatistics.AddDataToStatistic(compressionInfo.GetNumBits()); }
public static void WriteObjectReferenceToPacket( MBObjectBase value, CompressionInfo.UnsignedInteger compressionInfo) { MBAPI.IMBNetwork.WriteUintToPacket(value != null ? value.Id.InternalValue : 0U, ref compressionInfo); DebugNetworkEventStatistics.AddDataToStatistic(compressionInfo.GetNumBits()); }