Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Prepare ChunkData for BlockState storage (#5105) | Tiger Wang | 2021-03-05 | 1 | -5/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | * Rename ChunkData Creatable test * Add missing Y-check in RedstoneWireHandler * Remove ChunkDef.h dependency in Scoreboard * Prepare ChunkData for BlockState storage + Split chunk block, meta, block & sky light storage + Load the height map from disk - Reduce duplicated code in ChunkData - Remove saving MCSBiomes, there aren't any - Remove the allocation pool, ref #4315, #3864 * fixed build * fixed test * fixed the debug compile Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com> | ||||
* | BlockHandler initialisation is a constant expression (#4891) | Tiger Wang | 2020-09-20 | 1 | -23/+8 |
| | | | | | | | | | | | | | * BlockHandler initialisation is a constant expression If we can't make it all namespaces, this is the next best I guess. + Tag handlers constexpr, const as needed + Inherit constructors * Privatise handler functions * More constexpr Co-authored-by: Alexander Harkness <me@bearbin.net> | ||||
* | Enable C++17 in build | Peter Bell | 2020-05-09 | 1 | -6/+6 |
| | |||||
* | Manage block entity lifetime with unique_ptr (#4080) | peterbell10 | 2020-04-03 | 1 | -90/+43 |
| | |||||
* | Pulled the BlockID and BlockInfo headers from Globals.h. (#4591) | Mattes D | 2020-04-03 | 1 | -0/+2 |
| | | | | | | | | | 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 | ||||
* | Refactored block-to-pickup conversion. (#4417) | Mattes D | 2019-10-16 | 1 | -0/+30 |
| | |||||
* | Refactored more of Entities and BlockEntities to use Vector3. (#4403) | Mattes D | 2019-09-29 | 1 | -24/+22 |
| | |||||
* | Fixed MSVC warnings (#4400) | Mattes D | 2019-09-27 | 1 | -7/+7 |
| | |||||
* | CheckBasicStyle: Check number of empty lines between functions (#4267) | peterbell10 | 2018-07-26 | 1 | -12/+1 |
| | | | | Add check for number of empty lines between functions and fix the corresponding failures | ||||
* | fix block area rotation bug (#4243) | changyong guo | 2018-06-25 | 1 | -3/+3 |
| | | | fix mirror method bug in class cBlockArea. | ||||
* | Deal with covered switches consistently (#4161) | peterbell10 | 2018-02-05 | 1 | -123/+118 |
| | | | | | | | * 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() | ||||
* | cChunk and cChunkData: Use vectors for block get and set functions (#4172) | peterbell10 | 2018-02-04 | 1 | -4/+4 |
| | | | | | * cChunkData: Change interface to use Vector3i * cChunk: Add Vector3i overloads for bounded block get and set functions. | ||||
* | cBlockArea: Fix performance regression (#4045) | peterbell10 | 2017-09-23 | 1 | -2/+16 |
| | |||||
* | Replace ItemCallbacks with lambdas (#3993) | peterbell10 | 2017-09-11 | 1 | -5/+5 |
| | |||||
* | cBlockArea: change MakeIndex to return size_t | peterbell10 | 2017-09-11 | 1 | -80/+43 |
| | |||||
* | cBlockArea: use unique_ptr | peterbell10 | 2017-09-11 | 1 | -133/+106 |
| | |||||
* | Revert "Replace ItemCallbacks with lambdas (#3948)" | LogicParrot | 2017-09-02 | 1 | -6/+6 |
| | | | | This reverts commit 496c337cdfa593654018c171f6a74c28272265b5. | ||||
* | Replace ItemCallbacks with lambdas (#3948) | peterbell10 | 2017-09-01 | 1 | -6/+6 |
| | |||||
* | Changed int parameters to vector parameters in cCuboid and simulators (#3874) | Lane Kolbly | 2017-08-17 | 1 | -2/+2 |
| | |||||
* | Removed double includes (#3885) | Lukas Pioch | 2017-08-02 | 1 | -1/+0 |
| | |||||
* | BlockArea: Added the GetBounds function. | Mattes D | 2017-07-22 | 1 | -0/+12 |
| | |||||
* | Fixed check to see if block entity is in merge source. | Lane Kolbly | 2017-07-22 | 1 | -1/+1 |
| | |||||
* | Made cBlockArea:cChunkReader AreaBounds inclusive on both sides. (#3842) | Lane Kolbly | 2017-07-10 | 1 | -1/+1 |
| | |||||
* | Fix cBlockArea assertion and mis-indexing (#3810) | peterbell10 | 2017-06-25 | 1 | -2/+2 |
| | |||||
* | Fix cBlockArea null deref | peterbell10 | 2017-06-24 | 1 | -41/+45 |
| | |||||
* | cBlockArea supports block entities. (#3795) | Mattes D | 2017-06-24 | 1 | -297/+858 |
| | |||||
* | Fixed bindings for cBlockArea:Read and Write. (#3568) | Mattes D | 2017-02-05 | 1 | -7/+7 |
| | | | The original bindings accepted nil as the World param, causing a crash. | ||||
* | Fix meta mirror (#3470) | Mattes D | 2016-12-09 | 1 | -3/+3 |
| | |||||
* | Fixed type-casting-related warnings. | Mattes D | 2016-08-24 | 1 | -3/+3 |
| | |||||
* | Added compile.sh folder check warnings | LogicParrot | 2016-08-04 | 1 | -0/+4 |
| | |||||
* | Bulk clearing of whitespace | LogicParrot | 2016-02-05 | 1 | -38/+38 |
| | |||||
* | Added detailed logging to cBlockArea::Read() bad Y coords. | Mattes D | 2016-01-12 | 1 | -4/+12 |
| | | | | Ref.: http://forum.mc-server.org/showthread.php?tid=2307 | ||||
* | Unified the doxy-comment format. | Mattes D | 2015-07-31 | 1 | -6/+6 |
| | |||||
* | BlockArea: Fixed a crash with areas higher than chunk height. | Mattes D | 2015-06-30 | 1 | -1/+7 |
| | |||||
* | cBlockArea: Added CountSpecificBlocks() API function. | Mattes D | 2015-06-08 | 1 | -0/+59 |
| | |||||
* | Made -Weverything an error. | tycho | 2015-05-24 | 1 | -4/+4 |
| | |||||
* | Added cBlockArea:CountNonAirBlocks API function. | Mattes D | 2015-04-30 | 1 | -0/+31 |
| | |||||
* | Added cBlockArea::msSimpleCompare merge strategy. | Mattes D | 2015-04-29 | 1 | -1/+37 |
| | |||||
* | Added cBlockArea:GetNonAirCropRelCoords() API function. | Mattes D | 2015-04-29 | 1 | -0/+67 |
| | | | | Fixes #1915. | ||||
* | En masse NULL -> nullptr replace | Tiger Wang | 2014-10-23 | 1 | -44/+44 |
| | |||||
* | More template keyword fixes. | Mattes D | 2014-08-28 | 1 | -9/+9 |
| | |||||
* | Added initializers for class members. | Mattes D | 2014-08-21 | 1 | -1/+3 |
| | | | | As reported by Coverity, these weren't initialized. | ||||
* | Normalized comments. | madmaxoft | 2014-07-17 | 1 | -2/+2 |
| | | | | | 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 basic whitespace problems. | madmaxoft | 2014-07-17 | 1 | -5/+5 |
| | | | | Indenting by spaces and alignment by spaces, as well as trailing whitespace on non-empty lines. | ||||
* | Fixed wrong types. (BLOCKTYPE -> NIBBLETYPE) | Howaner | 2014-07-13 | 1 | -1/+1 |
| | |||||
* | Nullify deleted pointers. | archshift | 2014-06-19 | 1 | -11/+17 |
| | |||||
* | Fixed a crash when creating negative-size blockareas. | madmaxoft | 2014-06-09 | 1 | -0/+8 |
| | | | | Now the server emits a warning instead and continues execution. | ||||
* | cBlockArea reading hotfix. | madmaxoft | 2014-06-02 | 1 | -63/+109 |
| | | | | | This should fix the crashes introduced with chunksparsing. Not the most performant solution, but at least it should work. Ref.: #1056 | ||||
* | Added comments, reformatted code. | madmaxoft | 2014-05-29 | 1 | -1/+1 |
| | |||||
* | Implemented style changes | Tycho | 2014-05-24 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' into chunksparsing/structs | Tycho | 2014-05-24 | 1 | -14/+11 |
|\ | |||||
| * | Fixed a warning and a complaint about a never-read variable. | archshift | 2014-05-11 | 1 | -14/+11 |
| | | |||||
* | | Fixed stylistic issues | Tycho | 2014-05-21 | 1 | -4/+4 |
| | | |||||
* | | Renamed cChunkBuffer to cChunkData | Tycho | 2014-05-21 | 1 | -2/+2 |
| | | |||||
* | | Fixed minor style issues | Tycho | 2014-05-21 | 1 | -1/+1 |
| | | |||||
* | | Merge branch 'master' into chunksparsing/structs | Tycho | 2014-05-10 | 1 | -7/+7 |
|\| | | | | | | | | | Conflicts: src/Chunk.h | ||||
| * | Fixed MSVC 64-bit build warnings. | Mattes D | 2014-05-09 | 1 | -5/+5 |
| | | |||||
| * | Fixed a flipped condition in cBlockArea::Merge(). | madmaxoft | 2014-05-05 | 1 | -2/+2 |
| | | |||||
* | | Merge branch 'master' into chunksparsing/structs | Tycho | 2014-05-03 | 1 | -2/+2 |
|\| | | | | | | | | | Conflicts: src/Chunk.cpp | ||||
| * | Fixed warnings in cBlockArea. | madmaxoft | 2014-05-01 | 1 | -2/+2 |
| | | |||||
* | | Merge branch 'master' into chunksparsing/structs | Tycho | 2014-05-01 | 1 | -167/+226 |
|\| | |||||
| * | Disabled MSVC warnings about constant bool expressions. | madmaxoft | 2014-04-28 | 1 | -2/+19 |
| | | |||||
| * | Removed static from combinators. | Tycho | 2014-04-28 | 1 | -7/+7 |
| | | | | | | | | THis allows us to use the functions in template params at the cost of polluting the global namespace. | ||||
| * | Fixed unbraced ifs | Tycho | 2014-04-28 | 1 | -10/+40 |
| | | |||||
| * | Removed inlines from combinators | Tycho | 2014-04-28 | 1 | -7/+7 |
| | | | | | | | | gcc requires external linkage for functions provided to template parameters | ||||
| * | Template Magic | Tycho | 2014-04-28 | 1 | -168/+175 |
| | | | | | | | | | | | | Removed need to allocate a fake meta block by using templates to provide a version of the code that does not use metas. Also changed the function to a template argument to make sure that the compilier is able to inline it. | ||||
| * | Worked around const pointer | Tycho | 2014-04-27 | 1 | -2/+3 |
| | | |||||
| * | Initialised MetaArrays in BlockArea | Tycho | 2014-04-27 | 1 | -2/+6 |
| | | | | | | | | Fixes CID 43621 | ||||
* | | Fixed bad comment | Tycho | 2014-04-27 | 1 | -1/+1 |
| | | |||||
* | | Implemented Chunk Sparsing with segments | Tycho | 2014-04-26 | 1 | -97/+69 |
|/ | |||||
* | Fixed a few MSVC type warnings. | Mattes D | 2014-04-03 | 1 | -1/+1 |
| | |||||
* | Merged branch 'msDifference'. | madmaxoft | 2014-04-01 | 1 | -0/+34 |
|\ | |||||
| * | Added new merge strategy "msDifference" | STRWarrior | 2014-03-31 | 1 | -0/+34 |
| | | |||||
* | | cBlockArea: Added the msMask merge strategy. | madmaxoft | 2014-04-01 | 1 | -0/+30 |
|/ | |||||
* | Implemented the msSpongePrint merge strategy. | madmaxoft | 2014-03-28 | 1 | -4/+34 |
| | | | | Similar to msImprint, but allows prefabs to carve out air pockets, too. The sponge block is used as the NOP block. | ||||
* | BlockArea: Create() can take the size as Vector3i, too. | madmaxoft | 2014-03-25 | 1 | -0/+9 |
| | |||||
* | BlockArea: Switched internal coords to Vector3i. | madmaxoft | 2014-03-25 | 1 | -175/+149 |
| | |||||
* | Renamed cBlockArea Offset to WEOffset. | madmaxoft | 2014-03-12 | 1 | -2/+2 |
| | | | | Even in getters / setters. | ||||
* | Renamed m_Offset to m_WEOffset | STRWarrior | 2014-03-11 | 1 | -3/+3 |
| | |||||
* | Using ```const Vector3i &``` | STRWarrior | 2014-03-11 | 1 | -1/+1 |
| | |||||
* | This allows a blockarea to have an Offset. | STRWarrior | 2014-03-10 | 1 | -0/+19 |
| | |||||
* | Added useful parameter overloads to cBlockArea Lua API. | madmaxoft | 2014-02-24 | 1 | -0/+95 |
| | |||||
* | Fixed crash in cBlockArea rotation. | madmaxoft | 2014-02-24 | 1 | -6/+6 |
| | | | | Fixes #720. | ||||
* | Moved Schematic file methods to seperate class | Tycho | 2014-01-20 | 1 | -158/+1 |
| | |||||
* | Seperated BlockArea From World | Tycho | 2014-01-20 | 1 | -5/+4 |
| | | | | If anyone can come up with a better name for the interface I'll change it, It contians to methods which do compleatly unrelated things | ||||
* | Fixed a few MSVC warnings. | madmaxoft | 2014-01-07 | 1 | -3/+3 |
| | |||||
* | fixed warnings in BlockArea.cpp | Tycho Bickerstaff | 2013-12-31 | 1 | -0/+2 |
| | |||||
* | cBlockArea: Fixed writing full-height areas. | madmaxoft | 2013-12-26 | 1 | -2/+2 |
| | |||||
* | Fixed block area height check. | madmaxoft | 2013-12-25 | 1 | -2/+2 |
| | | | | The block area couldn't be read up to chunk height. | ||||
* | Fixed a typo in cBlockArea merging code. | madmaxoft | 2013-12-20 | 1 | -2/+1 |
| | |||||
* | cBlockArea: origin is initialized in the constructor and the loader. | madmaxoft | 2013-12-17 | 1 | -0/+6 |
| | |||||
* | Moved source to src | Alexander Harkness | 2013-11-24 | 1 | -0/+2124 |