using System; using System.Collections.Generic; namespace HDL_ON.Entity { /// /// 房间对象 /// 房间命名规则 typeof (Room).Name + "_" + etNameBox.Text.Trim (); /// [System.Serializable] public class Room { /// /// 房间名 /// public string name = "Room"; /// /// 房间ID /// public string sid; /// /// 房间背景 /// public string backgroundImage = "Classification/Room/Roombg.png"; /// /// 楼层 /// public string floor { get { string str = ""; if (floorIndex != -1) { if (floorIndex < DB_ResidenceData.residenceData.floors.Count) str = DB_ResidenceData.residenceData.floors[floorIndex]; } return str; } } /// /// 楼层索引 /// public int floorIndex = -1; /// /// 房间添加的功能列表 /// 保存功能ID /// public List roomFunctionList = new List(); /// /// 房间功能列表 /// [Newtonsoft.Json.JsonIgnore] public List functions = new List(); /// /// 房间添加的场景列表 /// 保存场景ID /// public List roomSceneList = new List(); /// /// 房间场景列表 /// [Newtonsoft.Json.JsonIgnore] public List scenes = new List(); } }