summaryrefslogtreecommitdiff
path: root/Source/Asura.Framework/scripts/scene.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Asura.Framework/scripts/scene.lua')
-rw-r--r--Source/Asura.Framework/scripts/scene.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/Source/Asura.Framework/scripts/scene.lua b/Source/Asura.Framework/scripts/scene.lua
new file mode 100644
index 0000000..c0eaaa8
--- /dev/null
+++ b/Source/Asura.Framework/scripts/scene.lua
@@ -0,0 +1,21 @@
+--
+-- Scene是一系列gameobject的集合。
+--
+AsuraEngine.Scene = AsuraEngine.Asset.Sub("Scene")
+
+local Scene = AsuraEngine.Scene
+
+function Scene.Ctor(self)
+ self.rootGameObjects = {} --当前场景的所有root gameobject
+end
+
+--获取当前的场景
+function Scene.GetCurrent()
+
+end
+
+function Scene.ToAsset()
+
+end
+
+return Scene \ No newline at end of file