summaryrefslogtreecommitdiffstats
path: root/src/Generating/StructGen.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add tree generation for ExtemeHills and other biomes (#4713)mBornand2020-05-061-77/+93
|
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-0/+1
| | | | | | | | | 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
* Improved large jungle and acacia tree generation (#4413)NiLSPACE2019-12-221-2/+3
|
* ShapeGen, HeiGen: Changed to use cChunkCoords.Mattes D2019-09-081-1/+1
|
* BiomeGen: Changed to use cChunkCoords params.Mattes D2019-09-081-1/+1
|
* Separated chunk generator from world / plugin interfaces.Mattes D2019-09-061-2/+2
| | | | The generator now only takes care of servicing synchronous "GetChunk(X, Y)" and "GetBiomes(X, Y)" requests.
* Deal with covered switches consistently (#4161)peterbell102018-02-051-0/+1
| | | | | | | * Fixes a number of "<function>: not all control paths return a value" warnings on MSVC. * Introduces the UNREACHABLE global macro and uses it instead of conditionally compiled switch defaults. * Move cNBTParseErrorCategory from FastNBT.h into FastNBT.cpp to prevent bad calls to message()
* Fix switch warnings (#4013)peterbell102017-09-141-56/+79
| | | | | | | | | | | | | | | * Fix switch warnings * Fix a variety of -Wswitch and -Wswitch-enum warnings * Remove unneeded -Wno-error flags * Reorganise some eMonsterType switches * Alpha sort eMonsterType cases in WriteMobMetadata and in cNBTChunkSerializer::AddMonsterEntity * List all mob types in protocol 1.12 and NBTChunkSerializer * cStructGenTrees::GetNumTrees: remove switch default * cWSSAnvil::LoadOldMinecartFromNBT: Log unhandled minecart type
* Remove double includes part 2 (#3890)peterbell102017-08-031-1/+0
|
* Remove redundant heighmap codepeterbell102017-06-141-15/+1
|
* Reduced unnecessary block updatesLogicParrot2016-04-221-0/+8
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-27/+27
|
* Moved variables into scope, removed unused variables and fixed variablesLukas Pioch2015-12-171-2/+2
|
* Added OrePockets and DirtPockets finish gens.Mattes D2015-11-251-110/+0
|
* Fix old style casts and implicit conversionsMatti Hänninen2015-08-121-6/+6
|
* Fixed some more warningstycho2015-05-191-14/+14
|
* More style checking.Mattes D2015-05-091-1/+1
| | | | Spaces around some operators are checked.
* Refactored all player block placing to go through hooks.Mattes D2014-12-241-7/+7
| | | | Fixes #1618.
* Generator: Fixed crash with trees too high.Mattes D2014-11-151-2/+7
|
* Gen refactor: Implemented CompositedHeiGen.Mattes D2014-11-131-0/+1
| | | | This fixes crashes in the Village generator due to the missing generator.
* Generator: Shape initial refactoring.Mattes D2014-11-121-18/+8
| | | | The code compiles, but several structure generators are broken, crash on start.
* Generator: Rewritten to use SharedPtrs.Mattes D2014-10-191-1/+1
|
* Added Granite, Diorite and Andesite to the NaturalPatches generator.STRWarrior2014-09-281-2/+4
|
* Bunch of tweaks:STRWarrior2014-08-101-1/+1
| | | | | | Renamed Quarts to Quartz Using const_iterator instead of iterator Used CheckBasicStyle script to find style errors
* Changed cStructGenOreNests to take a list of ores + the block to replace.STRWarrior2014-08-101-48/+10
|
* CheckBasicStyle: multi-level indent change.madmaxoft2014-08-041-3/+3
|
* Generator: removed rnd definitions that are never readarchshift2014-07-181-1/+0
|
* Basic style fixes.madmaxoft2014-07-171-7/+7
|
* Normalized comments.madmaxoft2014-07-171-6/+6
| | | | | This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
* Fixed a few more switch warnings.archshift2014-05-121-15/+13
|
* Implemented faster upscaling using templates.madmaxoft2014-03-211-2/+2
| | | | Fixes #819.
* Unified StructureGens and FinisherGens.madmaxoft2014-03-011-5/+5
| | | | Now they are all Finishers. Fixes #398.
* Thread safe cMap managerandrew2014-02-201-9/+0
|
* Fixed compile and some warnings in MSVSTiger Wang2014-02-091-9/+0
|
* Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT).madmaxoft2013-12-201-2/+6
|
* Trees will generate in the new biomes.madmaxoft2013-11-281-14/+51
| | | | Only the generic trees, the special variants haven't yet been implemented.
* Moved source to srcAlexander Harkness2013-11-241-0/+675