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()); }
public static uint ReadUintFromPacket( CompressionInfo.UnsignedInteger compressionInfo, ref bool bufferReadValid) { uint output = 0; bufferReadValid = bufferReadValid && MBAPI.IMBNetwork.ReadUintFromPacket(ref compressionInfo, out output); return(output); }
public static MBObjectBase ReadObjectReferenceFromPacket( MBObjectManager objectManager, CompressionInfo.UnsignedInteger compressionInfo, ref bool bufferReadValid) { uint id = GameNetworkMessage.ReadUintFromPacket(compressionInfo, ref bufferReadValid); if (!bufferReadValid || id <= 0U) { return((MBObjectBase)null); } MBGUID objectId = new MBGUID(id); return(objectManager.GetObject(objectId)); }
public void WriteUintToPacket( uint value, ref CompressionInfo.UnsignedInteger compressionInfo) { ScriptingInterfaceOfIMBNetwork.call_WriteUintToPacketDelegate(value, ref compressionInfo); }
public bool ReadUintFromPacket( ref CompressionInfo.UnsignedInteger compressionInfo, out uint output) { return(ScriptingInterfaceOfIMBNetwork.call_ReadUintFromPacketDelegate(ref compressionInfo, out output)); }