Exemplo n.º 1
0
		/// <summary>
		/// Sends a guild query response to all member of this guild
		/// </summary>
		/// <param name="guild">guild to be sent</param>
		public static void SendGuildQueryToGuildMembers(Guild guild)
		{
			using (var packet = CreateGuildQueryResponsePacket(guild))
			{
				guild.SendAll(packet);
			}
		}
Exemplo n.º 2
0
		/// <summary>
		/// Sends event connected with guilds to all guild members
		/// </summary>
		/// <param name="guild">guild</param>
		/// <param name="guildEvent">event that happened</param>
		/// <param name="affectedMember">The <see cref="GuildMember"/> which was affected</param>
		public static void SendEventToGuild(Guild guild, GuildEvents guildEvent, GuildMember affectedMember)
		{
			using (var packet = CreateEventPacket(guild, guildEvent, affectedMember))
			{
				guild.SendAll(packet);
			}
		}
Exemplo n.º 3
0
		/// <summary>
		/// Sends event connected with guilds to all guild members, except one
		/// </summary>
		/// <param name="guild">guild</param>
		/// <param name="guildEvent">event that happened</param>
		/// <param name="affectedMember">The <see cref="GuildMember"/> which was affected</param>
		/// <param name="ignoredCharacter">character to be ignored</param>
		public static void SendEventToGuild(Guild guild, GuildEvents guildEvent, GuildMember affectedMember, Character ignoredCharacter)
		{
			using (RealmPacketOut packet = CreateEventPacket(guild, guildEvent, affectedMember))
			{
				guild.SendAll(packet, ignoredCharacter);
			}
		}
Exemplo n.º 4
0
		/// <summary>
		/// Sends event connected with guilds to all guild members
		/// </summary>
		/// <param name="guild">guild</param>
		/// <param name="guildEvent">event that happened</param>
		public static void SendEventToGuild(Guild guild, GuildEvents guildEvent)
		{
			using (var packet = CreateEventPacket(guild, guildEvent, null))
			{
				guild.SendAll(packet);
			}
		}