Floor()

Floor楼层

new Floor()

Extends

  • THING.Object3D

Members

ceilings :THING.Selector.<THING.Object3D>

获取楼层下的天花板对象集合
Example
let ceilings = floor.ceilings;
console.log(ceilings);

doors :THING.Selector.<THING.Door>

获取楼层下的门对象集合
Example
let doors = floor.doors;
console.log(doors);

levelNumber :Number

获取楼层编号(从1开始)
Example
let levelNumber = floor.levelNumber;
console.log(levelNumber);

misc :THING.Object3D

获取其他对象
Example
let misc = floor.misc;
console.log(misc);

placements :THING.Selector.<THING.Entity>

获取楼层下的放置对象集合
Example
let placements = floor.placements;
console.log(placements);

roofs :THING.Selector.<THING.Object3D>

获取楼层下的墙体对象集合
Example
let roofs = floor.roofs;
console.log(roofs);

rooms :THING.Selector.<THING.Room>

获取楼层下的房间对象集合
Example
let rooms = floor.rooms;
console.log(rooms);

slabs :THING.Selector.<THING.Object3D>

获取楼层下的板块对象集合
Example
let slabs = floor.slabs;
console.log(slabs);

walls :THING.Selector.<THING.Object3D>

获取楼层下的墙体对象集合
Example
let walls = floor.walls;
console.log(walls);

Methods

showAllCeilings(visible)

显示/隐藏所有天花板(包括楼层和楼层下方房间的天花板)
Parameters:
Name Type Default Description
visible Boolean true true 显示(默认)/ false 隐藏

showAllRoofs(visible)

显示/隐藏所有屋顶(包括楼层和楼层下方房间的屋顶)
Parameters:
Name Type Default Description
visible Boolean true true 显示(默认)/ false 隐藏