public void Rotate(byte player, int card, CardOrientation rot) { StringBuilder sb = new StringBuilder(); XmlWriter writer = XmlWriter.Create(sb, xmlSettings); writer.WriteStartElement("Rotate"); if (handler.muted != 0) writer.WriteAttributeString("muted", handler.muted.ToString(CultureInfo.InvariantCulture)); writer.WriteElementString("player", player.ToString(CultureInfo.InvariantCulture)); writer.WriteElementString("card", card.ToString(CultureInfo.InvariantCulture)); writer.WriteElementString("rot", rot.ToString()); writer.WriteEndElement(); writer.Close(); Send(sb.ToString()); }
public void RotateReq(Card card, CardOrientation rot) { StringBuilder sb = new StringBuilder(); XmlWriter writer = XmlWriter.Create(sb, xmlSettings); writer.WriteStartElement("RotateReq"); if (Script.ScriptEngine.CurrentScript != null && Script.ScriptEngine.CurrentScript.muted) writer.WriteAttributeString("muted", Script.ScriptEngine.CurrentScript.GetUniqueId().ToString(CultureInfo.InvariantCulture)); else if (Program.Client.Muted != 0) writer.WriteAttributeString("muted", Program.Client.Muted.ToString(CultureInfo.InvariantCulture)); writer.WriteElementString("card", card.Id.ToString(CultureInfo.InvariantCulture)); writer.WriteElementString("rot", rot.ToString()); writer.WriteEndElement(); writer.Close(); Send(sb.ToString()); }
public void RotateReq(Card card, CardOrientation rot) { var sb = new StringBuilder(); XmlWriter writer = XmlWriter.Create(sb, XmlSettings); writer.WriteStartElement("RotateReq"); if (Program.Client.Muted != 0) writer.WriteAttributeString("muted", Program.Client.Muted.ToString(CultureInfo.InvariantCulture)); writer.WriteElementString("card", card.Id.ToString(CultureInfo.InvariantCulture)); writer.WriteElementString("rot", rot.ToString()); writer.WriteEndElement(); writer.Close(); Send(sb.ToString()); }