/// <summary> /// Adds the specified message. /// </summary> /// <param name="message">The message.</param> /// <param name="friend">The friend.</param> public static void Add(NetworkMessage message, IFriend friend) { message.AddPacketType(GamePacketType.FriendEntry); message.AddUInt32(friend.Character.Id); message.AddString(friend.Character.Name); message.AddString(friend.Description); message.AddUInt32(friend.Icon); message.AddBoolean(friend.NotifyOnLogin); message.AddSessionStatus(friend.Character.Status); }
/// <summary> /// Adds the specified message. /// </summary> /// <param name="message">The message.</param> /// <param name="friendId">The friend identifier.</param> /// <param name="status">The status.</param> public static void Add(NetworkMessage message, uint friendId, SessionStatus status) { message.AddPacketType(GamePacketType.FriendStatus); message.AddUInt32(friendId); message.AddSessionStatus(status); }