You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
WebCAD/.vscode/CADFiler.code-snippets

25 lines
741 B

{
"CAD文件序列化": {
"prefix": "file",
"body": [
" //#region -------------------------File-------------------------",
"",
" //对象从文件中读取数据,初始化自身",
" ReadFile(file: CADFiler)",
" {",
" let ver = file.Read();",
" }",
" //对象将自身数据写入到文件.",
" WriteFile(file: CADFiler)",
" {",
" file.Write(1);",
" }",
" //局部撤销",
" ApplyPartialUndo(undoData: CADObject)",
" {",
" }",
" //#endregion"
]
},
}