summaryrefslogtreecommitdiffstats
path: root/src/Generating/PrefabPiecePool.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Removed all Printf-family functions from StringUtils.Mattes D2023-05-161-7/+7
| | | | | Replaced them with fmt::format calls, including changes to the format strings. Also changed the format strings to use FMT_STRING, so that the format is checked compile-time against the arguments. Also fixed code-style violations already present in the code.
* Fixed Compiler Warningsx12xx12x2022-01-141-16/+0
|
* cPieceModifier interface and cPieceModifierRandomizeBlocks class (#5122)Damián Imrich2021-04-081-0/+14
|
* shared_ptr -> unique_ptr in generatorsTiger Wang2021-03-181-5/+1
|
* zlib -> libdeflate (#5085)Tiger Wang2021-01-111-19/+21
| | | | | | + Use libdeflate + Use std::byte * Fix passing temporary to string_view + Emulate make_unique_for_overwrite
* Replaced cpp14::make_unique<> with std::make_unique<>.Mattes D2020-08-011-2/+2
|
* Fix building with clang 8.0 (#4346)Bond-0092019-08-111-4/+6
|
* Add a formatting function for Vector3 (#4282)peterbell102018-09-241-3/+6
| | | | | | | | | | * Vector3: Add custom fmt compatible formatter. * cLuaState: Add fmt version of ApiParamError * Use vector formatting in manual bindings * Always log vectors with FLOG
* Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell102018-08-291-2/+2
| | | | | | | Closes #4236 CMake now creates a header file in the build directory under the path "include/Globals.h" which just includes "src/Globals.h" with an absolute path. Then instead of adding "src/" to the include directories, it adds "include/". #include "Globals.h" still works by including the build generated file and any other src-relative path will not work.
* Prefer static_cast to reinterpret_cast (#4223)peterbell102018-05-021-2/+2
| | | | | | | * Change reinterpret_cast -> static_cast wherever possible * Remove more unnecessary `const_cast`s. reinterpret_casts should be avoided for the same reason as c-style casts - they don't do any type-checking. reinterpret_cast was mainly being used for down-casting in inheritance hierarchies but static_cast works just as well while also making sure that there is actually an inheritance relationship there.
* Remove smart pointer macrospeterbell102017-07-211-1/+1
|
* PieceGenerator: Added rotation-aware vertical connectors.Mattes D2017-02-131-3/+9
|
* Fixed race conditions and forgotten clear in Lua ref tracking. (#3530)Mattes D2017-01-131-0/+1
| | | This fixes occasional crashes on plugin reload.
* Prefabs: Implemented support for ExpandFloorStrategy.Mattes D2016-11-241-10/+44
|
* SelfTests: Removed the unneeded cSelfTests class.Mattes D2016-06-181-1/+0
|
* Added more details to the cubeset format documentation.Mattes D2015-12-011-2/+2
|
* Added PieceStructures generator.Mattes D2015-12-011-56/+176
|
* Generator: Fixed missing hitbox assignment.Mattes D2015-10-051-0/+1
| | | | This had caused village houses to generate too close to each other.
* Added basic support for loading village prefabs from files.Mattes D2015-06-201-2/+76
|
* Externalized cPrefabPiecePool self-test.Mattes D2015-06-191-27/+2
|
* PrefabPiecePool: Added loading from cubeset file.Mattes D2015-06-181-0/+439
|
* Made -Weverything an error.tycho2015-05-241-3/+3
|
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-3/+3
|
* Merge remote-tracking branch 'origin/master' into VillageGenmadmaxoft2014-05-291-0/+28
|\
| * Fixed a memory leak in cPrefabPiecePool.madmaxoft2014-05-281-0/+28
| | | | | | | | The pool pieces weren't freed upon pool destruction.
* | cPieceGenerator chooses starting pieces based on weights.madmaxoft2014-05-271-0/+9
|/ | | | Fixes #1033.
* Initial cPrefabPiecePool refactoring.madmaxoft2014-05-071-0/+121
Ref.: #986.