| | |
| | | instance.SaveResidenceData(); |
| | | } |
| | | |
| | | new Light() |
| | | { |
| | | sid = "030101123456780202010005ABCD", |
| | | name = "灯光1", |
| | | attributes = new List<FunctionAttributes>() { |
| | | new FunctionAttributes { key="on_off", max=100,min = 0, value= new List<string> { "on","off"} }, |
| | | }, |
| | | roomIds = new List<string>() { "0001" }, |
| | | bus_Data = new BusData |
| | | { |
| | | addresses = "2A06", |
| | | loopId = 1, |
| | | }, |
| | | }.SaveFunctionData(); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | catch (Exception ex) |
| | |
| | | public List<Room> Rooms = SpatialInfo.CurrentSpatial.RoomList; |
| | | |
| | | #region 功能数据 |
| | | public static FunctionList functionList = FunctionList.List; |
| | | static FunctionList _functionList; |
| | | public static FunctionList functionList { |
| | | get |
| | | { |
| | | if(_functionList == null) |
| | | { |
| | | _functionList = FunctionList.List; |
| | | } |
| | | return _functionList; |
| | | } |
| | | set |
| | | { |
| | | _functionList = value; |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | |