Exemplo n.º 1
0
        public void WriteModel(MyXmlWriter xml)
        {
            xml.Writer.WriteStartElement("Wall");
            xml.WriteVector("Start", Start);
            xml.WriteVector("End", End);
            xml.Writer.WriteElementString("Width", XmlConvert.ToString(Width));
            xml.Writer.WriteElementString("Height", XmlConvert.ToString(Height));

            xml.Writer.WriteStartElement("Holes");
            foreach (Data.Hole hole in Holes)
            {
                xml.Writer.WriteStartElement("Hole");

                xml.Writer.WriteElementString("x", XmlConvert.ToString(hole.X));
                xml.Writer.WriteElementString("y", XmlConvert.ToString(hole.Y));
                xml.Writer.WriteElementString("l", XmlConvert.ToString(hole.L));
                xml.Writer.WriteElementString("h", XmlConvert.ToString(hole.H));

                xml.Writer.WriteEndElement();
            }
            xml.Writer.WriteEndElement();

            xml.WriteMaterials(Materials);

            xml.Writer.WriteEndElement();
        }
Exemplo n.º 2
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();
 }
Exemplo n.º 3
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();
        }
Exemplo n.º 4
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();
        }
Exemplo n.º 5
0
        public void WriteModel(MyXmlWriter xml)
        {
            xml.Writer.WriteStartElement("PointLight");

            xml.WriteVector("Location", Location);
            xml.Writer.WriteElementString("Intensity", XmlConvert.ToString(this.Intensity));

            xml.Writer.WriteStartElement("Color");
            xml.Writer.WriteElementString("r", XmlConvert.ToString(this.Red));
            xml.Writer.WriteElementString("g", XmlConvert.ToString(this.Green));
            xml.Writer.WriteElementString("b", XmlConvert.ToString(this.Blue));
            xml.Writer.WriteEndElement();

            xml.Writer.WriteEndElement();
        }
Exemplo n.º 6
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();
        }
Exemplo n.º 7
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();
        }
Exemplo n.º 8
0
        public void WriteModel(MyXmlWriter xml)
        {
            xml.Writer.WriteStartElement("Floor");

            xml.WriteVector("Location", Location);

            xml.Writer.WriteStartElement("Move");
            xml.Writer.WriteElementString("x", "0");
            xml.Writer.WriteElementString("y", "0");
            xml.Writer.WriteElementString("z", XmlConvert.ToString(Thickness));
            xml.Writer.WriteEndElement();

            xml.WriteVertices(Vertices);

            xml.WriteMaterials(Materials);

            xml.Writer.WriteEndElement();
        }