示例#1
0
        public FloorFixture GetFloorFixtureAtLayer(FloorFixtureLayers layer)
        {
            switch (layer)
            {
            case FloorFixtureLayers.FurnitureFixtureMain:
                return(floorFixtureDefinition.furnitureMain);

            case FloorFixtureLayers.FurnitureFixture2:
                return(floorFixtureDefinition.furniture2);

            case FloorFixtureLayers.FurnitureFixture3:
                return(floorFixtureDefinition.furniture3);

            case FloorFixtureLayers.FurnitureFixture4:
                return(floorFixtureDefinition.furniture4);

            case FloorFixtureLayers.FurnitureFixture5:
                return(floorFixtureDefinition.furniture5);

            case FloorFixtureLayers.OverlayFixture1:
                return(floorFixtureDefinition.overlay1);

            case FloorFixtureLayers.OverlayFixture2:
                return(floorFixtureDefinition.overlay2);

            case FloorFixtureLayers.OverlayFixture3:
                return(floorFixtureDefinition.overlay3);

            case FloorFixtureLayers.PipeUpperFixture:
                return(floorFixtureDefinition.pipeUpper);
            }
            return(null);
        }
示例#2
0
        public void SetFloorFixtureAtLayer(FloorFixture fixture, FloorFixtureLayers layer)
        {
            switch (layer)
            {
            case FloorFixtureLayers.FurnitureFixtureMain:
                floorFixtureDefinition.furnitureMain = (FurnitureFloorFixture)fixture;
                break;

            case FloorFixtureLayers.FurnitureFixture2:
                floorFixtureDefinition.furniture2 = (FurnitureFloorFixture)fixture;
                break;

            case FloorFixtureLayers.FurnitureFixture3:
                floorFixtureDefinition.furniture3 = (FurnitureFloorFixture)fixture;
                break;

            case FloorFixtureLayers.FurnitureFixture4:
                floorFixtureDefinition.furniture4 = (FurnitureFloorFixture)fixture;
                break;

            case FloorFixtureLayers.FurnitureFixture5:
                floorFixtureDefinition.furniture5 = (FurnitureFloorFixture)fixture;
                break;

            case FloorFixtureLayers.OverlayFixture1:
                floorFixtureDefinition.overlay1 = (OverlayFloorFixture)fixture;
                break;

            case FloorFixtureLayers.OverlayFixture2:
                floorFixtureDefinition.overlay2 = (OverlayFloorFixture)fixture;
                break;

            case FloorFixtureLayers.OverlayFixture3:
                floorFixtureDefinition.overlay3 = (OverlayFloorFixture)fixture;
                break;

            case FloorFixtureLayers.PipeUpperFixture:
                floorFixtureDefinition.pipeUpper = (PipeFloorFixture)fixture;
                break;
            }
        }