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