コード例 #1
0
 public void WriteModel(MyXmlWriter xml)
 {
     xml.Writer.WriteStartElement("Static");
     xml.WriteVector("Location", Location);
     xml.WriteRotation(Rotation);
     xml.Writer.WriteElementString("Mesh", Mesh);
     xml.Writer.WriteEndElement();
 }
コード例 #2
0
        public void WriteModel(MyXmlWriter xml)
        {
            xml.Writer.WriteStartElement("View");

            xml.WriteVector("Location", Location);
            xml.WriteRotation(this.Rotation);

            xml.Writer.WriteElementString("CameraNumber", XmlConvert.ToString(this.CameraNumber));

            xml.Writer.WriteEndElement();
        }
コード例 #3
0
        public void WriteModel(MyXmlWriter xml)
        {
            xml.Writer.WriteStartElement("Fixedwindow");
            xml.WriteVector("Location", Location);
            xml.WriteRotation(Rotation);
            xml.WriteSize(Size);
            xml.Writer.WriteElementString("frame", XmlConvert.ToString(this.Frame));
            xml.WriteMaterials(Materials);

            xml.Writer.WriteEndElement();
        }
コード例 #4
0
        public void WriteModel(MyXmlWriter xml)
        {
            xml.Writer.WriteStartElement("FlatRoof");

            xml.WriteVector("Location", Location);
            xml.WriteRotation(Rotation);

            xml.Writer.WriteElementString("RoofHeight", XmlConvert.ToString(RoofHeight));
            xml.Writer.WriteElementString("SideRafter", XmlConvert.ToString(SideRafter));
            xml.Writer.WriteElementString("MainRafter", XmlConvert.ToString(MainRafter));

            xml.WriteMaterials(Materials);

            xml.Writer.WriteEndElement();
        }
コード例 #5
0
        public void WriteModel(MyXmlWriter xml)
        {
            xml.Writer.WriteStartElement("FullStair");
            xml.WriteVector("Location", this.Location);
            xml.WriteRotation(this.Rotation);
            xml.Writer.WriteElementString("StepNumber", XmlConvert.ToString(this.StepNumber));
            xml.Writer.WriteElementString("StepLength", XmlConvert.ToString(this.StepLength));
            xml.Writer.WriteElementString("StepWidth", XmlConvert.ToString(this.StepWidth));
            xml.Writer.WriteElementString("StepHeight", XmlConvert.ToString(this.StepHeight));

            xml.Writer.WriteElementString("Foundation", XmlConvert.ToString(this.Foundation));

            xml.WriteMaterials(Materials);

            xml.Writer.WriteEndElement();
        }