Skip to content

Commit

Permalink
Refactored repo folder to remove gameplay- prefixes on various folder…
Browse files Browse the repository at this point in the history
…s and files.
  • Loading branch information
seanpaultaylor committed Mar 20, 2013
1 parent ee3a18e commit f039c05
Show file tree
Hide file tree
Showing 896 changed files with 60,076 additions and 326 deletions.
412 changes: 205 additions & 207 deletions .gitignore

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## v1.7.0

- Adds a lua function "convert(object, className)" that will convert a gameplay userdata object to another class type by changing the metatable. (For example: This lets you convert Control to Button in lua)
- Repo directory restructure dropping gameplay- prefix on many folders and files.

## v1.6.0

Expand Down
6 changes: 1 addition & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,8 @@ endif()
add_subdirectory(gameplay)

# gameplay samples
add_subdirectory(gameplay-samples)
add_subdirectory(samples)

# gameplay samples
add_subdirectory(gameplay-tests)

# gameplay encoder (See gameplay/bin)
#add_subdirectory(gameplay-encoder)


File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 8 additions & 8 deletions gameplay.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,42 @@ Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gameplay", "gameplay\gameplay.vcxproj", "{1032BA4B-57EB-4348-9E03-29DD63E80E4A}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gameplay-tests", "gameplay-tests\gameplay-tests.vcxproj", "{0F27C8C4-58B2-E367-8D1F-01B714FDBF1B}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample-browser", "samples\browser\sample-browser.vcxproj", "{0F27C8C4-58B2-E367-8D1F-01B714FDBF1B}"
ProjectSection(ProjectDependencies) = postProject
{1032BA4B-57EB-4348-9E03-29DD63E80E4A} = {1032BA4B-57EB-4348-9E03-29DD63E80E4A}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample00-mesh", "gameplay-samples\sample00-mesh\sample00-mesh.vcxproj", "{D672DC66-3CE0-4878-B0D2-813CA731012F}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample-mesh", "samples\mesh\sample-mesh.vcxproj", "{D672DC66-3CE0-4878-B0D2-813CA731012F}"
ProjectSection(ProjectDependencies) = postProject
{1032BA4B-57EB-4348-9E03-29DD63E80E4A} = {1032BA4B-57EB-4348-9E03-29DD63E80E4A}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample01-longboard", "gameplay-samples\sample01-longboard\sample01-longboard.vcxproj", "{9A515C8B-3320-4C5C-9754-211E91206C9D}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample-lua", "samples\lua\sample-lua.vcxproj", "{04EAF3E5-0F9E-AF4D-53F9-269CE114211F}"
ProjectSection(ProjectDependencies) = postProject
{1032BA4B-57EB-4348-9E03-29DD63E80E4A} = {1032BA4B-57EB-4348-9E03-29DD63E80E4A}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample02-spaceship", "gameplay-samples\sample02-spaceship\sample02-spaceship.vcxproj", "{CC37B8E9-6402-4841-8D6A-5D908A5909B3}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample-longboard", "samples\longboard\sample-longboard.vcxproj", "{9A515C8B-3320-4C5C-9754-211E91206C9D}"
ProjectSection(ProjectDependencies) = postProject
{1032BA4B-57EB-4348-9E03-29DD63E80E4A} = {1032BA4B-57EB-4348-9E03-29DD63E80E4A}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample03-character", "gameplay-samples\sample03-character\sample03-character.vcxproj", "{87388E8B-F3CF-428F-BC2C-C1886248C111}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample-spaceship", "samples\spaceship\sample-spaceship.vcxproj", "{CC37B8E9-6402-4841-8D6A-5D908A5909B3}"
ProjectSection(ProjectDependencies) = postProject
{1032BA4B-57EB-4348-9E03-29DD63E80E4A} = {1032BA4B-57EB-4348-9E03-29DD63E80E4A}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample04-particles", "gameplay-samples\sample04-particles\sample04-particles.vcxproj", "{CB5ABFAA-EA69-E439-5A4D-3B9359916C71}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample-character", "samples\character\sample-character.vcxproj", "{87388E8B-F3CF-428F-BC2C-C1886248C111}"
ProjectSection(ProjectDependencies) = postProject
{1032BA4B-57EB-4348-9E03-29DD63E80E4A} = {1032BA4B-57EB-4348-9E03-29DD63E80E4A}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample05-lua", "gameplay-samples\sample05-lua\sample05-lua.vcxproj", "{04EAF3E5-0F9E-AF4D-53F9-269CE114211F}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample-particles", "samples\particles\sample-particles.vcxproj", "{CB5ABFAA-EA69-E439-5A4D-3B9359916C71}"
ProjectSection(ProjectDependencies) = postProject
{1032BA4B-57EB-4348-9E03-29DD63E80E4A} = {1032BA4B-57EB-4348-9E03-29DD63E80E4A}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample06-racer", "gameplay-samples\sample06-racer\sample06-racer.vcxproj", "{82522888-E09A-ED48-AD7D-247237B37B3A}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample06-racer", "samples\racer\sample-racer.vcxproj", "{82522888-E09A-ED48-AD7D-247237B37B3A}"
ProjectSection(ProjectDependencies) = postProject
{1032BA4B-57EB-4348-9E03-29DD63E80E4A} = {1032BA4B-57EB-4348-9E03-29DD63E80E4A}
EndProjectSection
Expand Down
30 changes: 0 additions & 30 deletions gameplay.workspace

This file was deleted.

18 changes: 9 additions & 9 deletions gameplay.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 23 additions & 23 deletions gameplay-newproject.bat → newproject.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ REM
REM generate-project.bat
REM
REM This windows batch script generates a set of gameplay project files.
REM The new project will be based of the gameplay-template project and
REM The new project will be based of the template project and
REM it will be generated with the name and location that is specified
REM as input parameters.
REM
Expand Down Expand Up @@ -159,44 +159,44 @@ mkdir "%projPath%\src"
mkdir "%projPath%\res"

REM Copy Microsoft Visual Studio project files
copy gameplay-template\gameplay-template.vcxproj "%projPath%\%projName%.vcxproj"
copy template\template.vcxproj "%projPath%\%projName%.vcxproj"
call:replace "%projPath%\%projName%.vcxproj" TEMPLATE_PROJECT "%projName%"
call:replace "%projPath%\%projName%.vcxproj" TemplateGame "%className%"
call:replace "%projPath%\%projName%.vcxproj" GAMEPLAY_PATH "%gpPath%"

copy gameplay-template\gameplay-template.vcxproj.filters "%projPath%\%projName%.vcxproj.filters"
copy template\template.vcxproj.filters "%projPath%\%projName%.vcxproj.filters"
call:replace "%projPath%\%projName%.vcxproj.filters" TemplateGame "%className%"

copy gameplay-template\gameplay-template.vcxproj.user "%projPath%\%projName%.vcxproj.user"
copy template\template.vcxproj.user "%projPath%\%projName%.vcxproj.user"
call:replace "%projPath%\%projName%.vcxproj.user" GAMEPLAY_PATH "%gpPath%"

REM Copy Apple XCode project files
mkdir "%projPath%\%projName%.xcodeproj"
copy gameplay-template\gameplay-template.xcodeproj\project.pbxproj "%projPath%\%projName%.xcodeproj\project.pbxproj"
copy template\template.xcodeproj\project.pbxproj "%projPath%\%projName%.xcodeproj\project.pbxproj"
call:replace "%projPath%\%projName%.xcodeproj\project.pbxproj" GAMEPLAY_PATH "%gpPath%"
call:replace "%projPath%\%projName%.xcodeproj\project.pbxproj" TemplateGame "%className%"
call:replace "%projPath%\%projName%.xcodeproj\project.pbxproj" TEMPLATE_PROJECT "%projName%"

copy gameplay-template\TEMPLATE_PROJECT-macosx.plist "%projPath%\%projName%-macosx.plist"
copy template\TEMPLATE_PROJECT-macosx.plist "%projPath%\%projName%-macosx.plist"
call:replace "%projPath%\%projName%-macosx.plist" TEMPLATE_UUID "%uuid%"
call:replace "%projPath%\%projName%-macosx.plist" TEMPLATE_AUTHOR "%author%"

copy gameplay-template\TEMPLATE_PROJECT-ios.plist "%projPath%\%projName%-ios.plist"
copy gameplay-template\Default-568h@2x.png "%projPath%\[email protected]"
copy template\TEMPLATE_PROJECT-ios.plist "%projPath%\%projName%-ios.plist"
copy template\Default-568h@2x.png "%projPath%\[email protected]"
call:replace "%projPath%\%projName%-ios.plist" TEMPLATE_TITLE "%title%"
call:replace "%projPath%\%projName%-ios.plist" TEMPLATE_UUID "%uuid%"
call:replace "%projPath%\%projName%-ios.plist" TEMPLATE_AUTHOR "%author%"

REM Copy BlackBerry NDK project files
copy gameplay-template\template.cproject "%projPath%\.cproject"
copy template\template.cproject "%projPath%\.cproject"
call:replace "%projPath%\.cproject" TEMPLATE_PROJECT "%projName%"
call:replace "%projPath%\.cproject" TEMPLATE_UUID "%uuid%"
call:replace "%projPath%\.cproject" GAMEPLAY_PATH "%gpPath%"

copy gameplay-template\template.project "%projPath%\.project"
copy template\template.project "%projPath%\.project"
call:replace "%projPath%\.project" TEMPLATE_PROJECT "%projName%"

copy gameplay-template\template.bar-descriptor.xml "%projPath%\bar-descriptor.xml"
copy template\template.bar-descriptor.xml "%projPath%\bar-descriptor.xml"
call:replace "%projPath%\bar-descriptor.xml" TEMPLATE_PROJECT "%projName%"
call:replace "%projPath%\bar-descriptor.xml" TEMPLATE_TITLE "%title%"
call:replace "%projPath%\bar-descriptor.xml" TEMPLATE_UUID "%uuid%"
Expand All @@ -206,51 +206,51 @@ call:replace "%projPath%\bar-descriptor.xml" TEMPLATE_DESCRIPTION "%desc%"
REM Copy Android NDK project files
mkdir "%projPath%\android"

copy gameplay-template\android\template.AndroidManifest.xml "%projPath%\android\AndroidManifest.xml"
copy template\android\template.AndroidManifest.xml "%projPath%\android\AndroidManifest.xml"
call:replace "%projPath%\android\AndroidManifest.xml" TEMPLATE_PROJECT "%projName%"
call:replace "%projPath%\android\AndroidManifest.xml" TEMPLATE_UUID "%uuid%"

copy gameplay-template\android\template.build.xml "%projPath%\android\build.xml"
copy template\android\template.build.xml "%projPath%\android\build.xml"
call:replace "%projPath%\android\build.xml" TEMPLATE_PROJECT "%projName%"

mkdir "%projPath%\android\jni"

copy gameplay-template\android\jni\Application.mk "%projPath%\android\jni\Application.mk"
copy template\android\jni\Application.mk "%projPath%\android\jni\Application.mk"

copy gameplay-template\android\jni\template.Android.mk "%projPath%\android\jni\Android.mk"
copy template\android\jni\template.Android.mk "%projPath%\android\jni\Android.mk"
call:replace "%projPath%\android\jni\Android.mk" TemplateGame "%className%"
call:replace "%projPath%\android\jni\Android.mk" TEMPLATE_PROJECT "%projName%"
call:replace "%projPath%\android\jni\Android.mk" GAMEPLAY_PATH "%gpPath%"

mkdir "%projPath%\android\res\drawable"

copy gameplay-template\icon.png "%projPath%\android\res\drawable\icon.png"
copy template\icon.png "%projPath%\android\res\drawable\icon.png"

mkdir "%projPath%\android\res\values"

copy gameplay-template\android\res\values\template.strings.xml "%projPath%\android\res\values\strings.xml"
copy template\android\res\values\template.strings.xml "%projPath%\android\res\values\strings.xml"
call:replace "%projPath%\android\res\values\strings.xml" TEMPLATE_TITLE "%title%"

mkdir "%projPath%\build"
copy "gameplay-template\gameplay-template-CMakeLists.txt" "%projPath%\CMakeLists.txt"
copy "template\template-CMakeLists.txt" "%projPath%\CMakeLists.txt"
call:replace "%projPath%\CMakeLists.txt" TEMPLATE_PROJECT %projName%
call:replace "%projPath%\CMakeLists.txt" TemplateGame %className%
call:replace "%projPath%\CMakeLists.txt" GAMEPLAY_PATH %gpPath%

REM Copy source files
copy gameplay-template\src\TemplateGame.h "%projPath%\src\%className%.h"
copy gameplay-template\src\TemplateGame.cpp "%projPath%\src\%className%.cpp"
copy template\src\TemplateGame.h "%projPath%\src\%className%.h"
copy template\src\TemplateGame.cpp "%projPath%\src\%className%.cpp"
call:replace "%projPath%\src\%className%.h" TemplateGame "%className%"
call:replace "%projPath%\src\%className%.cpp" TemplateGame "%className%"

REM Copy resource files
copy gameplay-template\res\* "%projPath%\res\"
copy template\res\* "%projPath%\res\"

REM Copy icon
copy gameplay-template\icon.png "%projPath%\icon.png"
copy template\icon.png "%projPath%\icon.png"

REM Copy config
copy gameplay-template\game.config "%projPath%\game.config"
copy template\game.config "%projPath%\game.config"
call:replace "%projPath%\game.config" TEMPLATE_TITLE "%title%"

REM Open new project folder
Expand Down
Loading

0 comments on commit f039c05

Please sign in to comment.