Exemple #1
0
        public void Dispatch(NetConnectionStatus status)
        {
            LidgrenStatusMessage message = new LidgrenStatusMessage(status);

            //Just dispatch as a real status message
            this.OnNetworkMessageReceive(message, null);
        }
		public void Dispatch(NetConnectionStatus status)
		{
			LidgrenStatusMessage message = new LidgrenStatusMessage(status);

			//Just dispatch as a real status message
			this.OnNetworkMessageReceive(message, null);
		}
		public LidgrenStatusChangeMessageContext(NetIncomingMessage incomingMessage) 
			: base(incomingMessage)
		{
			LidgrenStatus = (NetConnectionStatus)incomingMessage.ReadByte();
			//Generate a Lidgren status message for dispatching
			GeneratedStatusMessage = new LidgrenStatusMessage(LidgrenStatus);
		}
        public LidgrenStatusChangeMessageContext(NetIncomingMessage incomingMessage)
            : base(incomingMessage)
        {
            if (incomingMessage == null)
            {
                throw new ArgumentNullException(nameof(incomingMessage));
            }

            LidgrenStatus = (NetConnectionStatus)incomingMessage.ReadByte();
            //Generate a Lidgren status message for dispatching
            GeneratedStatusMessage = new LidgrenStatusMessage(LidgrenStatus);
        }