Bläddra i källkod

Merge branch 'master' of github.com:taylor001/crown

Daniele Bartolini 10 år sedan
förälder
incheckning
7a5303d8b6
100 ändrade filer med 33 tillägg och 33 borttagningar
  1. 22 22
      genie/crown.lua
  2. 0 0
      src/audio/audio.h
  3. 0 0
      src/audio/sound_world.h
  4. 0 0
      src/audio/sound_world_al.cpp
  5. 0 0
      src/audio/sound_world_null.cpp
  6. 0 0
      src/audio/sound_world_sles.cpp
  7. 0 0
      src/compilers/bundle_compiler.cpp
  8. 0 0
      src/compilers/bundle_compiler.h
  9. 0 0
      src/compilers/compile_options.h
  10. 0 0
      src/compilers/compiler_types.h
  11. 0 0
      src/config.h
  12. 0 0
      src/console_server.cpp
  13. 11 11
      src/console_server.h
  14. 0 0
      src/core/command_line.h
  15. 0 0
      src/core/compat/msvc/alloca.h
  16. 0 0
      src/core/compat/msvc/inttypes.h
  17. 0 0
      src/core/containers/array.h
  18. 0 0
      src/core/containers/blob.h
  19. 0 0
      src/core/containers/container_types.h
  20. 0 0
      src/core/containers/dynamic_blob.h
  21. 0 0
      src/core/containers/event_stream.h
  22. 0 0
      src/core/containers/hash.h
  23. 0 0
      src/core/containers/id_array.h
  24. 0 0
      src/core/containers/id_table.h
  25. 0 0
      src/core/containers/map.h
  26. 0 0
      src/core/containers/priority_queue.h
  27. 0 0
      src/core/containers/queue.h
  28. 0 0
      src/core/containers/sort_map.h
  29. 0 0
      src/core/containers/vector.h
  30. 0 0
      src/core/error.cpp
  31. 0 0
      src/core/error.h
  32. 0 0
      src/core/filesystem/apk_file.cpp
  33. 0 0
      src/core/filesystem/apk_file.h
  34. 0 0
      src/core/filesystem/apk_filesystem.cpp
  35. 0 0
      src/core/filesystem/apk_filesystem.h
  36. 0 0
      src/core/filesystem/disk_file.cpp
  37. 0 0
      src/core/filesystem/disk_file.h
  38. 0 0
      src/core/filesystem/disk_filesystem.cpp
  39. 0 0
      src/core/filesystem/disk_filesystem.h
  40. 0 0
      src/core/filesystem/file.h
  41. 0 0
      src/core/filesystem/filesystem.h
  42. 0 0
      src/core/filesystem/filesystem_types.h
  43. 0 0
      src/core/filesystem/network_file.cpp
  44. 0 0
      src/core/filesystem/network_file.h
  45. 0 0
      src/core/filesystem/network_filesystem.cpp
  46. 0 0
      src/core/filesystem/network_filesystem.h
  47. 0 0
      src/core/filesystem/null_file.h
  48. 0 0
      src/core/filesystem/os_file.h
  49. 0 0
      src/core/filesystem/reader_writer.h
  50. 0 0
      src/core/functional.h
  51. 0 0
      src/core/json/json.cpp
  52. 0 0
      src/core/json/json.h
  53. 0 0
      src/core/json/json_parser.cpp
  54. 0 0
      src/core/json/json_parser.h
  55. 0 0
      src/core/json/njson.cpp
  56. 0 0
      src/core/json/njson.h
  57. 0 0
      src/core/log.cpp
  58. 0 0
      src/core/log.h
  59. 0 0
      src/core/macros.h
  60. 0 0
      src/core/math/aabb.h
  61. 0 0
      src/core/math/color4.cpp
  62. 0 0
      src/core/math/color4.h
  63. 0 0
      src/core/math/frustum.h
  64. 0 0
      src/core/math/intersection.cpp
  65. 0 0
      src/core/math/intersection.h
  66. 0 0
      src/core/math/math_types.h
  67. 0 0
      src/core/math/math_utils.h
  68. 0 0
      src/core/math/matrix3x3.h
  69. 0 0
      src/core/math/matrix4x4.h
  70. 0 0
      src/core/math/plane.h
  71. 0 0
      src/core/math/quaternion.h
  72. 0 0
      src/core/math/random.h
  73. 0 0
      src/core/math/sphere.h
  74. 0 0
      src/core/math/vector2.h
  75. 0 0
      src/core/math/vector3.h
  76. 0 0
      src/core/math/vector4.h
  77. 0 0
      src/core/memory/allocator.h
  78. 0 0
      src/core/memory/linear_allocator.cpp
  79. 0 0
      src/core/memory/linear_allocator.h
  80. 0 0
      src/core/memory/memory.cpp
  81. 0 0
      src/core/memory/memory.h
  82. 0 0
      src/core/memory/memory_types.h
  83. 0 0
      src/core/memory/pool_allocator.cpp
  84. 0 0
      src/core/memory/pool_allocator.h
  85. 0 0
      src/core/memory/proxy_allocator.cpp
  86. 0 0
      src/core/memory/proxy_allocator.h
  87. 0 0
      src/core/memory/stack_allocator.cpp
  88. 0 0
      src/core/memory/stack_allocator.h
  89. 0 0
      src/core/memory/temp_allocator.h
  90. 0 0
      src/core/murmur.cpp
  91. 0 0
      src/core/murmur.h
  92. 0 0
      src/core/network/net_address.h
  93. 0 0
      src/core/network/socket.h
  94. 0 0
      src/core/os.h
  95. 0 0
      src/core/os_event_queue.h
  96. 0 0
      src/core/os_window_android.cpp
  97. 0 0
      src/core/os_window_android.h
  98. 0 0
      src/core/os_window_linux.cpp
  99. 0 0
      src/core/os_window_linux.h
  100. 0 0
      src/core/os_window_windows.cpp

+ 22 - 22
genie/crown.lua

@@ -9,26 +9,26 @@ function crown_project(_name, _kind, _defines)
 		kind (_kind)
 
 		includedirs {
-			CROWN_DIR .. "engine",
-			CROWN_DIR .. "engine/core",
-			CROWN_DIR .. "engine/core/containers",
-			CROWN_DIR .. "engine/core/filesystem",
-			CROWN_DIR .. "engine/core/json",
-			CROWN_DIR .. "engine/core/math",
-			CROWN_DIR .. "engine/core/memory",
-			CROWN_DIR .. "engine/core/network",
-			CROWN_DIR .. "engine/core/settings",
-			CROWN_DIR .. "engine/core/strings",
-			CROWN_DIR .. "engine/core/thread",
-			CROWN_DIR .. "engine/main",
-			CROWN_DIR .. "engine/input",
-			CROWN_DIR .. "engine/renderers",
-			CROWN_DIR .. "engine/resource",
-			CROWN_DIR .. "engine/lua",
-			CROWN_DIR .. "engine/audio",
-			CROWN_DIR .. "engine/compilers",
-			CROWN_DIR .. "engine/physics",
-			CROWN_DIR .. "engine/world",
+			CROWN_DIR .. "src",
+			CROWN_DIR .. "src/core",
+			CROWN_DIR .. "src/core/containers",
+			CROWN_DIR .. "src/core/filesystem",
+			CROWN_DIR .. "src/core/json",
+			CROWN_DIR .. "src/core/math",
+			CROWN_DIR .. "src/core/memory",
+			CROWN_DIR .. "src/core/network",
+			CROWN_DIR .. "src/core/settings",
+			CROWN_DIR .. "src/core/strings",
+			CROWN_DIR .. "src/core/thread",
+			CROWN_DIR .. "src/main",
+			CROWN_DIR .. "src/input",
+			CROWN_DIR .. "src/renderers",
+			CROWN_DIR .. "src/resource",
+			CROWN_DIR .. "src/lua",
+			CROWN_DIR .. "src/audio",
+			CROWN_DIR .. "src/compilers",
+			CROWN_DIR .. "src/physics",
+			CROWN_DIR .. "src/world",
 			CROWN_DIR .. "third/freetype",
 			CROWN_DIR .. "third/stb_image",
 			CROWN_DIR .. "third/stb_vorbis",
@@ -392,8 +392,8 @@ function crown_project(_name, _kind, _defines)
 		configuration {}
 
 		files {
-			CROWN_DIR .. "engine/**.h",
-			CROWN_DIR .. "engine/**.cpp"
+			CROWN_DIR .. "src/**.h",
+			CROWN_DIR .. "src/**.cpp"
 		}
 
 		strip()

+ 0 - 0
engine/audio/audio.h → src/audio/audio.h


+ 0 - 0
engine/audio/sound_world.h → src/audio/sound_world.h


+ 0 - 0
engine/audio/sound_world_al.cpp → src/audio/sound_world_al.cpp


+ 0 - 0
engine/audio/sound_world_null.cpp → src/audio/sound_world_null.cpp


+ 0 - 0
engine/audio/sound_world_sles.cpp → src/audio/sound_world_sles.cpp


+ 0 - 0
engine/compilers/bundle_compiler.cpp → src/compilers/bundle_compiler.cpp


+ 0 - 0
engine/compilers/bundle_compiler.h → src/compilers/bundle_compiler.h


+ 0 - 0
engine/compilers/compile_options.h → src/compilers/compile_options.h


+ 0 - 0
engine/compilers/compiler_types.h → src/compilers/compiler_types.h


+ 0 - 0
engine/config.h → src/config.h


+ 0 - 0
engine/console_server.cpp → src/console_server.cpp


+ 11 - 11
engine/console_server.h → src/console_server.h

@@ -12,17 +12,6 @@
 namespace crown
 {
 
-struct Client
-{
-	Id id;
-	TCPSocket socket;
-
-	void close()
-	{
-		socket.close();
-	}
-};
-
 class ConsoleServer
 {
 public:
@@ -56,6 +45,17 @@ private:
 
 	TCPSocket m_server;
 
+	struct Client
+	{
+		Id id;
+		TCPSocket socket;
+
+		void close()
+		{
+			socket.close();
+		}
+	};
+
 	typedef IdArray<CE_MAX_CONSOLE_CLIENTS, Client> ClientArray;
 	ClientArray m_clients;
 };

+ 0 - 0
engine/core/command_line.h → src/core/command_line.h


+ 0 - 0
engine/core/compat/msvc/alloca.h → src/core/compat/msvc/alloca.h


+ 0 - 0
engine/core/compat/msvc/inttypes.h → src/core/compat/msvc/inttypes.h


+ 0 - 0
engine/core/containers/array.h → src/core/containers/array.h


+ 0 - 0
engine/core/containers/blob.h → src/core/containers/blob.h


+ 0 - 0
engine/core/containers/container_types.h → src/core/containers/container_types.h


+ 0 - 0
engine/core/containers/dynamic_blob.h → src/core/containers/dynamic_blob.h


+ 0 - 0
engine/core/containers/event_stream.h → src/core/containers/event_stream.h


+ 0 - 0
engine/core/containers/hash.h → src/core/containers/hash.h


+ 0 - 0
engine/core/containers/id_array.h → src/core/containers/id_array.h


+ 0 - 0
engine/core/containers/id_table.h → src/core/containers/id_table.h


+ 0 - 0
engine/core/containers/map.h → src/core/containers/map.h


+ 0 - 0
engine/core/containers/priority_queue.h → src/core/containers/priority_queue.h


+ 0 - 0
engine/core/containers/queue.h → src/core/containers/queue.h


+ 0 - 0
engine/core/containers/sort_map.h → src/core/containers/sort_map.h


+ 0 - 0
engine/core/containers/vector.h → src/core/containers/vector.h


+ 0 - 0
engine/core/error.cpp → src/core/error.cpp


+ 0 - 0
engine/core/error.h → src/core/error.h


+ 0 - 0
engine/core/filesystem/apk_file.cpp → src/core/filesystem/apk_file.cpp


+ 0 - 0
engine/core/filesystem/apk_file.h → src/core/filesystem/apk_file.h


+ 0 - 0
engine/core/filesystem/apk_filesystem.cpp → src/core/filesystem/apk_filesystem.cpp


+ 0 - 0
engine/core/filesystem/apk_filesystem.h → src/core/filesystem/apk_filesystem.h


+ 0 - 0
engine/core/filesystem/disk_file.cpp → src/core/filesystem/disk_file.cpp


+ 0 - 0
engine/core/filesystem/disk_file.h → src/core/filesystem/disk_file.h


+ 0 - 0
engine/core/filesystem/disk_filesystem.cpp → src/core/filesystem/disk_filesystem.cpp


+ 0 - 0
engine/core/filesystem/disk_filesystem.h → src/core/filesystem/disk_filesystem.h


+ 0 - 0
engine/core/filesystem/file.h → src/core/filesystem/file.h


+ 0 - 0
engine/core/filesystem/filesystem.h → src/core/filesystem/filesystem.h


+ 0 - 0
engine/core/filesystem/filesystem_types.h → src/core/filesystem/filesystem_types.h


+ 0 - 0
engine/core/filesystem/network_file.cpp → src/core/filesystem/network_file.cpp


+ 0 - 0
engine/core/filesystem/network_file.h → src/core/filesystem/network_file.h


+ 0 - 0
engine/core/filesystem/network_filesystem.cpp → src/core/filesystem/network_filesystem.cpp


+ 0 - 0
engine/core/filesystem/network_filesystem.h → src/core/filesystem/network_filesystem.h


+ 0 - 0
engine/core/filesystem/null_file.h → src/core/filesystem/null_file.h


+ 0 - 0
engine/core/filesystem/os_file.h → src/core/filesystem/os_file.h


+ 0 - 0
engine/core/filesystem/reader_writer.h → src/core/filesystem/reader_writer.h


+ 0 - 0
engine/core/functional.h → src/core/functional.h


+ 0 - 0
engine/core/json/json.cpp → src/core/json/json.cpp


+ 0 - 0
engine/core/json/json.h → src/core/json/json.h


+ 0 - 0
engine/core/json/json_parser.cpp → src/core/json/json_parser.cpp


+ 0 - 0
engine/core/json/json_parser.h → src/core/json/json_parser.h


+ 0 - 0
engine/core/json/njson.cpp → src/core/json/njson.cpp


+ 0 - 0
engine/core/json/njson.h → src/core/json/njson.h


+ 0 - 0
engine/core/log.cpp → src/core/log.cpp


+ 0 - 0
engine/core/log.h → src/core/log.h


+ 0 - 0
engine/core/macros.h → src/core/macros.h


+ 0 - 0
engine/core/math/aabb.h → src/core/math/aabb.h


+ 0 - 0
engine/core/math/color4.cpp → src/core/math/color4.cpp


+ 0 - 0
engine/core/math/color4.h → src/core/math/color4.h


+ 0 - 0
engine/core/math/frustum.h → src/core/math/frustum.h


+ 0 - 0
engine/core/math/intersection.cpp → src/core/math/intersection.cpp


+ 0 - 0
engine/core/math/intersection.h → src/core/math/intersection.h


+ 0 - 0
engine/core/math/math_types.h → src/core/math/math_types.h


+ 0 - 0
engine/core/math/math_utils.h → src/core/math/math_utils.h


+ 0 - 0
engine/core/math/matrix3x3.h → src/core/math/matrix3x3.h


+ 0 - 0
engine/core/math/matrix4x4.h → src/core/math/matrix4x4.h


+ 0 - 0
engine/core/math/plane.h → src/core/math/plane.h


+ 0 - 0
engine/core/math/quaternion.h → src/core/math/quaternion.h


+ 0 - 0
engine/core/math/random.h → src/core/math/random.h


+ 0 - 0
engine/core/math/sphere.h → src/core/math/sphere.h


+ 0 - 0
engine/core/math/vector2.h → src/core/math/vector2.h


+ 0 - 0
engine/core/math/vector3.h → src/core/math/vector3.h


+ 0 - 0
engine/core/math/vector4.h → src/core/math/vector4.h


+ 0 - 0
engine/core/memory/allocator.h → src/core/memory/allocator.h


+ 0 - 0
engine/core/memory/linear_allocator.cpp → src/core/memory/linear_allocator.cpp


+ 0 - 0
engine/core/memory/linear_allocator.h → src/core/memory/linear_allocator.h


+ 0 - 0
engine/core/memory/memory.cpp → src/core/memory/memory.cpp


+ 0 - 0
engine/core/memory/memory.h → src/core/memory/memory.h


+ 0 - 0
engine/core/memory/memory_types.h → src/core/memory/memory_types.h


+ 0 - 0
engine/core/memory/pool_allocator.cpp → src/core/memory/pool_allocator.cpp


+ 0 - 0
engine/core/memory/pool_allocator.h → src/core/memory/pool_allocator.h


+ 0 - 0
engine/core/memory/proxy_allocator.cpp → src/core/memory/proxy_allocator.cpp


+ 0 - 0
engine/core/memory/proxy_allocator.h → src/core/memory/proxy_allocator.h


+ 0 - 0
engine/core/memory/stack_allocator.cpp → src/core/memory/stack_allocator.cpp


+ 0 - 0
engine/core/memory/stack_allocator.h → src/core/memory/stack_allocator.h


+ 0 - 0
engine/core/memory/temp_allocator.h → src/core/memory/temp_allocator.h


+ 0 - 0
engine/core/murmur.cpp → src/core/murmur.cpp


+ 0 - 0
engine/core/murmur.h → src/core/murmur.h


+ 0 - 0
engine/core/network/net_address.h → src/core/network/net_address.h


+ 0 - 0
engine/core/network/socket.h → src/core/network/socket.h


+ 0 - 0
engine/core/os.h → src/core/os.h


+ 0 - 0
engine/core/os_event_queue.h → src/core/os_event_queue.h


+ 0 - 0
engine/core/os_window_android.cpp → src/core/os_window_android.cpp


+ 0 - 0
engine/core/os_window_android.h → src/core/os_window_android.h


+ 0 - 0
engine/core/os_window_linux.cpp → src/core/os_window_linux.cpp


+ 0 - 0
engine/core/os_window_linux.h → src/core/os_window_linux.h


+ 0 - 0
engine/core/os_window_windows.cpp → src/core/os_window_windows.cpp


Vissa filer visades inte eftersom för många filer har ändrats