wxr
2020-03-05 0bdc0a135dbe31761b53f432ed34f347f0a4e36b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
using System;
using System.Collections.Generic;
 
namespace HDL_ON.Entity
{
 
    /// <summary>
    /// 房间对象
    /// 房间命名规则 typeof (Room).Name + "_" + etNameBox.Text.Trim ();
    /// </summary>
    [System.Serializable]
    public class Room
    {
        /// <summary>
        /// 房间名
        /// </summary>
        public string name = "Room";
        /// <summary>
        /// 房间ID
        /// </summary>
        public string sid;
 
        /// <summary>
        /// 房间背景
        /// </summary>
        public string backgroundImage = "Classification/Room/Roombg.png";
        /// <summary>
        /// 楼层
        /// </summary>
        public string floor {
            get
            {
                string str = "";
                if (floorIndex != -1)
                {
                    if (floorIndex < DB_ResidenceData.residenceData.floors.Count)
                        str = DB_ResidenceData.residenceData.floors[floorIndex];
                }
                return str;
            }
        }
        /// <summary>
        /// 楼层索引
        /// </summary>
        public int floorIndex = -1;
 
        /// <summary>
        /// 房间添加的功能列表
        /// 保存功能ID
        /// </summary>
        public List<string> roomFunctionList = new List<string>();
        /// <summary>
        /// 房间功能列表
        /// </summary>
        [Newtonsoft.Json.JsonIgnore]
        public List<Function> functions = new List<Function>();
 
        /// <summary>
        /// 房间添加的场景列表
        /// 保存场景ID
        /// </summary>
        public List<string> roomSceneList = new List<string>();
        /// <summary>
        /// 房间场景列表
        /// </summary>
        [Newtonsoft.Json.JsonIgnore]
        public List<Scene> scenes = new List<Scene>();
    }
}