wiki.sine.space | sinespace

Scripting/RoomFloor

From wiki.sine.space
Revision as of 07:21, 31 December 2020 by Edisonwu (Talk | contribs) (Created page with "=Members= {{ScriptFunction|bool|Enabled|{get; set;}|Status of enable or disable room floor component.|5= floor = Space.Scene.Floors[0].Floor<br> ''--get first order floor.''<...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Members

Enabled

bool Enabled {get; set;}

Status of enable or disable room floor component.

floor = Space.Scene.Floors[0].Floor

--get first order floor.
floor.Enabled = false

--disable floor component.


Name

string Name {get;}

Name of this floor.

floor = Space.Scene.Floors[0].Floor

--get first order floor.
Space.Log(floor.Name)

--output name of this floor.


Description

string Description {get;}

Description of this floor.

floor = Space.Scene.Floors[0].Floor

--get first order floor.
Space.Log(floor.Description)

--output the description of this floor.


Properties

IsDefaultFloor

bool IsDefaultFloor {get;}

Is this default floor?

floor = Space.Scene.Floors[0].Floor

--get first order floor.
Space.Log(floor.IsDefaultFloor)

--output if this floor is default floor.


Furniture

SGameObject Furniture {get;}

Get all furniture game objects.

floor = Space.Scene.Floors[0].Floor

--get first order floor.
if floor.Furniture ~=nil and #floor.Furniture > 0 then
    Space.Log(floor.Furniture[0].Name)
end

--get all furniture in this floor, and output names of them.