From c1330b1ea3525eec2d09b070167df563f3917ff9 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 22 Jan 2019 20:06:22 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E5=90=8D=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/Asura.Framework/path/path.lua | 13 +++++++++++++ Source/Asura.Framework/path/pathcalculator.lua | 12 ++++++++++++ Source/Asura.Framework/path/pathmanager.lua | 0 3 files changed, 25 insertions(+) create mode 100644 Source/Asura.Framework/path/path.lua create mode 100644 Source/Asura.Framework/path/pathcalculator.lua create mode 100644 Source/Asura.Framework/path/pathmanager.lua (limited to 'Source/Asura.Framework/path') diff --git a/Source/Asura.Framework/path/path.lua b/Source/Asura.Framework/path/path.lua new file mode 100644 index 0000000..3b6079d --- /dev/null +++ b/Source/Asura.Framework/path/path.lua @@ -0,0 +1,13 @@ +local Path = AsuraEngine.Asset.New("path") + +function Path:Ctor() + +end + +-- ToAsset方法把对象path转换为.asset文件格式 +function Path.ToAsset(path) + local builder = AsuraEngine.AssetBuilder.Get() + +end + +return Path \ No newline at end of file diff --git a/Source/Asura.Framework/path/pathcalculator.lua b/Source/Asura.Framework/path/pathcalculator.lua new file mode 100644 index 0000000..1a564b8 --- /dev/null +++ b/Source/Asura.Framework/path/pathcalculator.lua @@ -0,0 +1,12 @@ +--[[ +组件。组件会出现在编辑器的components列表中 +]] +local PathCalculator = AsuraEngine.Component.New("PathCalculator") + +PathCalculator.path = AsuraEngine.Asset.Type("path", "路径") + +function PathCalculator:ctor(path) + self.path = path +end + +return PathCalculator \ No newline at end of file diff --git a/Source/Asura.Framework/path/pathmanager.lua b/Source/Asura.Framework/path/pathmanager.lua new file mode 100644 index 0000000..e69de29 -- cgit v1.1-26-g67d0