Exemplo n.º 1
0
 /// <summary>
 /// The create.
 /// </summary>
 /// <param name="channel">
 /// </param>
 /// <param name="playerid">
 /// </param>
 /// <param name="message">
 /// </param>
 /// <param name="blob">
 /// </param>
 /// <returns>
 /// </returns>
 public static byte[] Create(ChannelBase channel, uint playerid, string message, string blob)
 {
     PacketWriter writer = new PacketWriter(65);
     writer.WriteByte((byte)channel.channelType);
     writer.WriteUInt32(channel.ChannelId);
     writer.WriteUInt32(playerid);
     writer.WriteString(message);
     writer.WriteString(blob);
     return writer.Finish();
 }
Exemplo n.º 2
0
 /// <summary>
 /// </summary>
 /// <param name="channel">
 /// </param>
 /// <param name="otherData">
 /// </param>
 /// <returns>
 /// </returns>
 public static byte[] Create(ChannelBase channel, byte[] otherData)
 {
     PacketWriter writer = new PacketWriter(60);
     writer.WriteByte((byte)channel.channelType);
     writer.WriteUInt32(channel.ChannelId);
     writer.WriteString(channel.ChannelName);
     writer.WriteUInt32((UInt32)channel.channelFlags);
     writer.WriteBytes(otherData);
     return writer.Finish();
 }
Exemplo n.º 3
0
 /// <summary>
 /// </summary>
 /// <param name="channel">
 /// </param>
 /// <param name="characterName">
 /// </param>
 /// <param name="text">
 /// </param>
 internal void ChannelMessageReceived(ChannelBase channel, string characterName, string text)
 {
     channel.ChannelMessageToIRC(characterName, text);
 }