private void GetGraphic()
        {
            if ( graphicLinked?.MatSingle != null )
            {
                return;
            }

            var graphicSingle = GraphicDatabase.Get< Graphic_Single >( def.graphicData.texPath );
            graphicLinked = new Graphic_LinkedAirPipe( graphicSingle );
        }
Esempio n. 2
0
        private void GetGraphic()
        {
            if (graphicLinked?.MatSingle != null)
            {
                return;
            }

            var graphicSingle = GraphicDatabase.Get <Graphic_Single>(def.graphicData.texPath);

            graphicLinked = new Graphic_LinkedAirPipe(graphicSingle);
        }
        private void GetGraphic()
        {
            if (graphicLinked?.MatSingle != null)
            {
                return;
            }

            //Things/Building/Linked/DuctPipeLower
            //var graphicSingle = GraphicDatabase.Get< Graphic_Single >( def.graphicData.texPath );
            //graphicLinked = new Graphic_LinkedAirPipe( graphicSingle );
            if (def.graphicData.texPath == "Things/Building/Linked/DuctPipeUpper")
            {
                graphicLinked = new Graphic_LinkedAirPipe(ResourceBank.graphicSingleUpper);
            }
            if (def.graphicData.texPath == "Things/Building/Linked/DuctPipeLower")
            {
                graphicLinked = new Graphic_LinkedAirPipe(ResourceBank.graphicSingleLower);
            }
        }
        private void GetGraphic()
        {
            if (graphicLinked?.MatSingle != null)
            {
                return;
            }

            #if DEBUG
                  Log.Message("Printing graphicData: "+def.graphicData.texPath);
            #endif
            //Things/Building/Linked/DuctPipeLower
            //var graphicSingle = GraphicDatabase.Get< Graphic_Single >( def.graphicData.texPath );
            //graphicLinked = new Graphic_LinkedAirPipe( graphicSingle );
            if (def.graphicData.texPath == "Things/Building/Linked/DuctPipeLower")
            {
                graphicLinked = new Graphic_LinkedAirPipe( ResourceBank.graphicSingleLower);
            }
            if (def.graphicData.texPath == "Things/Building/Linked/DuctPipeLower")
            {
                graphicLinked = new Graphic_LinkedAirPipe( ResourceBank.graphicSingleLower);
            }
        }