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; }
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; }
public TeraMessageReader(Message message, OpCodeNamer opCodeNamer) : base(GetStream(message), Encoding.Unicode) { Message = message; OpCodeName = opCodeNamer.GetName(message.OpCode); }