aboutsummaryrefslogtreecommitdiff
path: root/src/nodemetadata.cpp
AgeCommit message (Collapse)Author
2021-09-10Send to clients node metadata that changed to become empty (#11597)Jude Melton-Houghton
2021-04-05Reserve vectors before pushing and other code quality changes (#11161)sfan5
2020-10-01(se)SerializeString: Include max length in the nameSmallJoker
This commit clarifies the maximal length of the serialized strings. It will avoid accidental use of serializeString() when a larger string can be expected. Removes unused Wide String serialization functions
2018-12-04Send only changed node metadata to clients instead of whole mapblock (#5268)SmallJoker
Includes newer style changes and fixes by est31 Improve the block position de-serialization Add type NodeMetadataMap
2017-08-19Code modernization: src/n*, src/o* (#6280)Loïc Blot
* Code modernization: src/n*, src/o* * empty function * default constructor/destructor * for range-based loops * use emplace_back instead of push_back * remove unused IWritableNodeDefManager::clone() * C++ STL header style * Pointer constness in some functions
2017-05-10Private nodemeta (#5702)sfan5
* Private node metadata that isn't sent to the client
2017-02-04Derive NodeMetadata from Metadatarubenwardy
2016-09-21Do not serialize empty NodeMetadatasfan5
This commit fixes #4516, though note that this will gradually fix MapBlocks as they are used/modified and thus re-serialized.
2015-10-14Rename macros with two leading underscoresShadowNinja
These names are reserved for the compiler/library implementations.
2015-10-14Use warningstream for log messages with WARNINGShadowNinja
Remove DTIME macro and its uses, too
2015-09-19Various style cleanups + unused code removalest31
-> Don't pass pointer to whole IGameDef to NodeMetadata constructors and deserializers, but only to IItemDefManager, which is needed -> Remove the unused content_mapnode_get_new_name() method -> Fix style for MapBlock::deSerialize and MapBlock::deSerialize_pre22, improving accuracy of error messages a bit -> Fix style at other serialisation methods too -> Improve accuracy of some comments
2015-08-25Change i++ to ++iDavid Jones
2015-05-19Replace instances of std::map<std::string, std::string> with StringMapkwolekr
Also, clean up surrounding code style Replace by-value parameter passing with const refs when possible Fix post-increment of iterators
2015-05-05Add core.find_nodes_with_meta() script APIkwolekr
2015-01-17Fix NodeMetadataList loosing memory on deserialize due to invalid clear map ↵sapier
call instead of clear
2014-12-12Use std::string::empty() instead of size() where applicableAnton
2014-11-21serialize.h: use machine native byte swapping if available, fall-back to ↵Rafael Reilova
previous generic method if not (supported for GCC using endian.h, detection done in cmake) write/readARGB8() - just write 32-bit color in one op, instead of 4 1-byte ops cleanup: removed unneeded buffer init for some serialize-out functions use a #define for the fixed point factor in read/writeF1000() nodemetadata.cpp, nodetimer.cpp optimzation: simpler deserialize node position method staticobject.cpp: cleanup: use util/serialize.h inlines instead of its own de/serialization serialize.cpp: minor optimization/cleanup: avoid generation of unneeded string temporary CMakeLists.txt, cmake_config.h.in: detection of endian.h config.h: added HAVE_ENDIAN_H Commits due to feedback squashed Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-05-07Add a limit to node meta data resolving recursionShadowNinja
2013-02-24Update Copyright YearsSfan5
2013-02-24Change Minetest-c55 to MinetestPilzAdam
2012-06-17Properly and efficiently use split utility headersPerttu Ahola
2012-06-05Switch the license to be LGPLv2/later, with small parts still remaining as ↵Perttu Ahola
GPLv2/later, by agreement of major contributors
2012-06-03Strip unneeded variables from NodeMetadatadarkrose
2012-06-03WIP node metadata, node timersKahrl
2011-12-01Move NodeMetadata prototype containers to content_nodemeta.cpp to fix them ↵Perttu Ahola
not being filled correctly on some systems and compilers
2011-11-29Mode node definition loading from Lua (still not finished), fix metadata ↵Perttu Ahola
creation from name
2011-11-29Add names to NodeMetadataPerttu Ahola
2011-11-29Create framework for getting rid of global definitions of ↵Perttu Ahola
node/tool/item/whatever types
2011-10-16Switch more stuff to use the logging thing and fix segfault on player leave ↵Perttu Ahola
from server as introduced in a previous switch-to-logging commit
2011-06-18Created and moved stuff to content_nodemeta.{h,cpp}Perttu Ahola
2011-06-17Moved some mapnode content stuff from mapnode.{h,cpp} and digging property ↵Perttu Ahola
stuff from material.cpp to content_mapnode.{h,cpp}
2011-06-16hopefully fixed old furnaces taking ridiculous amounts of cpu and halting ↵Perttu Ahola
the server
2011-05-31Reduced server CPU usage on NodeMetadata step()s. Also furnace now cooks ↵Perttu Ahola
while no players are near it.
2011-04-08Some progress on transitioning from MapBlockObject to ActiveObject.Perttu Ahola
2011-04-06fixed the bug of disabled removal of empty chestsPerttu Ahola
2011-04-05Furnace is now usable. Added more tools.Perttu Ahola
--HG-- rename : data/tool_stpick.png => data/tool_stonepick.png rename : data/tool_wpick.png => data/tool_woodpick.png
2011-04-05A more robust format for node metadataPerttu Ahola
2011-04-05initial workings of the furnacePerttu Ahola
2011-04-05changed node metadata format to better accomodate future needs and problemsPerttu Ahola
2011-04-04Chests work now!Perttu Ahola
2011-04-04initial chest metadataPerttu Ahola
2011-04-04forgot some filesPerttu Ahola