From 41b0fc553e8101a025fa4f16d2f84c4c02a76e41 Mon Sep 17 00:00:00 2001 From: YouWei Zhao Date: Sun, 28 Apr 2019 09:54:56 -0400 Subject: [PATCH] editor_file fileMark --- _server/editor_file.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/_server/editor_file.js b/_server/editor_file.js index 6318ec23..fc4f167c 100644 --- a/_server/editor_file.js +++ b/_server/editor_file.js @@ -1,6 +1,14 @@ editor_file_wrapper = function (editor) { editor_file_proto = function () { - + /** + * 以 + * { + * "floor.MT1":true, + * "plugins":true + * } + * 的形式记录所有更改过的文件,save时写入 + */ + this.fileMark={} } // 这个函数之后挪到editor.table? @@ -90,5 +98,12 @@ editor_file_wrapper = function (editor) { }); } + editor_file_proto.prototype.save=function(callback){ + // 根据 editor.file.fileMark 把游戏对象格式化写入文件 + } + + editor_file_proto.prototype.saveItem=function(callback){ + + } } \ No newline at end of file