public void WriteByteArrayToPacket(byte[] value, int offset, int size) { PinnedArrayData <byte> pinnedArrayData = new PinnedArrayData <byte>(value); ManagedArray managedArray = new ManagedArray(pinnedArrayData.Pointer, value != null ? value.Length : 0); ScriptingInterfaceOfIMBNetwork.call_WriteByteArrayToPacketDelegate(managedArray, offset, size); pinnedArrayData.Dispose(); }
public void ServerPing(string serverAddress, int port) { byte[] numArray = (byte[])null; if (serverAddress != null) { numArray = CallbackStringBufferManager.StringBuffer0; int bytes = ScriptingInterfaceOfIMBNetwork._utf8.GetBytes(serverAddress, 0, serverAddress.Length, numArray, 0); numArray[bytes] = (byte)0; } ScriptingInterfaceOfIMBNetwork.call_ServerPingDelegate(numArray, port); }
public void WriteStringToPacket(string value) { byte[] bytes1 = (byte[])null; if (value != null) { bytes1 = CallbackStringBufferManager.StringBuffer0; int bytes2 = ScriptingInterfaceOfIMBNetwork._utf8.GetBytes(value, 0, value.Length, bytes1, 0); bytes1[bytes2] = (byte)0; } ScriptingInterfaceOfIMBNetwork.call_WriteStringToPacketDelegate(bytes1); }
public int ReadByteArrayFromPacket( byte[] buffer, int offset, int bufferCapacity, ref bool bufferReadValid) { PinnedArrayData <byte> pinnedArrayData = new PinnedArrayData <byte>(buffer); ManagedArray buffer1 = new ManagedArray(pinnedArrayData.Pointer, buffer != null ? buffer.Length : 0); int num = ScriptingInterfaceOfIMBNetwork.call_ReadByteArrayFromPacketDelegate(buffer1, offset, bufferCapacity, ref bufferReadValid); pinnedArrayData.Dispose(); return(num); }
public void InitializeClientSide( string serverAddress, int port, int sessionKey, int playerIndex) { byte[] numArray = (byte[])null; if (serverAddress != null) { numArray = CallbackStringBufferManager.StringBuffer0; int bytes = ScriptingInterfaceOfIMBNetwork._utf8.GetBytes(serverAddress, 0, serverAddress.Length, numArray, 0); numArray[bytes] = (byte)0; } ScriptingInterfaceOfIMBNetwork.call_InitializeClientSideDelegate(numArray, port, sessionKey, playerIndex); }
public float GetAveragePacketLossRatio() => ScriptingInterfaceOfIMBNetwork.call_GetAveragePacketLossRatioDelegate();
public void PrintDebugStats() => ScriptingInterfaceOfIMBNetwork.call_PrintDebugStatsDelegate();
public void ResetDebugVariables() => ScriptingInterfaceOfIMBNetwork.call_ResetDebugVariablesDelegate();
public void EndModuleEventAsClient(bool isReliable) => ScriptingInterfaceOfIMBNetwork.call_EndModuleEventAsClientDelegate(isReliable);
public void ClearReplicationTableStatistics() => ScriptingInterfaceOfIMBNetwork.call_ClearReplicationTableStatisticsDelegate();
public bool IsDedicatedServer() => ScriptingInterfaceOfIMBNetwork.call_IsDedicatedServerDelegate();
public void WriteUlongToPacket( ulong value, ref CompressionInfo.UnsignedLongInteger compressionInfo) { ScriptingInterfaceOfIMBNetwork.call_WriteUlongToPacketDelegate(value, ref compressionInfo); }
public void WriteFloatToPacket(float value, ref CompressionInfo.Float compressionInfo) => ScriptingInterfaceOfIMBNetwork.call_WriteFloatToPacketDelegate(value, ref compressionInfo);
public string ReadStringFromPacket(ref bool bufferReadValid) => ScriptingInterfaceOfIMBNetwork.call_ReadStringFromPacketDelegate(ref bufferReadValid) != 1 ? (string)null : Managed.ReturnValueFromEngine;
public void WriteLongToPacket(long value, ref CompressionInfo.LongInteger compressionInfo) => ScriptingInterfaceOfIMBNetwork.call_WriteLongToPacketDelegate(value, ref compressionInfo);
public bool ReadFloatFromPacket(ref CompressionInfo.Float compressionInfo, out float output) => ScriptingInterfaceOfIMBNetwork.call_ReadFloatFromPacketDelegate(ref compressionInfo, out output);
public bool ReadUlongFromPacket( ref CompressionInfo.UnsignedLongInteger compressionInfo, out ulong output) { return(ScriptingInterfaceOfIMBNetwork.call_ReadUlongFromPacketDelegate(ref compressionInfo, out output)); }
public bool ReadLongFromPacket(ref CompressionInfo.LongInteger compressionInfo, out long output) => ScriptingInterfaceOfIMBNetwork.call_ReadLongFromPacketDelegate(ref compressionInfo, out output);
public void GetDebugUploadsInBits( ref GameNetwork.DebugNetworkPacketStatisticsStruct networkStatisticsStruct, ref GameNetwork.DebugNetworkPositionCompressionStatisticsStruct posStatisticsStruct) { ScriptingInterfaceOfIMBNetwork.call_GetDebugUploadsInBitsDelegate(ref networkStatisticsStruct, ref posStatisticsStruct); }
public void EndBroadcastModuleEvent(int broadcastFlags, int targetPlayer, bool isReliable) => ScriptingInterfaceOfIMBNetwork.call_EndBroadcastModuleEventDelegate(broadcastFlags, targetPlayer, isReliable);
public void ResetDebugUploads() => ScriptingInterfaceOfIMBNetwork.call_ResetDebugUploadsDelegate();
public void BeginBroadcastModuleEvent() => ScriptingInterfaceOfIMBNetwork.call_BeginBroadcastModuleEventDelegate();
public bool GetMultiplayerDisabled() => ScriptingInterfaceOfIMBNetwork.call_GetMultiplayerDisabledDelegate();
public void ResetMissionData() => ScriptingInterfaceOfIMBNetwork.call_ResetMissionDataDelegate();
public void InitializeServerSide(int port) => ScriptingInterfaceOfIMBNetwork.call_InitializeServerSideDelegate(port);
public void IncreaseTotalUploadLimit(int value) => ScriptingInterfaceOfIMBNetwork.call_IncreaseTotalUploadLimitDelegate(value);
public void TerminateClientSide() => ScriptingInterfaceOfIMBNetwork.call_TerminateClientSideDelegate();
public double ElapsedTimeSinceLastUdpPacketArrived() => ScriptingInterfaceOfIMBNetwork.call_ElapsedTimeSinceLastUdpPacketArrivedDelegate();
public void AddPeerToDisconnect(int peer) => ScriptingInterfaceOfIMBNetwork.call_AddPeerToDisconnectDelegate(peer);
public void RemoveBotOnServer(int botPlayerIndex) => ScriptingInterfaceOfIMBNetwork.call_RemoveBotOnServerDelegate(botPlayerIndex);