From 0f6b72e77c67912810c308987f87986871e97640 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期二, 15 十二月 2020 09:53:47 +0800 Subject: [PATCH] 20201215-2 --- HDL_ON/Entity/Function/Scene.cs | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/HDL_ON/Entity/Function/Scene.cs b/HDL_ON/Entity/Function/Scene.cs index 67d0c57..3983d39 100644 --- a/HDL_ON/Entity/Function/Scene.cs +++ b/HDL_ON/Entity/Function/Scene.cs @@ -256,6 +256,19 @@ MainPage.Log($"Save Scene Data : {savePath}"); } } + /// <summary> + /// 娣诲姞鍦烘櫙 + /// </summary> + public void AddScene() + { + var pm = new HttpServerRequest(); + var revPack = pm.AddScene(this); + if (revPack.Code == StateCode.SUCCESS) + { + var ssd = System.Text.Encoding.UTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(this)); + Common.FileUtlis.Files.WriteFileByBytes(savePath, ssd); + } + } /// <summary> /// 涓婁紶鏁版嵁鍒颁簯绔� -- Gitblit v1.8.0