public void SendRequest(TestCharacter sender, uint minLevel, uint maxLevel, string playerName, string guildName, RaceMask2 raceMask, ClassMask2 classMask, List <ZoneId> zones, List <string> names) { using (var packet = new RealmPacketOut(RealmServerOpCode.CMSG_WHO)) { packet.WriteUInt(minLevel); packet.WriteUInt(maxLevel); packet.WriteCString(playerName); packet.WriteCString(guildName); packet.WriteUInt((uint)raceMask); packet.WriteUInt((uint)classMask); packet.WriteUInt(zones.Count); foreach (ZoneId zone in zones) { packet.WriteUInt((uint)zone); } packet.WriteUInt(names.Count); foreach (string name in names) { packet.WriteCString(name); } sender.FakeClient.ReceiveCMSG(packet, true); } }
public void SendRequest(TestCharacter sender, uint minLevel, uint maxLevel, string playerName, string guildName, RaceMask2 raceMask, ClassMask2 classMask, List<ZoneId> zones, List<string> names) { using (var packet = new RealmPacketOut(RealmServerOpCode.CMSG_WHO)) { packet.WriteUInt(minLevel); packet.WriteUInt(maxLevel); packet.WriteCString(playerName); packet.WriteCString(guildName); packet.WriteUInt((uint)raceMask); packet.WriteUInt((uint)classMask); packet.WriteUInt(zones.Count); foreach (ZoneId zone in zones) packet.WriteUInt((uint)zone); packet.WriteUInt(names.Count); foreach (string name in names) packet.WriteCString(name); sender.FakeClient.ReceiveCMSG(packet, true); } }
public static bool HasAnyFlag(this RaceMask2 flags, RaceMask2 otherFlags) { return((flags & otherFlags) != RaceMask2.None); }
public static bool HasAnyFlag(this RaceMask2 flags, RaceMask2 otherFlags) { return (flags & otherFlags) != 0; }