| | |
| | | /// <summary> |
| | | /// 场景 |
| | | /// </summary> |
| | | [System.Serializable] |
| | | [System.Serializable] |
| | | public class Scene : Common |
| | | { |
| | | public readonly static string GlobalSceneFilePath = "GlobalScene"; |
| | | static Scene () |
| | | { |
| | | Refresh (); |
| | | Refresh (); |
| | | } |
| | | |
| | | public static void Refresh() |
| | | public static void Refresh () |
| | | { |
| | | if (null == Newtonsoft.Json.JsonConvert.DeserializeObject<List<string>> (Encoding.UTF8.GetString (IO.FileUtils.ReadFile (GlobalSceneFilePath)))) { |
| | | //初始化房间列表 |
| | |
| | | { |
| | | this.Type = DeviceType.Scene; |
| | | DeviceTextID = SimpleControl.R.MyInternationalizationString.Scenes; |
| | | |
| | | if (string.IsNullOrEmpty (SceneID)) { |
| | | SceneID = Guid.NewGuid ().ToString (); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 场景唯一ID |
| | | /// </summary> |
| | | public string SceneID = ""; |
| | | |
| | | /// <summary> |
| | | /// 场景小图标 |
| | |
| | | //var ssfsdf = IO.FileUtils.ReadFile ("GlobalScene_busScene"); |
| | | //var cp = CommonPage.MyEncodingUTF8.GetString (ssfsdf); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |