summaryrefslogtreecommitdiffstats
path: root/src/Generating/PrefabPiecePool.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-05-16Removed all Printf-family functions from StringUtils.Mattes D1-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.
2022-01-14Fixed Compiler Warningsx12xx12x1-16/+0
2021-04-08cPieceModifier interface and cPieceModifierRandomizeBlocks class (#5122)Damián Imrich1-0/+14
2021-03-18shared_ptr -> unique_ptr in generatorsTiger Wang1-5/+1
2021-01-11zlib -> libdeflate (#5085)Tiger Wang1-19/+21
+ Use libdeflate + Use std::byte * Fix passing temporary to string_view + Emulate make_unique_for_overwrite
2020-08-01Replaced cpp14::make_unique<> with std::make_unique<>.Mattes D1-2/+2
2019-08-11Fix building with clang 8.0 (#4346)Bond-0091-4/+6
2018-09-24Add a formatting function for Vector3 (#4282)peterbell101-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
2018-08-29Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell101-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.
2018-05-02Prefer static_cast to reinterpret_cast (#4223)peterbell101-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.
2017-07-21Remove smart pointer macrospeterbell101-1/+1
2017-02-13PieceGenerator: Added rotation-aware vertical connectors.Mattes D1-3/+9
2017-01-13Fixed race conditions and forgotten clear in Lua ref tracking. (#3530)Mattes D1-0/+1
This fixes occasional crashes on plugin reload.
2016-11-24Prefabs: Implemented support for ExpandFloorStrategy.Mattes D1-10/+44
2016-06-18SelfTests: Removed the unneeded cSelfTests class.Mattes D1-1/+0
2015-12-01Added more details to the cubeset format documentation.Mattes D1-2/+2
2015-12-01Added PieceStructures generator.Mattes D1-56/+176
2015-10-05Generator: Fixed missing hitbox assignment.Mattes D1-0/+1
This had caused village houses to generate too close to each other.
2015-06-20Added basic support for loading village prefabs from files.Mattes D1-2/+76
2015-06-19Externalized cPrefabPiecePool self-test.Mattes D1-27/+2
2015-06-18PrefabPiecePool: Added loading from cubeset file.Mattes D1-0/+439
2015-05-24Made -Weverything an error.tycho1-3/+3
2014-10-23En masse NULL -> nullptr replaceTiger Wang1-3/+3
2014-10-20En masse NULL -> nullptr replaceTiger Wang1-3/+3
2014-05-28Fixed a memory leak in cPrefabPiecePool.madmaxoft1-0/+28
The pool pieces weren't freed upon pool destruction.
2014-05-27cPieceGenerator chooses starting pieces based on weights.madmaxoft1-0/+9
Fixes #1033.
2014-05-07Initial cPrefabPiecePool refactoring.madmaxoft1-0/+121
Ref.: #986.