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