summaryrefslogtreecommitdiffstats
path: root/tests/Generating/CMakeLists.txt (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-10-15Fix Android builds (#4998)Tiger Wang1-128/+128
Construct paths relative to the Cuberite sources with PROJECT_SOURCE_DIR, instead of wherever the first CMakeLists.txt file happened to be with CMAKE_SOURCE_DIR. In Android's case, the latter was in a folder called android/ but that's not the root of the source tree, so any file path built off that root was wrong. This caused file-specific warnings exclusions to fail to apply.
2020-09-18Adding Generator For Single Piece Structures (#4830)12xx121-0/+2
* the beginning of a magnificent work - added basic files and classes without functionality * fixed checkstyle * added imports * moved imports * - Adding SinglePieceStructureGen - Adding a cPrefabChestStructure to generate Chests with contents - Added the options and calls to the ComposableGenerator * moved Globals to .h file * removed the chest thingy from the code (for now) * Update SinglePieceStructureGen.cpp * readded whitespace * renamed to SinglePieceStructuresGen for consistency added new classes to test * fixed small things (mostly style and cleanup) removed loottables * added small changes suggested by madmaxoft * small change to documentation * added check for allowed biomes * check only the biome of the origin position * fixed error on IsBiomeAllowed * added new cubesets * updated structures for with sponging * updated biome names * updated metadata to prevent crashing removed debug output * updated structures with sponging * added sponging to deserterWell to make it disappear in sand * small change in meta * rename DesertTemple -> DesertPyramid * minor style changes Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Alexander Harkness <me@bearbin.net>
2020-05-16Upgrade to C++17 [CMake] (#4717)Tiger Wang1-7/+2
* Make our CMake slightly less insane
2020-05-09Update submodules (#4727)peterbell101-1/+1
Closes #4708 This updates jsoncpp, mbedtls, TCLAP and SQLiteCpp to their latest stable release. A few additional changes were needed: * jsoncpp deprecated Reader, FastWriter and StyledWriter which I've replaced with some helper functions in JsonUtils.cpp * SQLiteCpp changed how it builds with external sqlite libraries, now expecting them to be installed. The simplest path was to remove sqlite from cuberite's submodule and just use SQLiteCpp's internal version.
2020-04-03Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D1-3/+7
The BlockID.h file was removed from Globals.h and renamed to BlockType.h (main change) The BlockInfo.h file was removed from Globals.h (main change) The ENUM_BLOCK_ID and ENUM_ITEM_ID enum names were replaced with ENUM_BLOCK_TYPE and ENUM_ITEM_TYPE (cosmetics) The various enums, such as eDimension, eDamageType and eExplosionSource were moved from BlockType.h to Defines.h, together with the helper functions for converting between them and strings (StringToDimension et al.) (minor) Many inline functions were moved from headers to their respective cpp files, so that BlockType.h could be included only into the cpp file, rather than the header. That broke our tests a bit, since they pick bits and pieces out of the main code and provide stubs for the rest; they had to be re-stubbed and re-verified. eMonsterType values are no longer tied to E_ITEM_SPAWN_EGG_META_* values
2019-09-07Generator: Added repeatability test.Mattes D1-1/+3
2019-09-06Added a BasicGeneratorTest.Mattes D1-0/+30
2019-09-06Separated chunk generator from world / plugin interfaces.Mattes D1-25/+101
The generator now only takes care of servicing synchronous "GetChunk(X, Y)" and "GetBiomes(X, Y)" requests.
2018-01-03Add the fmt library (#4065)peterbell101-1/+2
* Replaces AppendVPrintf with fmt::sprintf * fmt::ArgList now used as a type safe alternative to varargs. * Removed SIZE_T_FMT compatibility macros. fmt::sprintf is fully portable and supports %zu. * Adds FLOG functions to log with fmt's native formatting style.
2017-06-19Removed the LeakFinder for Windows. (#3777)Mattes D1-5/+2
2017-05-04Gen: Added a simple PieceGeneratorBFSTree test.Mattes D1-0/+14
2017-05-04Gen: Moved tests to a separate folder, unified shared sources.Mattes D1-7/+26
2017-05-04Gen: Moved PiecePool into a separate file.Mattes D1-2/+2
Also rewritten the PieceGenerator to use std::unique_ptr.
2017-02-13PieceGenerator: Added rotation-aware vertical connectors.Mattes D1-6/+5
2017-01-15Moved cPrefab parser self-check to the LoadablePieces test. (#3536)Mattes D1-1/+2
2016-08-24Fixed type-casting-related warnings.Mattes D1-2/+1
2016-07-18CMake: Remove needless minimum version specifications.Mattes D1-2/+0
2016-06-18SelfTests: Organized into solution folders.Mattes D1-0/+5
2015-12-01Added PieceStructures generator.Mattes D1-0/+4
2015-06-20Added basic support for loading village prefabs from files.Mattes D1-0/+3
2015-06-19Externalized cPrefabPiecePool self-test.Mattes D1-0/+93