Example #1
0
        public static Element ToT3D(this Panel panel, Building building)
        {
            if (panel == null)
            {
                return(null);
            }

            uint colour;

            if (!Core.Query.TryGetValue(panel, "Colour", out colour))
            {
                return(null);
            }

            double width;

            if (!Core.Query.TryGetValue(panel, "Width", out width))
            {
                return(null);
            }

            Element result = building.AddElement(panel.Name, colour, width);

            return(result);
        }