Esempio n. 1
0
        public ParsedMessage Create(Message message)
        {
            var reader     = new TeraMessageReader(message, _opCodeNamer);
            var opCodeName = _opCodeNamer.GetName(message.OpCode);

            return(Instantiate(opCodeName, reader));
        }
 public TeraMessageReader(Message message, OpCodeNamer opCodeNamer, uint version, OpCodeNamer sysMsgNamer)
     : base(GetStream(message), Encoding.Unicode)
 {
     Message     = message;
     OpCodeName  = opCodeNamer.GetName(message.OpCode);
     SysMsgNamer = sysMsgNamer;
     Version     = version;
 }
Esempio n. 3
0
 public TeraMessageReader(Message message, OpCodeNamer opCodeNamer, MessageFactory factory, OpCodeNamer sysMsgNamer)
     : base(GetStream(message), Encoding.Unicode)
 {
     Message     = message;
     OpCodeName  = opCodeNamer.GetName(message.OpCode);
     SysMsgNamer = sysMsgNamer;
     Factory     = factory;
 }
Esempio n. 4
0
 public TeraMessageReader(Message message, OpCodeNamer opCodeNamer)
     : base(GetStream(message), Encoding.Unicode)
 {
     Message = message;
     OpCodeName = opCodeNamer.GetName(message.OpCode);
 }
Esempio n. 5
0
 public TeraMessageReader(Message message, OpCodeNamer opCodeNamer)
     : base(GetStream(message), Encoding.Unicode)
 {
     Message    = message;
     OpCodeName = opCodeNamer.GetName(message.OpCode);
 }