Пример #1
0
        public void WriteXML(XmlWriter xmlWriter)
        {
            xmlWriter.WriteStartElement("InitiativeValue");

            xmlWriter.WriteStartElement("Score");
            xmlWriter.WriteString(Score.ToString());
            xmlWriter.WriteEndElement();

            xmlWriter.WriteStartElement("Adjust");
            xmlWriter.WriteString(Adjust.ToString());
            xmlWriter.WriteEndElement();

            xmlWriter.WriteStartElement("Modifier");
            xmlWriter.WriteString(Modifier.ToString());
            xmlWriter.WriteEndElement();

            xmlWriter.WriteStartElement("Roll");
            xmlWriter.WriteString(Roll.ToString());
            xmlWriter.WriteEndElement();

            xmlWriter.WriteStartElement("Delayed");
            xmlWriter.WriteString(Delayed.ToString());
            xmlWriter.WriteEndElement();

            xmlWriter.WriteStartElement("TurnState");
            xmlWriter.WriteString(Methods.GetTurnStateString(TurnState));
            xmlWriter.WriteEndElement();

            xmlWriter.WriteStartElement("Readied");
            xmlWriter.WriteString(Readied.ToString());
            xmlWriter.WriteEndElement();

            xmlWriter.WriteEndElement();
        }
Пример #2
0
 protected string GetTimeDelay()
 {
     return($"transition-delay: {Delayed.ToString(CultureInfo.InvariantCulture)}s;");
 }