ソースを参照

Put world-related stuff into world directory

Daniele Bartolini 12 年 前
コミット
f103482d6e

+ 19 - 10
engine/CMakeLists.txt

@@ -82,15 +82,11 @@ set (CROWN_INCLUDES
 	${CMAKE_SOURCE_DIR}/engine/audio
 	${CMAKE_SOURCE_DIR}/engine/compilers
 	${CMAKE_SOURCE_DIR}/engine/physics
+	${CMAKE_SOURCE_DIR}/engine/world
 )
 
 set (SRC
-	Camera.cpp
 	Device.cpp
-	World.cpp
-	Unit.cpp
-	SceneGraph.cpp
-	SceneGraphManager.cpp
 	RenderWorld.cpp
 	Mesh.cpp
 	Sprite.cpp
@@ -98,14 +94,9 @@ set (SRC
 )
 
 set (HEADERS
-	Camera.h
 	Config.h
 	Crown.h
 	Device.h
-	World.h
-	Unit.h
-	SceneGraph.h
-	SceneGraphManager.h
 	RenderWorld.h
 	Mesh.h
 	Sprite.h
@@ -394,6 +385,22 @@ set (PHYSICS_HEADERS
 	physics/Controller.cpp
 )
 
+set (WORLD_SRC
+	world/Camera.cpp
+	world/SceneGraph.cpp
+	world/SceneGraphManager.cpp
+	world/Unit.cpp
+	world/World.cpp
+)
+
+set (WORLD_HEADERS
+	world/Camera.h
+	world/SceneGraph.h
+	world/SceneGraphManager.h
+	world/Unit.h
+	world/World.h
+)
+
 set (COMPILER_SRC
 	compilers/BundleCompiler.cpp
 )
@@ -589,6 +596,7 @@ set (CROWN_SOURCES
 	${LUA_SRC}
 	${AUDIO_SRC}
 	${PHYSICS_SRC}
+	${WORLD_SRC}
 	${COMPILER_SRC}
 )
 
@@ -610,6 +618,7 @@ set (CROWN_HEADERS
 	${LUA_HEADERS}
 	${AUDIO_HEADERS}
 	${PHYSICS_HEADERS}
+	${WORLD_HEADERS}
 	${COMPILER_HEADERS}
 )
 

+ 0 - 0
engine/Camera.cpp → engine/world/Camera.cpp


+ 0 - 0
engine/Camera.h → engine/world/Camera.h


+ 0 - 0
engine/SceneGraph.cpp → engine/world/SceneGraph.cpp


+ 0 - 0
engine/SceneGraph.h → engine/world/SceneGraph.h


+ 0 - 0
engine/SceneGraphManager.cpp → engine/world/SceneGraphManager.cpp


+ 0 - 0
engine/SceneGraphManager.h → engine/world/SceneGraphManager.h


+ 0 - 0
engine/Unit.cpp → engine/world/Unit.cpp


+ 0 - 0
engine/Unit.h → engine/world/Unit.h


+ 0 - 0
engine/World.cpp → engine/world/World.cpp


+ 0 - 0
engine/World.h → engine/world/World.h