Exemple #1
0
        public static unsafe void SetMinimumResendTime(int value, LocalNetworkDriver driver,
                                                       NetworkPipeline pipeline, int stageId, NetworkConnection con)
        {
            NativeSlice <byte> receiveBuffer = default(NativeSlice <byte>);
            NativeSlice <byte> sendBuffer    = default(NativeSlice <byte>);
            NativeSlice <byte> sharedBuffer  = default(NativeSlice <byte>);

            driver.GetPipelineBuffers(pipeline, stageId, con, ref receiveBuffer, ref sendBuffer, ref sharedBuffer);
            var sharedCtx = (ReliableUtility.SharedContext *)sharedBuffer.GetUnsafePtr();

            sharedCtx->MinimumResendTime = value;
        }