Example #1
0
        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();
        }
Example #2
0
 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);
 }
Example #3
0
 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);
 }
Example #4
0
        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);
        }
Example #5
0
 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);
 }
Example #6
0
 public float GetAveragePacketLossRatio() => ScriptingInterfaceOfIMBNetwork.call_GetAveragePacketLossRatioDelegate();
Example #7
0
 public void PrintDebugStats() => ScriptingInterfaceOfIMBNetwork.call_PrintDebugStatsDelegate();
Example #8
0
 public void ResetDebugVariables() => ScriptingInterfaceOfIMBNetwork.call_ResetDebugVariablesDelegate();
Example #9
0
 public void EndModuleEventAsClient(bool isReliable) => ScriptingInterfaceOfIMBNetwork.call_EndModuleEventAsClientDelegate(isReliable);
Example #10
0
 public void ClearReplicationTableStatistics() => ScriptingInterfaceOfIMBNetwork.call_ClearReplicationTableStatisticsDelegate();
Example #11
0
 public bool IsDedicatedServer() => ScriptingInterfaceOfIMBNetwork.call_IsDedicatedServerDelegate();
Example #12
0
 public void WriteUlongToPacket(
     ulong value,
     ref CompressionInfo.UnsignedLongInteger compressionInfo)
 {
     ScriptingInterfaceOfIMBNetwork.call_WriteUlongToPacketDelegate(value, ref compressionInfo);
 }
Example #13
0
 public void WriteFloatToPacket(float value, ref CompressionInfo.Float compressionInfo) => ScriptingInterfaceOfIMBNetwork.call_WriteFloatToPacketDelegate(value, ref compressionInfo);
Example #14
0
 public string ReadStringFromPacket(ref bool bufferReadValid) => ScriptingInterfaceOfIMBNetwork.call_ReadStringFromPacketDelegate(ref bufferReadValid) != 1 ? (string)null : Managed.ReturnValueFromEngine;
Example #15
0
 public void WriteLongToPacket(long value, ref CompressionInfo.LongInteger compressionInfo) => ScriptingInterfaceOfIMBNetwork.call_WriteLongToPacketDelegate(value, ref compressionInfo);
Example #16
0
 public bool ReadFloatFromPacket(ref CompressionInfo.Float compressionInfo, out float output) => ScriptingInterfaceOfIMBNetwork.call_ReadFloatFromPacketDelegate(ref compressionInfo, out output);
Example #17
0
 public bool ReadUlongFromPacket(
     ref CompressionInfo.UnsignedLongInteger compressionInfo,
     out ulong output)
 {
     return(ScriptingInterfaceOfIMBNetwork.call_ReadUlongFromPacketDelegate(ref compressionInfo, out output));
 }
Example #18
0
 public bool ReadLongFromPacket(ref CompressionInfo.LongInteger compressionInfo, out long output) => ScriptingInterfaceOfIMBNetwork.call_ReadLongFromPacketDelegate(ref compressionInfo, out output);
Example #19
0
 public void GetDebugUploadsInBits(
     ref GameNetwork.DebugNetworkPacketStatisticsStruct networkStatisticsStruct,
     ref GameNetwork.DebugNetworkPositionCompressionStatisticsStruct posStatisticsStruct)
 {
     ScriptingInterfaceOfIMBNetwork.call_GetDebugUploadsInBitsDelegate(ref networkStatisticsStruct, ref posStatisticsStruct);
 }
Example #20
0
 public void EndBroadcastModuleEvent(int broadcastFlags, int targetPlayer, bool isReliable) => ScriptingInterfaceOfIMBNetwork.call_EndBroadcastModuleEventDelegate(broadcastFlags, targetPlayer, isReliable);
Example #21
0
 public void ResetDebugUploads() => ScriptingInterfaceOfIMBNetwork.call_ResetDebugUploadsDelegate();
Example #22
0
 public void BeginBroadcastModuleEvent() => ScriptingInterfaceOfIMBNetwork.call_BeginBroadcastModuleEventDelegate();
Example #23
0
 public bool GetMultiplayerDisabled() => ScriptingInterfaceOfIMBNetwork.call_GetMultiplayerDisabledDelegate();
Example #24
0
 public void ResetMissionData() => ScriptingInterfaceOfIMBNetwork.call_ResetMissionDataDelegate();
Example #25
0
 public void InitializeServerSide(int port) => ScriptingInterfaceOfIMBNetwork.call_InitializeServerSideDelegate(port);
Example #26
0
 public void IncreaseTotalUploadLimit(int value) => ScriptingInterfaceOfIMBNetwork.call_IncreaseTotalUploadLimitDelegate(value);
Example #27
0
 public void TerminateClientSide() => ScriptingInterfaceOfIMBNetwork.call_TerminateClientSideDelegate();
Example #28
0
 public double ElapsedTimeSinceLastUdpPacketArrived() => ScriptingInterfaceOfIMBNetwork.call_ElapsedTimeSinceLastUdpPacketArrivedDelegate();
Example #29
0
 public void AddPeerToDisconnect(int peer) => ScriptingInterfaceOfIMBNetwork.call_AddPeerToDisconnectDelegate(peer);
Example #30
0
 public void RemoveBotOnServer(int botPlayerIndex) => ScriptingInterfaceOfIMBNetwork.call_RemoveBotOnServerDelegate(botPlayerIndex);