public void HandleNetStatusRequest(SwgInputStream stream)
        {
            var message = new Queue <byte[]>();

            message.Enqueue(GenerateNetStatusRequest());
            _systemMessage.SendMessage(message);
        }
        public Queue <byte[]> HandleSessionRecived(SwgInputStream baseObject)
        {
            var queueList      = new Queue <byte[]>();
            var sessionRecived = new SessionRecived();

            sessionRecived.Deserialize(baseObject);
            QueueServerSessionResponse(queueList, sessionRecived);
            QueueLoginServerResponse(queueList);
            _systemMessage.SendMessage(queueList);
            return(queueList);
        }
Пример #3
0
 private void GenerateAck(short sequence)
 {
     using (var stream = new MemoryStream())
     {
         using (var output = new SwgOutputStream(stream))
         {
             output.WriteShort((short)SoeOpCodes.SoeChlDataA);
             output.WriteByte(0);
             output.WriteShort(0);
             output.GenerateCrCSeed(stream.ToArray(), 0);
             _systemMessage.SendMessage(stream.ToArray());
         }
     }
 }