* Fix Dockerfile would not complete due to interactivity being enabled.
* Added docker-compose.yml to build with `docker-compose up`.
* Removed Lua 5.2 from Dockerfile.
* Add BUILD_CORSIXTH cmake flag for disabling building the main program, e.g. if you only want AnimView
* Hand formatted changes before automatic formatting
* Break up / shorten some long lines
* Add some missing braces for clarity
* Multiline strings are merged to let clang-format split them
appropriately.
* sdl_core's frame_count changed from a C style array to std::array
which made the length checks simpler.
* Add includes and forward declairs to avoid transitive dependencies
* Remove th_gfx_font.h include from th_gfx.h - circular dependencies
* using to shorten lines in th_map.cpp
* Avoid non-portable reinterpret_cast for parcels in th_map.
* Use more constants in th_map.
* Use class initializer for th_map classes
* Add clang files to ignore list
* Add clang-format file
* Reformat all files with clang-format
Also includes some manual braces.
* Disable clang-format for backdrop.h
* Clang-format AnimView src files
* clang-format common code
* Fix anonymous struct in union warning
Anonymous structs in anonymous unions are not supported by the standard.
* Check clang-format in travis
* Bin pack parameters
* Bin pack arguments too
* Full Google style
2 space indent, no forced break on braces.
* A couple format overrides
Order of usings in config.h.in since 8 is smaller than 16.
Table layout, since 0x80 nicely fits in 8 columns.
This commit adds a new script which can be executed on
a Windows machine to build and package the libraries
for CorsixTH. A new folder called vcpkg will be created
in the same folder as the script. The script is
integrated into CMake and run by default when
targetting MSVC.
This commit adds a new module which clones and automatically sets
the include and library paths for the precompiled dependencies.
Linux users can opt in however they must choose the final arch
(i.e. x86 or x64) they intend to compile against.
Generate reference doc for CorsixTH, AnimView, LevelEdit, MapEdit with doxygen.
Allow LDocGen to generate documentation in any working directory.
Upload documentation to web with TravisCI.
Corrections to the original pull request contributed by:
Alberth <alberth289346@gmail.com>
To support this CorsixTH simply needs to have "debugger.lua" and a
"dofile('debugger')()" call to it in order to start & then connect
a lua DBGp client for CorsixTH to a running Lua DBGp server.
The call for executing debugger.lua's returned DBGp client starting
function is located in the new run_debugger script so that this script
can be executed by CorsixTH.lua before App.lua is executed, when the new
--connect-lua-dbgp CorsixTH.exe startup argument is used.
Alernatively a DBGp client can be started after the App class has taken
control of CorsixTH by calling App:connectDebugger() using its "Debug"
drop down menu command or its CTRL + C global key handler.
debugger.lua is a 3rd party Lua script and therefore won't be distributed
with CorsixTH so developers will have to download it into their Lua
directory when setting up a computer for CorsixTH Lua DBGp debugging.
This commit also makes the debug console and debug script executing
key commands usable anywhere in CorsixTH along with its added command.
CorsixTH.deproj is a Decoda project file. No one is maintaining it.
I opened it recently and found it was not at all complete.
CorsixTH.aps is a Visual Studio auto generated file which should not
have been included in source control.
This allows using cmake to set up multiple build folders without showing
up in the git status using folder structures like:
/build-luajit
/build-libav
or
/builds/luajit
/builds/libav
This new option uses loadfile() to execute: ../lua/debug_script.lua
So instead of using the debug console developers can now edit and
execute this file in their programming IDE while CorsixTH is running,
using the underscore global variable to refer to clicked entities
1. Adds the MIT license to the LevelEdit source files.
2. Changes tabs into spaces to use the same standard as our C++ files.
3. Moved the files into a package.
Even though it might look like it there has been no changes to the actual code.
Various improvements to the CMake scripts (patches by haicovanroeden and vittorio giovara in issues 114 and 115).
Fixed incorrect OpenGL header inclusion on MacOS / OS X (patch by vittorio giovara in issue 115).
Fixed some compiler warnings.