Aura.Msgr.Network.Send.GuildChatMsg C# (CSharp) Метод

GuildChatMsg() публичный статический Метод

Sends GuildChatMsg from sender to user's client.
public static GuildChatMsg ( Aura.Msgr.Database.User user, string sender, string msg ) : void
user Aura.Msgr.Database.User
sender string
msg string
Результат void
		public static void GuildChatMsg(User user, string sender, string msg)
		{
			var packet = new Packet(Op.Msgr.GuildChatMsg, 0);
			packet.PutString(sender);
			packet.PutString(msg);

			user.Client.Send(packet);
		}
	}

Usage Example

Пример #1
0
        public void GuildChat(MsgrClient client, Packet packet)
        {
            var msg = packet.GetString();

            var guild = MsgrServer.Instance.GuildManager.FindGuildWithMember(client.User.CharacterId);

            if (guild == null)
            {
                // Don't warn, the client will probably allow this before
                // the msgr server caught up.
                return;
            }

            GuildManager.ForOnlineMembers(guild, user => Send.GuildChatMsg(user, client.User.Name, msg));
        }
All Usage Examples Of Aura.Msgr.Network.Send::GuildChatMsg