Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2020-08-28 | WorldStorage: Removed unused callback parameters | Tiger Wang | 1 | -21/+0 | |
2020-04-21 | Vector3 in Handlers (#4680) | Mattes D | 1 | -2/+11 | |
Refactored all cBlockHandler and cItemHandler descendants to use Vector3. | |||||
2020-04-03 | Manage block entity lifetime with unique_ptr (#4080) | peterbell10 | 1 | -1/+0 | |
2019-12-22 | Improved large jungle and acacia tree generation (#4413) | NiLSPACE | 1 | -0/+5 | |
2019-10-28 | Moved growing from cWorld / cChunk to cBlockHandler descendants. | Mattes D | 1 | -5/+43 | |
2019-09-29 | Refactored more of Entities and BlockEntities to use Vector3. (#4403) | Mattes D | 1 | -0/+27 | |
2019-09-27 | Fixed MSVC warnings (#4400) | Mattes D | 1 | -3/+3 | |
2019-09-08 | BiomeGen: Changed to use cChunkCoords params. | Mattes D | 1 | -0/+5 | |
2019-09-06 | Separated chunk generator from world / plugin interfaces. | Mattes D | 1 | -2/+16 | |
The generator now only takes care of servicing synchronous "GetChunk(X, Y)" and "GetBiomes(X, Y)" requests. | |||||
2018-09-24 | Add a formatting function for Vector3 (#4282) | peterbell10 | 1 | -1/+1 | |
* Vector3: Add custom fmt compatible formatter. * cLuaState: Add fmt version of ApiParamError * Use vector formatting in manual bindings * Always log vectors with FLOG | |||||
2018-07-24 | Broadcast refactor (#4264) | peterbell10 | 1 | -0/+27 | |
* Move Broadcast functions from cChunkMap to cBroadcaster - Remove cBroadcastInterface in favour of cBroadcaster. - cChunk: Remove broadcast functions. * resurect broadcast interface * Absorb cBroadcaster into cWorld. Removes the need for forwarding the function calls. * Improve const-correctness * Use Int8 instead of char + Comment `ForClients` functions * Improve comments * Broadcaster: Rename ForClients functions | |||||
2018-07-23 | Optimise chunk set (#4260) | peterbell10 | 1 | -7/+7 | |
Closes #1244 Initially I was just going to add the cChunkData to cSetChunkData but profiling revealed that the copying wasn't even the biggest slowdown. Much more time was being spent in cChunk::CreateBlockEntities and cChunk::WakeUpSimulators than was in memcpy so I've made those significantly faster as well. Optimisations performed: * cSetChunkData now stores blocks in a cChunkData object * cChunkData objects can now perform moves even if they are using different pools * cChunk::CreateBlockEntities now iterates in the correct order and only over present chunk sections * Similarly for cChunk::WakeUpSimulators * cSetChunkData::CalculateHeightMap now shortcuts to the highest present chunk section before checking blocks directly | |||||
2018-02-04 | cChunk and cChunkData: Use vectors for block get and set functions (#4172) | peterbell10 | 1 | -0/+10 | |
* cChunkData: Change interface to use Vector3i * cChunk: Add Vector3i overloads for bounded block get and set functions. | |||||
2017-11-20 | cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) | Bond-009 | 1 | -5/+4 | |
2017-08-17 | Changed int parameters to vector parameters in cCuboid and simulators (#3874) | Lane Kolbly | 1 | -26/+38 | |
2017-08-07 | Changed entity ownership model to use smart pointers | Tiger Wang | 1 | -1/+2 | |
2017-08-03 | Remove double includes part 2 (#3890) | peterbell10 | 1 | -3/+0 | |
2017-07-28 | Check for intersection between placed blocks and entities. (#3850) | Lane Kolbly | 1 | -0/+3 | |
* 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-05-22 | Store cChunk::m_BlockEntities in a map (#3717) | peterbell10 | 1 | -2/+2 | |
* Store block entities in a map from block index * Cleanup ForEachBlockEntity * Cleanup DoWithBlockEntityAt | |||||
2016-02-05 | Bulk clearing of whitespace | LogicParrot | 1 | -1/+1 | |
2015-11-23 | Added cChunkDef::IsValidWidth() | Julian Laubstein | 1 | -1/+6 | |
2015-11-10 | Added cChunkDef::IsValidHeight() | Julian Laubstein | 1 | -0/+6 | |
2015-10-04 | Fixed a race condition between chunk loader and generator. | Mattes D | 1 | -1/+2 | |
When using ChunkWorx to generate multiple chunks, the server would sometimes fail an assert because it would generate a chunk even when it was successfully loaded. This was caused by chunks queued in cWorld's m_SetChunkDataQueue and thus being marked as "InQueue" although they were already loaded. Solved by adding a new parameter to chunk coord callbacks specifying whether the operation succeeded or failed, and using that instead of the chunk presence flag to decide whether to generate or not. | |||||
2015-09-25 | Compile.sh namechange to cuberite | Safwat Halaby | 1 | -2/+2 | |
2015-09-25 | Namechange to Cuberite | Mattes D | 1 | -2/+2 | |
2015-07-31 | Unified the doxy-comment format. | Mattes D | 1 | -17/+20 | |
2015-06-06 | Changed appropriate containers to unordered_map | Tiger Wang | 1 | -29/+0 | |
Thanks to @worktycho for guidance! * Potential speed improvements | |||||
2015-06-06 | Redstone wire and trapdoor fixes | Tiger Wang | 1 | -0/+13 | |
* Fixes #1887 * Fixes #1763 * Fixes #1083 | |||||
2015-06-06 | Comparators | Tiger Wang | 1 | -0/+6 | |
2015-05-19 | Fixed a lot of warnings | tycho | 1 | -2/+2 | |
2014-12-24 | Replaced a std::hash specialization with explicit type. | Mattes D | 1 | -7/+3 | |
std::hash is problematic in gcc / clang, one has a class, the other a struct. | |||||
2014-12-24 | gcc compilation fix. | Mattes D | 1 | -1/+6 | |
2014-12-24 | Refactored all player block placing to go through hooks. | Mattes D | 1 | -12/+36 | |
Fixes #1618. | |||||
2014-12-10 | Added a cWorld:PrepareChunk function. | Mattes D | 1 | -1/+22 | |
It prepares the chunk - loads or generates it and lights it. The spawn prepare process uses this function. | |||||
2014-10-12 | convert old style casts to fix warnings | Steven Riehl | 1 | -34/+30 | |
2014-09-03 | re-add the missing "s" too cChunkCoordsWithBoolList | LO1ZB | 1 | -1/+1 | |
2014-09-03 | hopefully the last commit for removing y-coord from chunks. :) | LO1ZB | 1 | -0/+21 | |
2014-09-01 | Fixed off-by-one errors in cChunkDef asserts. | madmaxoft | 1 | -8/+8 | |
2014-08-30 | remove orphaned comment. | LO1ZB | 1 | -4/+0 | |
2014-08-28 | remove y-coord from chunks | LO1ZB | 1 | -4/+2 | |
2014-08-21 | Added initializers for class members. | Mattes D | 1 | -1/+1 | |
As reported by Coverity, these weren't initialized. | |||||
2014-07-21 | Style: Normalized to no spaces before closing parenthesis. | madmaxoft | 1 | -4/+4 | |
2014-07-17 | Fixed spaces around single-line comments. | madmaxoft | 1 | -2/+2 | |
There should be at least two spaces in front and one space after //-style comments. | |||||
2014-07-17 | Fixed basic whitespace problems. | madmaxoft | 1 | -13/+13 | |
Indenting by spaces and alignment by spaces, as well as trailing whitespace on non-empty lines. | |||||
2014-05-18 | Fixed issue with types not being defined for an unused parameter | Tycho | 1 | -40/+0 | |
2014-04-28 | Hopefully fixed repeated clang warnings. | madmaxoft | 1 | -9/+9 | |
2014-04-26 | Implemented Chunk Sparsing with segments | Tycho | 1 | -95/+5 | |
2014-04-25 | Implemented comments | Tiger Wang | 1 | -23/+42 | |
2014-04-24 | Implemented suggestions | Tiger Wang | 1 | -67/+10 | |
2014-04-07 | Attempt to fix errors | Tiger Wang | 1 | -10/+10 | |
2014-04-07 | Blocklight and skylight now compressed | Tiger Wang | 1 | -4/+4 | |
2014-04-05 | Nibbletypes are compressed | Tiger Wang | 1 | -2/+75 | |
+ Added nibble compression * Fixed an off by one | |||||
2014-03-11 | Fixed Chunkdef warnings | Tycho | 1 | -2/+2 | |
2014-03-11 | Unified Vector classes | andrew | 1 | -1/+1 | |
2014-03-10 | Fixed xofts issues | Tycho | 1 | -18/+8 | |
2014-03-10 | Revert "Fixed some warnings" | madmaxoft | 1 | -10/+7 | |
This reverts commit 4cb0b82d1df560ad32c92eede91f466c75a87c87. | |||||
2014-03-09 | ChunkDef: Replaced enums with static const ints. | madmaxoft | 1 | -10/+6 | |
This makes them easier to use in std::min et al. | |||||
2014-03-09 | Globals.h is now warnings free again. | Tycho | 1 | -8/+24 | |
Also turned off Wpadded as it is indicates potental performance issues rather than potential bugs | |||||
2014-03-09 | Fixed some warnings | Tycho | 1 | -7/+10 | |
2014-02-23 | fixed globals.h warnings | Tycho | 1 | -0/+1 | |
2014-02-08 | Initial ChunkStay code. | madmaxoft | 1 | -0/+1 | |
2014-02-01 | Split cCoord template into one and two data types | Tiger Wang | 1 | -10/+32 | |
2014-01-29 | Fixed redstone simulator crash found in #570 | Tiger Wang | 1 | -5/+11 | |
2014-01-26 | Refactored cBlockHandler::OnUse and dependents | Tycho | 1 | -1/+0 | |
2014-01-10 | Major refactoring of redstone | Tiger Wang | 1 | -0/+2 | |
This commit is a refactoring of the redstone code, mainly the functions handling the removal of invalid blocks from power supplier data structures. Its aim is to improve performance and potentially reduce the memory footprint of the data structures. It works to reduce the amount of GetBlock()s triggered every tick. Before, a GetBlock() was requested for every single item in the data lists, as well as for every single redstone block in a chunk. Following these changes, the AddBlock() event is utilised more effectively to only update the lists when needed (a block is changed), as well as to insert the block type (and update it when needed) alongside the coordinates into the main redstone simulator chunkdata list. In short, a single GetBlock() is now cached, with this cache being updated when the simulator is awoken due to a block change. At least, I *hope* that this is what it does :P | |||||
2014-01-10 | Include Biome enum in ChunkDef | Bill Derouin | 1 | -2/+1 | |
Can't forward declare an enum | |||||
2014-01-09 | Move biome definition to separate files | Bill Derouin | 1 | -91/+2 | |
2013-12-31 | clean up code for patching | Tycho Bickerstaff | 1 | -0/+1 | |
2013-12-31 | refactored chunk Queue to seperate class | Tycho Bickerstaff | 1 | -1/+0 | |
2013-12-30 | Fixed compilation in VC2008. | madmaxoft | 1 | -1/+1 | |
Also removed an unused inline header file (yuck). | |||||
2013-12-22 | merged in warnings changes | Tycho Bickerstaff | 1 | -0/+1 | |
2013-12-22 | converted commneted paramater names to the unused macro | Tycho Bickerstaff | 1 | -1/+2 | |
2013-12-21 | ChunkSender is now warnings clean | Tycho Bickerstaff | 1 | -1/+1 | |
2013-12-20 | Attempt at fixing cChunkDef::Height signedness. | madmaxoft | 1 | -12/+12 | |
2013-11-24 | Moved source to src | Alexander Harkness | 1 | -0/+0 | |
2013-10-21 | Added ASSERTs to all ChunkDef operations. | madmaxoft | 1 | -15/+40 | |
This should avoid errors such as #276. | |||||
2013-10-12 | Added 1.7 biome constants. | madmaxoft | 1 | -2/+47 | |
2013-08-16 | Replaced E_ENTITY_TYPE_XXX with cMonster::mtXXX. | madmaxoft | 1 | -1/+2 | |
Also slightly improved the spawning algorithm. | |||||
2013-08-03 | Removed the unused BlockY parameter from cChunkDef::BlockToChunk() | madmaxoft | 1 | -3/+2 | |
2013-05-05 | ChunkDesc: Added heightmap verification (DEBUG-only), not used yet | madmaxoft@gmail.com | 1 | -1/+1 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1443 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2013-03-14 | Changed DelayedFluidSimulatorData to be a vector rather than a list, performance doubled :) | madmaxoft@gmail.com | 1 | -2/+3 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1268 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2013-03-02 | Fixed gcc compilation | madmaxoft@gmail.com | 1 | -2/+2 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1234 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2013-03-01 | New fire simulator, fully rewritten to the new scheme of things, directly accessing chunk data. | madmaxoft@gmail.com | 1 | -0/+28 | |
http://forum.mc-server.org/showthread.php?tid=617&pid=6626#pid6626 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1233 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2013-02-08 | Prepared cChunkDesc for further API extension; used it as the sole container for generated chunk data, including entities / block entities. | madmaxoft@gmail.com | 1 | -0/+6 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1200 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-10-20 | Made cWorld's block query functions more orthogonal, added GetBlockInfo() returning all info on a block. | madmaxoft@gmail.com | 1 | -0/+7 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@986 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-10-18 | Reverted previous commit, chose a different solution, much cleaner. | madmaxoft@gmail.com | 1 | -14/+11 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@975 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-10-18 | Made constants in cChunkDef enums, compilation fixes for gcc. | madmaxoft@gmail.com | 1 | -11/+14 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@974 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-08-03 | Fixed a few gcc pedantic warnings; made BLOCKTYPE an unsigned char type. | madmaxoft@gmail.com | 1 | -15/+15 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@711 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-07-02 | BLOCKTYPE and NIBBLETYPE are finally exported in Lua API as numbers, not usertypes | madmaxoft@gmail.com | 1 | -4/+5 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@642 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-07-02 | cBlockArea object added (with only minimal testing so far) | madmaxoft@gmail.com | 1 | -0/+6 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@641 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-07-02 | ChunkDef: Fixed getters taking a const ptr | madmaxoft@gmail.com | 1 | -5/+11 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@638 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-06-14 | Attempt to bring sanity to newlines across systems. | cedeel@gmail.com | 1 | -492/+492 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@606 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-06-02 | Added the Biomal height generator, made it the default height generator. | madmaxoft@gmail.com | 1 | -0/+4 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@536 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-05-27 | Added some useful biome synonyms; added block property IsSnowable; alphabetically sorted block property setting | madmaxoft@gmail.com | 1 | -3/+3 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@513 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-05-25 | Merged the composable_generator branch into the trunk | madmaxoft@gmail.com | 1 | -30/+150 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@504 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-04-23 | Anvil storage writing (Basic storage is working, NO entities except for chests are working! Don't use for real servers) | madmaxoft@gmail.com | 1 | -1/+48 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@475 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-03-14 | Unified the chunk data to use the BLOCKDATA datatype. | madmaxoft@gmail.com | 1 | -0/+1 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@413 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-03-14 | Split chunk data into separate arrays; decoupled most sources from cChunk.h dependency | madmaxoft@gmail.com | 1 | -0/+320 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@411 0a769ca7-a7f5-676a-18bf-c427514a06d6 |