summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-15 12:17:31 +0800
committerchai <chaifix@163.com>2021-11-15 12:17:31 +0800
commit02c9923dc4d796bdc002215aa33e765f1fc03bea (patch)
treec9d89d11bb3c1c5ce6aae51d0dbc7864ad519618
parent30f2f46474bf4eda5f10d4c64a07cde01d469f66 (diff)
*rename
-rw-r--r--Data/BuiltIn/Libraries/GameLab/Engine/GUI/init.lua2
-rw-r--r--Data/BuiltIn/Libraries/GameLab/Engine/Math/init.lua2
-rw-r--r--Data/BuiltIn/Libraries/GameLab/Engine/Rendering/init.lua2
-rw-r--r--Data/BuiltIn/Libraries/GameLab/Engine/Resource/init.lua2
-rw-r--r--Data/BuiltIn/Libraries/GameLab/Engine/init.lua2
-rw-r--r--Data/BuiltIn/Libraries/GameLab/EventListener.lua51
-rw-r--r--Data/BuiltIn/Libraries/GameLab/Events/init.lua2
-rw-r--r--Data/BuiltIn/Libraries/GameLab/GlobalTable.lua6
-rw-r--r--Data/BuiltIn/Libraries/GameLab/init.lua19
-rw-r--r--Data/BuiltIn/Libraries/easing.lua433
-rw-r--r--Data/Libraries/GameLab/Editor/Window/init.lua2
-rw-r--r--Data/Libraries/GameLab/Editor/init.lua2
-rw-r--r--Data/boot.lua6
-rw-r--r--Data/readme.txt2
14 files changed, 511 insertions, 22 deletions
diff --git a/Data/BuiltIn/Libraries/GameLab/Engine/GUI/init.lua b/Data/BuiltIn/Libraries/GameLab/Engine/GUI/init.lua
index b77a695..6667847 100644
--- a/Data/BuiltIn/Libraries/GameLab/Engine/GUI/init.lua
+++ b/Data/BuiltIn/Libraries/GameLab/Engine/GUI/init.lua
@@ -1,5 +1,5 @@
local GUI = GameLab.Package("GameLab.Engine.GUI")
-local import = GameLab.import(...)
+local import = GameLab.Import(...)
import("imgui")
diff --git a/Data/BuiltIn/Libraries/GameLab/Engine/Math/init.lua b/Data/BuiltIn/Libraries/GameLab/Engine/Math/init.lua
index 4180e5f..5997f7d 100644
--- a/Data/BuiltIn/Libraries/GameLab/Engine/Math/init.lua
+++ b/Data/BuiltIn/Libraries/GameLab/Engine/Math/init.lua
@@ -1,6 +1,6 @@
local math = GameLab.Package("GameLab.Engine.Math")
-local import = GameLab.import(...)
+local import = GameLab.Import(...)
import("Math")
import("Vector2")
diff --git a/Data/BuiltIn/Libraries/GameLab/Engine/Rendering/init.lua b/Data/BuiltIn/Libraries/GameLab/Engine/Rendering/init.lua
index a5b277f..68441ab 100644
--- a/Data/BuiltIn/Libraries/GameLab/Engine/Rendering/init.lua
+++ b/Data/BuiltIn/Libraries/GameLab/Engine/Rendering/init.lua
@@ -1,6 +1,6 @@
local m = GameLab.Package("GameLab.Engine.Rendering")
-local import = GameLab.import(...)
+local import = GameLab.Import(...)
local Shader = GameLab.Engine.Rendering.Shader
diff --git a/Data/BuiltIn/Libraries/GameLab/Engine/Resource/init.lua b/Data/BuiltIn/Libraries/GameLab/Engine/Resource/init.lua
index 2b7d0ef..feff63f 100644
--- a/Data/BuiltIn/Libraries/GameLab/Engine/Resource/init.lua
+++ b/Data/BuiltIn/Libraries/GameLab/Engine/Resource/init.lua
@@ -1,5 +1,5 @@
local m = GameLab.Package("GameLab.Engine.Resource")
-local import = GameLab.import(...)
+local import = GameLab.Import(...)
----------------------------------------------------------------------------------
-- native classes
diff --git a/Data/BuiltIn/Libraries/GameLab/Engine/init.lua b/Data/BuiltIn/Libraries/GameLab/Engine/init.lua
index fe1347c..ac0073a 100644
--- a/Data/BuiltIn/Libraries/GameLab/Engine/init.lua
+++ b/Data/BuiltIn/Libraries/GameLab/Engine/init.lua
@@ -1,4 +1,4 @@
local engine = GameLab.Package("GameLab.Engine")
-local import = GameLab.import(...)
+local import = GameLab.Import(...)
return engine \ No newline at end of file
diff --git a/Data/BuiltIn/Libraries/GameLab/EventListener.lua b/Data/BuiltIn/Libraries/GameLab/EventListener.lua
new file mode 100644
index 0000000..9186cb2
--- /dev/null
+++ b/Data/BuiltIn/Libraries/GameLab/EventListener.lua
@@ -0,0 +1,51 @@
+local EventHandler = GameLab.Class("", function(self, event, fn, processor)
+ self.event = event
+ self.fn = fn
+ self.processor = processor
+end)
+
+function EventHandler:Remove()
+ self.processor:RemoveHandler(self)
+end
+
+------------------------
+
+local EventListener = GameLab.GlobalClass("GameLab.EventListener", function(self)
+ self.events = {}
+end)
+
+function EventListener:AddEventHandler(event, fn)
+ local handler = EventHandler(event, fn, self)
+
+ if self.events[event] == nil then
+ self.events[event] = {}
+ end
+
+ self.events[event][handler] = true
+
+ return handler
+end
+
+function EventListener:RemoveHandler(handler)
+ if handler then
+ local ev = self.events[handler.event]
+ if ev then
+ ev[handler] = nil
+ end
+ end
+end
+
+function EventListener:GetHandlersForEvent(event)
+ return self.events[event] or {}
+end
+
+function EventListener:HandleEvent(event, ...)
+ local handlers = self.events[event]
+ if handlers then
+ for k,v in pairs(handlers) do
+ k.fn(...)
+ end
+ end
+end
+
+return EventListener \ No newline at end of file
diff --git a/Data/BuiltIn/Libraries/GameLab/Events/init.lua b/Data/BuiltIn/Libraries/GameLab/Events/init.lua
index f84dba6..7bfb648 100644
--- a/Data/BuiltIn/Libraries/GameLab/Events/init.lua
+++ b/Data/BuiltIn/Libraries/GameLab/Events/init.lua
@@ -1,5 +1,5 @@
local Events = GameLab.Package("GameLab.Events")
-local import = GameLab.import(...)
+local import = GameLab.Import(...)
import("Event")
diff --git a/Data/BuiltIn/Libraries/GameLab/GlobalTable.lua b/Data/BuiltIn/Libraries/GameLab/GlobalTable.lua
index 4e6e1fb..48f7f63 100644
--- a/Data/BuiltIn/Libraries/GameLab/GlobalTable.lua
+++ b/Data/BuiltIn/Libraries/GameLab/GlobalTable.lua
@@ -1,4 +1,4 @@
-local GlobalTable = function(name)
+local global_table = function(name)
local tb = {}
local short = string.match(name, "%.*(%w+)$")
@@ -12,4 +12,6 @@ local GlobalTable = function(name)
return tb
end
-return GlobalTable \ No newline at end of file
+GameLab.GlobalTable = global_table
+
+return global_table \ No newline at end of file
diff --git a/Data/BuiltIn/Libraries/GameLab/init.lua b/Data/BuiltIn/Libraries/GameLab/init.lua
index 1c86c3d..204fee9 100644
--- a/Data/BuiltIn/Libraries/GameLab/init.lua
+++ b/Data/BuiltIn/Libraries/GameLab/init.lua
@@ -2,7 +2,7 @@ GameLab = GameLab or {}
-- methods
-- 用于模块的init.lua中加载模块内的脚本
-GameLab.import = function(packageName)
+GameLab.Import = function(packageName)
local _import = function(path)
local name = packageName .. "." .. path
local m = require(name)
@@ -22,12 +22,15 @@ GameLab.find = function(fullName)
return require(fullName)
end
-GameLab.Package = require("GameLab.Package")
-GameLab.Class = require("GameLab.Class")
-GameLab.GlobalClass = require("GameLab.GlobalClass")
-GameLab.Enum = require("GameLab.Enum")
-GameLab.GlobalEnum = require("GameLab.GlobalEnum")
-GameLab.GlobalTable = require("GameLab.GlobalTable")
-GameLab.Delegate = require("GameLab.Delegate")
+local import = GameLab.Import(...)
+
+import("Package")
+import("Class")
+import("GlobalClass")
+import("Enum")
+import("GlobalEnum")
+import("GlobalTable")
+import("Delegate")
+import("EventListener")
return GameLab \ No newline at end of file
diff --git a/Data/BuiltIn/Libraries/easing.lua b/Data/BuiltIn/Libraries/easing.lua
new file mode 100644
index 0000000..8bb7e17
--- /dev/null
+++ b/Data/BuiltIn/Libraries/easing.lua
@@ -0,0 +1,433 @@
+--
+-- Adapted from
+-- Tweener's easing functions (Penner's Easing Equations)
+-- and http://code.google.com/p/tweener/ (jstweener javascript version)
+--
+
+--[[
+Disclaimer for Robert Penner's Easing Equations license:
+
+TERMS OF USE - EASING EQUATIONS
+
+Open source under the BSD License.
+
+Copyright 2001 Robert Penner
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ * Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+]]
+
+-- For all easing functions:
+-- t = elapsed time
+-- b = begin
+-- c = change == ending - beginning
+-- d = duration (total time)
+
+local pow = math.pow
+local sin = math.sin
+local cos = math.cos
+local pi = math.pi
+local sqrt = math.sqrt
+local abs = math.abs
+local asin = math.asin
+
+local function linear(t, b, c, d)
+ return c * t / d + b
+end
+
+local function inQuad(t, b, c, d)
+ t = t / d
+ return c * pow(t, 2) + b
+end
+
+local function outQuad(t, b, c, d)
+ t = t / d
+ return -c * t * (t - 2) + b
+end
+
+local function inOutQuad(t, b, c, d)
+ t = t / d * 2
+ if t < 1 then
+ return c / 2 * pow(t, 2) + b
+ else
+ return -c / 2 * ((t - 1) * (t - 3) - 1) + b
+ end
+end
+
+local function outInQuad(t, b, c, d)
+ if t < d / 2 then
+ return outQuad (t * 2, b, c / 2, d)
+ else
+ return inQuad((t * 2) - d, b + c / 2, c / 2, d)
+ end
+end
+
+local function inCubic (t, b, c, d)
+ t = t / d
+ return c * pow(t, 3) + b
+end
+
+local function outCubic(t, b, c, d)
+ t = t / d - 1
+ return c * (pow(t, 3) + 1) + b
+end
+
+local function inOutCubic(t, b, c, d)
+ t = t / d * 2
+ if t < 1 then
+ return c / 2 * t * t * t + b
+ else
+ t = t - 2
+ return c / 2 * (t * t * t + 2) + b
+ end
+end
+
+local function outInCubic(t, b, c, d)
+ if t < d / 2 then
+ return outCubic(t * 2, b, c / 2, d)
+ else
+ return inCubic((t * 2) - d, b + c / 2, c / 2, d)
+ end
+end
+
+local function inQuart(t, b, c, d)
+ t = t / d
+ return c * pow(t, 4) + b
+end
+
+local function outQuart(t, b, c, d)
+ t = t / d - 1
+ return -c * (pow(t, 4) - 1) + b
+end
+
+local function inOutQuart(t, b, c, d)
+ t = t / d * 2
+ if t < 1 then
+ return c / 2 * pow(t, 4) + b
+ else
+ t = t - 2
+ return -c / 2 * (pow(t, 4) - 2) + b
+ end
+end
+
+local function outInQuart(t, b, c, d)
+ if t < d / 2 then
+ return outQuart(t * 2, b, c / 2, d)
+ else
+ return inQuart((t * 2) - d, b + c / 2, c / 2, d)
+ end
+end
+
+local function inQuint(t, b, c, d)
+ t = t / d
+ return c * pow(t, 5) + b
+end
+
+local function outQuint(t, b, c, d)
+ t = t / d - 1
+ return c * (pow(t, 5) + 1) + b
+end
+
+local function inOutQuint(t, b, c, d)
+ t = t / d * 2
+ if t < 1 then
+ return c / 2 * pow(t, 5) + b
+ else
+ t = t - 2
+ return c / 2 * (pow(t, 5) + 2) + b
+ end
+end
+
+local function outInQuint(t, b, c, d)
+ if t < d / 2 then
+ return outQuint(t * 2, b, c / 2, d)
+ else
+ return inQuint((t * 2) - d, b + c / 2, c / 2, d)
+ end
+end
+
+local function inSine(t, b, c, d)
+ return -c * cos(t / d * (pi / 2)) + c + b
+end
+
+local function outSine(t, b, c, d)
+ return c * sin(t / d * (pi / 2)) + b
+end
+
+local function inOutSine(t, b, c, d)
+ return -c / 2 * (cos(pi * t / d) - 1) + b
+end
+
+local function outInSine(t, b, c, d)
+ if t < d / 2 then
+ return outSine(t * 2, b, c / 2, d)
+ else
+ return inSine((t * 2) -d, b + c / 2, c / 2, d)
+ end
+end
+
+local function inExpo(t, b, c, d)
+ if t == 0 then
+ return b
+ else
+ return c * pow(2, 10 * (t / d - 1)) + b - c * 0.001
+ end
+end
+
+local function outExpo(t, b, c, d)
+ if t == d then
+ return b + c
+ else
+ return c * 1.001 * (-pow(2, -10 * t / d) + 1) + b
+ end
+end
+
+local function inOutExpo(t, b, c, d)
+ if t == 0 then return b end
+ if t == d then return b + c end
+ t = t / d * 2
+ if t < 1 then
+ return c / 2 * pow(2, 10 * (t - 1)) + b - c * 0.0005
+ else
+ t = t - 1
+ return c / 2 * 1.0005 * (-pow(2, -10 * t) + 2) + b
+ end
+end
+
+local function outInExpo(t, b, c, d)
+ if t < d / 2 then
+ return outExpo(t * 2, b, c / 2, d)
+ else
+ return inExpo((t * 2) - d, b + c / 2, c / 2, d)
+ end
+end
+
+local function inCirc(t, b, c, d)
+ t = t / d
+ return(-c * (sqrt(1 - pow(t, 2)) - 1) + b)
+end
+
+local function outCirc(t, b, c, d)
+ t = t / d - 1
+ return(c * sqrt(1 - pow(t, 2)) + b)
+end
+
+local function inOutCirc(t, b, c, d)
+ t = t / d * 2
+ if t < 1 then
+ return -c / 2 * (sqrt(1 - t * t) - 1) + b
+ else
+ t = t - 2
+ return c / 2 * (sqrt(1 - t * t) + 1) + b
+ end
+end
+
+local function outInCirc(t, b, c, d)
+ if t < d / 2 then
+ return outCirc(t * 2, b, c / 2, d)
+ else
+ return inCirc((t * 2) - d, b + c / 2, c / 2, d)
+ end
+end
+
+local function inElastic(t, b, c, d, a, p)
+ if t == 0 then return b end
+
+ t = t / d
+
+ if t == 1 then return b + c end
+
+ if not p then p = d * 0.3 end
+
+ local s
+
+ if not a or a < abs(c) then
+ a = c
+ s = p / 4
+ else
+ s = p / (2 * pi) * asin(c/a)
+ end
+
+ t = t - 1
+
+ return -(a * pow(2, 10 * t) * sin((t * d - s) * (2 * pi) / p)) + b
+end
+
+-- a: amplitud
+-- p: period
+local function outElastic(t, b, c, d, a, p)
+ if t == 0 then return b end
+
+ t = t / d
+
+ if t == 1 then return b + c end
+
+ if not p then p = d * 0.3 end
+
+ local s
+
+ if not a or a < abs(c) then
+ a = c
+ s = p / 4
+ else
+ s = p / (2 * pi) * asin(c/a)
+ end
+
+ return a * pow(2, -10 * t) * sin((t * d - s) * (2 * pi) / p) + c + b
+end
+
+-- p = period
+-- a = amplitud
+local function inOutElastic(t, b, c, d, a, p)
+ if t == 0 then return b end
+
+ t = t / d * 2
+
+ if t == 2 then return b + c end
+
+ if not p then p = d * (0.3 * 1.5) end
+ if not a then a = 0 end
+
+ if not a or a < abs(c) then
+ a = c
+ s = p / 4
+ else
+ s = p / (2 * pi) * asin(c / a)
+ end
+
+ if t < 1 then
+ t = t - 1
+ return -0.5 * (a * pow(2, 10 * t) * sin((t * d - s) * (2 * pi) / p)) + b
+ else
+ t = t - 1
+ return a * pow(2, -10 * t) * sin((t * d - s) * (2 * pi) / p ) * 0.5 + c + b
+ end
+end
+
+-- a: amplitud
+-- p: period
+local function outInElastic(t, b, c, d, a, p)
+ if t < d / 2 then
+ return outElastic(t * 2, b, c / 2, d, a, p)
+ else
+ return inElastic((t * 2) - d, b + c / 2, c / 2, d, a, p)
+ end
+end
+
+local function inBack(t, b, c, d, s)
+ if not s then s = 1.70158 end
+ t = t / d
+ return c * t * t * ((s + 1) * t - s) + b
+end
+
+local function outBack(t, b, c, d, s)
+ if not s then s = 1.70158 end
+ t = t / d - 1
+ return c * (t * t * ((s + 1) * t + s) + 1) + b
+end
+
+local function inOutBack(t, b, c, d, s)
+ if not s then s = 1.70158 end
+ s = s * 1.525
+ t = t / d * 2
+ if t < 1 then
+ return c / 2 * (t * t * ((s + 1) * t - s)) + b
+ else
+ t = t - 2
+ return c / 2 * (t * t * ((s + 1) * t + s) + 2) + b
+ end
+end
+
+local function outInBack(t, b, c, d, s)
+ if t < d / 2 then
+ return outBack(t * 2, b, c / 2, d, s)
+ else
+ return inBack((t * 2) - d, b + c / 2, c / 2, d, s)
+ end
+end
+
+local function outBounce(t, b, c, d)
+ t = t / d
+ if t < 1 / 2.75 then
+ return c * (7.5625 * t * t) + b
+ elseif t < 2 / 2.75 then
+ t = t - (1.5 / 2.75)
+ return c * (7.5625 * t * t + 0.75) + b
+ elseif t < 2.5 / 2.75 then
+ t = t - (2.25 / 2.75)
+ return c * (7.5625 * t * t + 0.9375) + b
+ else
+ t = t - (2.625 / 2.75)
+ return c * (7.5625 * t * t + 0.984375) + b
+ end
+end
+
+local function inBounce(t, b, c, d)
+ return c - outBounce(d - t, 0, c, d) + b
+end
+
+local function inOutBounce(t, b, c, d)
+ if t < d / 2 then
+ return inBounce(t * 2, 0, c, d) * 0.5 + b
+ else
+ return outBounce(t * 2 - d, 0, c, d) * 0.5 + c * .5 + b
+ end
+end
+
+local function outInBounce(t, b, c, d)
+ if t < d / 2 then
+ return outBounce(t * 2, b, c / 2, d)
+ else
+ return inBounce((t * 2) - d, b + c / 2, c / 2, d)
+ end
+end
+
+return {
+ linear = linear,
+ inQuad = inQuad,
+ outQuad = outQuad,
+ inOutQuad = inOutQuad,
+ outInQuad = outInQuad,
+ inCubic = inCubic ,
+ outCubic = outCubic,
+ inOutCubic = inOutCubic,
+ outInCubic = outInCubic,
+ inQuart = inQuart,
+ outQuart = outQuart,
+ inOutQuart = inOutQuart,
+ outInQuart = outInQuart,
+ inQuint = inQuint,
+ outQuint = outQuint,
+ inOutQuint = inOutQuint,
+ outInQuint = outInQuint,
+ inSine = inSine,
+ outSine = outSine,
+ inOutSine = inOutSine,
+ outInSine = outInSine,
+ inExpo = inExpo,
+ outExpo = outExpo,
+ inOutExpo = inOutExpo,
+ outInExpo = outInExpo,
+ inCirc = inCirc,
+ outCirc = outCirc,
+ inOutCirc = inOutCirc,
+ outInCirc = outInCirc,
+ inElastic = inElastic,
+ outElastic = outElastic,
+ inOutElastic = inOutElastic,
+ outInElastic = outInElastic,
+ inBack = inBack,
+ outBack = outBack,
+ inOutBack = inOutBack,
+ outInBack = outInBack,
+ inBounce = inBounce,
+ outBounce = outBounce,
+ inOutBounce = inOutBounce,
+ outInBounce = outInBounce,
+} \ No newline at end of file
diff --git a/Data/Libraries/GameLab/Editor/Window/init.lua b/Data/Libraries/GameLab/Editor/Window/init.lua
index 6d526e9..238dc1b 100644
--- a/Data/Libraries/GameLab/Editor/Window/init.lua
+++ b/Data/Libraries/GameLab/Editor/Window/init.lua
@@ -1,5 +1,5 @@
local m = GameLab.Package("GameLab.Editor.Window")
-local import = GameLab.import(...)
+local import = GameLab.Import(...)
import("ContainerWindow")
import("GUIWindow")
diff --git a/Data/Libraries/GameLab/Editor/init.lua b/Data/Libraries/GameLab/Editor/init.lua
index 8ddf079..b33a9e1 100644
--- a/Data/Libraries/GameLab/Editor/init.lua
+++ b/Data/Libraries/GameLab/Editor/init.lua
@@ -1,5 +1,5 @@
local m = GameLab.Package("GameLab.Editor")
-local import = GameLab.import(...)
+local import = GameLab.Import(...)
m.AssetManager = import("AssetManager")
m.EditorWindow = import("EditorWindow")
diff --git a/Data/boot.lua b/Data/boot.lua
index 091aff0..4b931aa 100644
--- a/Data/boot.lua
+++ b/Data/boot.lua
@@ -1,12 +1,12 @@
-- 模块搜索目录
-local engineLuaLibs = "./DefaultContent/Libraries/?.lua" .. ";./DefaultContent/Libraries/?/init.lua" .. ";./DefaultContent/Libraries/?/?.lua" .. ";./DefaultContent/Libraries/?/?" ..
- ";./DefaultContent/Plugins/?.lua" .. ";./DefaultContent/Plugins/?/init.lua" .. ";./DefaultContent/Plugins/?/?.lua" .. ";./DefaultContent/Plugins/?/?"
+local engineLuaLibs = "./BuiltIn/Libraries/?.lua" .. ";./BuiltIn/Libraries/?/init.lua" .. ";./BuiltIn/Libraries/?/?.lua" .. ";./BuiltIn/Libraries/?/?" ..
+ ";./BuiltIn/Plugins/?.lua" .. ";./BuiltIn/Plugins/?/init.lua" .. ";./BuiltIn/Plugins/?/?.lua" .. ";./BuiltIn/Plugins/?/?"
local editorLuaLibs = "./Libraries/?.lua" .. ";./Libraries/?/init.lua" .. ";./Libraries/?/?.lua" .. ";./Libraries/?/?" ..
";./Plugins/?.lua" .. ";./Plugins/?/init.lua" .. ";./Plugins/?/?.lua" .. ";./Plugins/?/?"
local editorScripts = "./Scripts/?.lua"
package.path=package.path .. ";" .. editorScripts .. ";" .. engineLuaLibs .. ";" .. editorLuaLibs
-local engineCLibs = "./DefaultContent/Libraries/?.dll" .. ";./DefaultContent/Plugins/?.dll"
+local engineCLibs = "./BuiltIn/Libraries/?.dll" .. ";./BuiltIn/Plugins/?.dll"
local editorCLibs = "./Libraries/?.dll" .. "./Plugins/?.dll"
package.cpath=package.cpath .. ";" .. engineCLibs .. ";" .. editorCLibs
diff --git a/Data/readme.txt b/Data/readme.txt
index f45359b..6d9e026 100644
--- a/Data/readme.txt
+++ b/Data/readme.txt
@@ -1,5 +1,5 @@
编辑器资源
-* DefaultContent 运行时相关的脚本和资源
+* BuiltIn 运行时相关的脚本和资源
* Icon 图标文件
* Images 图片资源
* Libraries 编辑器用到的模块