public NavMeshTriangle(NavMeshTriangle copyObject)
 {
     Vertex1         = copyObject.Vertex1;
     Vertex2         = copyObject.Vertex2;
     Vertex3         = copyObject.Vertex3;
     EdgeVertices1_2 = copyObject.EdgeVertices1_2;
     EdgeVertices2_3 = copyObject.EdgeVertices2_3;
     EdgeVertices3_1 = copyObject.EdgeVertices3_1;
     Flags           = copyObject.Flags;
 }
 public NavMeshTriangle()
 {
     Vertex1         = new Int16();
     Vertex2         = new Int16();
     Vertex3         = new Int16();
     EdgeVertices1_2 = new Int16();
     EdgeVertices2_3 = new Int16();
     EdgeVertices3_1 = new Int16();
     Flags           = new NavMeshTriangleFlags();
 }
 public NavMeshTriangle(Int16 Vertex1, Int16 Vertex2, Int16 Vertex3, Int16 EdgeVertices1_2, Int16 EdgeVertices2_3, Int16 EdgeVertices3_1, NavMeshTriangleFlags Flags)
 {
     this.Vertex1         = Vertex1;
     this.Vertex2         = Vertex2;
     this.Vertex3         = Vertex3;
     this.EdgeVertices1_2 = EdgeVertices1_2;
     this.EdgeVertices2_3 = EdgeVertices2_3;
     this.EdgeVertices3_1 = EdgeVertices3_1;
     this.Flags           = Flags;
 }
 public void ReadBinary(ESPReader reader)
 {
     try
     {
         Vertex1         = reader.ReadInt16();
         Vertex2         = reader.ReadInt16();
         Vertex3         = reader.ReadInt16();
         EdgeVertices1_2 = reader.ReadInt16();
         EdgeVertices2_3 = reader.ReadInt16();
         EdgeVertices3_1 = reader.ReadInt16();
         Flags           = reader.ReadEnum <NavMeshTriangleFlags>();
     }
     catch
     {
         return;
     }
 }
        public void ReadXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            if (ele.TryPathTo("Vertices/Vertex1", false, out subEle))
            {
                Vertex1 = subEle.ToInt16();
            }

            if (ele.TryPathTo("Vertices/Vertex2", false, out subEle))
            {
                Vertex2 = subEle.ToInt16();
            }

            if (ele.TryPathTo("Vertices/Vertex3", false, out subEle))
            {
                Vertex3 = subEle.ToInt16();
            }

            if (ele.TryPathTo("Edges/Vertices1_2", false, out subEle))
            {
                EdgeVertices1_2 = subEle.ToInt16();
            }

            if (ele.TryPathTo("Edges/Vertices2_3", false, out subEle))
            {
                EdgeVertices2_3 = subEle.ToInt16();
            }

            if (ele.TryPathTo("Edges/Vertices3_1", false, out subEle))
            {
                EdgeVertices3_1 = subEle.ToInt16();
            }

            if (ele.TryPathTo("Flags", false, out subEle))
            {
                Flags = subEle.ToEnum <NavMeshTriangleFlags>();
            }
        }