summaryrefslogtreecommitdiffstats
path: root/tests/Generating (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-08-04Fixup test block handler stubsTiger Wang1-17/+1
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-05-05Require semi-colon at end of function-like macros (#4719)peterbell102-6/+9
2020-04-21Vector3 in Handlers (#4680)Mattes D1-4/+5
Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
2020-04-17More Vector3 in cBlockHandler (#4644)Mattes D1-1/+1
* cBlockHandler.OnUpdate uses Vector3 params. Also slightly changed how block ticking works.
2020-04-03Manage block entity lifetime with unique_ptr (#4080)peterbell101-2/+2
2020-04-03Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D3-33/+69
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-10-16Refactored block-to-pickup conversion. (#4417)Mattes D1-21/+6
2019-09-29Refactored more of Entities and BlockEntities to use Vector3. (#4403)Mattes D1-3/+3
2019-09-08ChunkGenerator: Changed to use cChunkCoords.Mattes D1-3/+3
2019-09-07Generator: Added repeatability test.Mattes D2-24/+114
2019-09-06Added a BasicGeneratorTest.Mattes D3-0/+325
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.
2019-08-26Improved testing framework. (#4376)Mattes D1-2/+3
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-11-20cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050)Bond-0091-1/+1
2017-08-25Add cUUID class (#3871)peterbell103-0/+26
2017-08-01cBlockHandler: take player by refpeterbell101-3/+3
2017-07-28Check for intersection between placed blocks and entities. (#3850)Lane Kolbly1-0/+16
* Check for intersection between placed blocks and entities. + Implemented GetPlacementCollisionBox, to permit custom placement collision boxes for blocks. * Factored block-entity placement checking into another function in cPlayer. - Removed vector min/max functions * Use GetWorld to get the world in DoesPlacingBlocksIntersectEntity. + Added block height checks, allow different cEntity subclasses to decide whether they will prevent block placement.
2017-07-07BigFlower fixes (#3826)peterbell101-1/+1
* BigFlowers fixes * Correct upper part meta * Documented parameters to DoesIgnoreBuildCollision
2017-07-03cBlockInfo static initialisation (#3832)peterbell101-4/+6
2017-06-24cBlockArea supports block entities. (#3795)Mattes D1-0/+26
2017-06-19Removed the LeakFinder for Windows. (#3777)Mattes D1-5/+2
2017-05-04Gen: Added a simple PieceGeneratorBFSTree test.Mattes D2-0/+103
2017-05-04Gen: Moved tests to a separate folder, unified shared sources.Mattes D9-0/+953