| | |
| | | this.frameSceneTable.RemoveAll();
|
| | |
|
| | | var listScene = new List<Common.SceneUI>();
|
| | | for (int i = 0; i < lookRoom.SceneUIList.Count; i++)
|
| | | for (int i = 0; i < lookRoom.ListSceneId.Count; i++)
|
| | | {
|
| | | if (HdlShardLogic.Current.IsFileExists(lookRoom.SceneUIList[i].FileName) == true)
|
| | | var byteData = HdlShardLogic.Current.GetShardFileContent($"Scene_{lookRoom.ListSceneId[i]}.json");
|
| | | if (byteData == null)
|
| | | {
|
| | | listScene.Add(lookRoom.SceneUIList[i]);
|
| | | continue;
|
| | | }
|
| | | var sceneUi = Newtonsoft.Json.JsonConvert.DeserializeObject<Common.SceneUI>(System.Text.Encoding.UTF8.GetString(byteData));
|
| | | listScene.Add(sceneUi);
|
| | | }
|
| | | if (listScene.Count == 0)
|
| | | {
|
| | |
| | | {
|
| | | //获取这个房间里面的分享设备
|
| | | var listDevice = new List<CommonDevice>();
|
| | | foreach (var deviceFile in this.lookRoom.DeviceUIFilePathList)
|
| | | foreach (var deviceKeys in this.lookRoom.ListDevice)
|
| | | {
|
| | | string deviceFile = HdlShardLogic.Current.GetShardDeviceFileName(deviceKeys);
|
| | | if (memberShardInfo.dicAllShardKeys.ContainsKey(deviceFile) == true)
|
| | | {
|
| | | var strArry = deviceFile.Split('_');
|