aboutsummaryrefslogtreecommitdiff
path: root/src/nodedef.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Re-order sound-related code (#12382)SmallJoker2022-06-201-8/+9
| | | | | | | | Dropped ServerSoundParams -> moved to ServerPlayingSound. This gets rid of the duplicated 'fade' and 'pitch' values on server-side where only one was used anyway. SimpleSoundSpec is the basic sound without positional information, hence 'loop' is included. Recursively added PROTOCOL_VERSION to most functions to reduce the versioning mess in the future. Per-type version numbers are kept for now as a safety rope in a special case.
* Reduce size of ContentFeatures structuresfan52022-05-261-11/+27
| | | | | | On my system this is a reduction from 4664 to 3704 bytes. This is not for the sake of saving RAM but ensuring commonly used structures fit into caches better.
* Fix no_texture.png for unknown nodes with ID < 125 (#12329)Wuzzy2022-05-231-1/+1
|
* Optimize swapping nodes with equivalent lightingJude Melton-Houghton2022-03-291-0/+6
|
* Split liquid_viscosity to liquid_viscosity and move_resistance (#10810)Wuzzy2021-10-011-0/+4
|
* refacto: remove get_gui_env & draw_load_screen from RenderingEngine singletonLoic Blot2021-05-031-3/+1
|
* Reserve vectors before pushing and other code quality changes (#11161)sfan52021-04-051-1/+1
|
* Degrotate support for mesh nodes (#7840)Vitaliy2021-03-301-1/+3
|
* Schematic: Properly deal with before/after node resolving and document (#11011)SmallJoker2021-03-201-3/+28
| | | | This fixes an out-of-bounds index access when the node resolver was already applied to the schematic (i.e. biome decoration). Also improves the handling of the two cases: prior node resolving (m_nodenames), and after node resolving (manual lookup)
* Rework use_texture_alpha to provide three opaque/clip/blend modessfan52021-01-291-14/+42
| | | | | The change that turns nodeboxes and meshes opaque when possible is kept, as is the compatibility code that warns modders to adjust their nodedefs.
* Drop never documented 'alpha' property from nodedefsfan52021-01-291-9/+0
| | | | | Includes minimal support code for practical reasons. We'll need it for a slightly different purpose next commit.
* Remove all bump mapping and parallax occlusion related code.Lars2020-10-171-1/+0
|
* Render nodeboxes with opaque material if possible (#10122)sfan52020-08-121-0/+12
|
* Implement override.txt support for special tiles (#10140)Hugues Ross2020-08-041-0/+5
| | | | | Add override targets for all special_tiles entries in node definitions, allowing texture packs to replace these textures. This makes overrides work properly with a variety of drawtypes. The targets are named special1 through special6, covering the the current length of the special_tiles array.
* Improve default inventory+wield images of node drawtypes (#9299)Wuzzy2020-07-231-0/+16
|
* Remove std::shared_ptr use in TileLayer (#10090)sfan52020-07-101-1/+1
|
* Cache liquid alternative IDs (#8053)Vitaliy2020-05-201-3/+6
|
* Rework functionality of leveled nodes (#9852)Wuzzy2020-05-191-1/+3
| | | | Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
* Allow ObjDefManager instances to be clonedsfan52020-05-051-0/+3
|
* Refactor texture overrides and add new features (#9600)Hugues Ross2020-04-141-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Refactor texture overrides, and add new features: - Texture overrides can support multiple targets in one line - Texture override files can have comment lines - Item images/wield images can be overridden * Formatting changes * Address soime feedback - Pass vectors by const reference - Log syntax errors as warnings - Remove 'C' prefix from TextureOverrideSource * Simplify override target checks with an inline helper function * make linter happy * Apply feedback suggestions Co-Authored-By: rubenwardy <rw@rubenwardy.com> * Remove remaining != 0 checks * Update copyright notice Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: rubenwardy <rw@rubenwardy.com>
* Clear old item groups when they are overridden. (#8753)Beha2019-08-121-0/+8
| | | | | | | This fixes overridden items keeping their old groups in the group to items mapping even after their groups have been changed in lua. It also prevents a more widespread issue where overriding an item will add its content ID *twice* to the mapping, resulting in odd behaviour in features such as ABMs.
* Proselytize the network. Use IEEE F32 (#8030)SmallJoker2019-01-031-0/+3
| | | | | * Proselytize the network. Use IEEE F32 * Remove unused V2F1000 functions
* nodedef: Delete two unused method definitions (#7288)Kuma_jjw2018-04-301-2/+0
|
* Node resolver: Make error on fallback optional, disable for mapgen aliasesParamat2018-04-201-2/+3
|
* Node definition manager refactor (#7016)Dániel Juhász2018-02-101-76/+277
| | | | | | | | | * Rename IWritableNodeDefManager to NodeDefManager * Make INodeDefManager functions const * Use "const *NodeDefManager" instead of "*INodeDefManager" * Remove unused INodeDefManager class * Merge NodeDefManager and CNodeDefManager * Document NodeDefManager
* Connected Nodeboxes: Add `disconnected` boxesThomas--S2018-01-031-0/+8
| | | | | | | | | | | | | | | The `disconnected_*` boxes are the opposites of the `connect_*` ones, i.e. when a node has no suitable neighbours on the respective side, the according disconnected box is drawn. * disconnected_top * disconnected_bottom * disconnected_front * disconnected_left * disconnected_back * disconnected_right * disconnected (when there is *no* neighbour) * disconnected_sides (when there are *no* neighbours to the sides)
* Real global textures (#6105)Vitaliy2017-10-151-3/+24
| | | | | | | | * Real global textures * Add world-aligned textures * Update minimal to support world-aligned tiles * Update minimal
* Make INodeDefManager::getIds return a vector, not a setKahrl2017-09-121-6/+3
|
* Implement client node dig predictionAuke Kok2017-09-111-0/+2
| | | | | | | | Dig prediction allows clients to remove dug nodes without waiting for server acknowledgement. This patch allows mods to override dig prediction, it can either be turned off or a different "prediction node" can be selected.
* Bump minimal protocol version to 36 (#6319)SmallJoker2017-08-291-1/+2
| | | | | | | * Bump minimal protocol version to 36 Item/Node/TileDef, NodeBox, TileAnimation: Remove old compat code * Accept future serialisation versions
* Code modernization: src/n*, src/o* (#6280)Loïc Blot2017-08-191-7/+8
| | | | | | | | | | | * 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
* Optimize headers (part 2) (#6272)Loïc Blot2017-08-181-1/+0
| | | | | | | | | | | | | | * Optimize headers (part 2) * less debug.h in headers * less remoteplayer.h for everybody * Cleanup (part 2) * camera.h: mesh.h * mapgen.h: mapnode.h * serverenvironment.h: mapblock.h * nodedef.h: shader.h
* C++ modernize: Pragma once (#6264)Loïc Blot2017-08-171-4/+1
| | | | * Migrate cpp headers to pragma once
* Cleanup various headers to reduce compilation times (#6255)Loïc Blot2017-08-161-1/+0
| | | | * Cleanup various headers to reduce compilation times
* Add 'plantlike_rooted' drawtypenumber Zero2017-07-111-0/+2
| | | | | | | Useful for underwater plants. Node consists of a base cube plus a plantlike extension that can pass through liquid nodes above without creating air bubbles or interfering with liquid flow. Uses paramtype2 'leveled', param2 defines height of plantlike extension.
* Irrlicht cleanup: cleanup various object to use RenderingEngine (#6088)Loïc Blot2017-07-021-0/+1
| | | | | | | | | | | * Irrlicht cleanup: cleanup various object to use RenderingEngine * CAO doesn't need scenemanager in addToScene * Camera doesn't need VideoDriver pointer or SceneManager in constructor * Hud doesn't need driver & scene manager in constructor * Hud doesn't need scenemanager pointer * Tile.h doesn't need IrrlichtDevice header (just SMaterial) * WieldMeshSceneNode: only take scene, we always use scene root node as parent
* Cpp11 patchset 11: continue working on constructor style migration (#6004)Loïc Blot2017-06-181-17/+11
|
* Various code cleanup & little performance improvement on HTTP download (#5772)Loïc Blot2017-05-201-3/+0
| | | | | | * Disable or remove unused enum members/functions * Tiny code style fixes * Make some functions const * Replace ClientMediaDownloader std::unordered_map with std::map
* Fix alpha for liquid nodes (#5494)Dániel Juhász2017-05-191-5/+5
|
* Soft node overlay (#5186)Dániel Juhász2017-04-211-1/+3
| | | | This commit adds node overlays, which are tiles that are drawn on top of other tiles.
* Fix various copy instead of const ref reported by cppcheck (part 3) (#5616)Loïc Blot2017-04-201-7/+7
| | | | * Also remove 2 non declared but defined functions * Make some functions around const ref changes const
* Paramtype2: Add missing type CPT2_GLASSLIKE_LIQUID_LEVELparamat2017-03-301-15/+37
| | | | | | | Add the missing paramtype2 for param2 controlling the liquid level inside the glasslike_framed drawtype. Add missing documentation of the feature to lua_api.txt. Update and improve comments for drawtype enumerations in nodedef.h.
* Content_mapblock.cpp: Refactornumber Zero2017-03-201-0/+18
|
* Add hardware node coloring. Includes:Dániel Juhász2017-01-231-31/+77
| | | | | | - Increase ContentFeatures serialization version - Color property and palettes for nodes - paramtype2 = "color", "colored facedir" or "colored wallmounted"
* Environment & IGameDef code refactoring (#4985)Ner'zhul2017-01-091-2/+2
| | | | | | | | | | | | | | | | | | | | | * Environment code refactoring * Cleanup includes & class declarations in client & server environment to improve build speed * ServerEnvironment::m_gamedef is now a pointer to Server instead of IGameDef, permitting to cleanup many casts. * Cleanup IGameDef * Move ITextureSource* IGameDef::getTextureSource() to Client only. * Also move ITextureSource *IGameDef::tsrc() helper * drop getShaderSource, getSceneManager, getSoundManager & getCamera abstract call * drop unused emerge() call * cleanup server unused functions (mentionned before) * Drop one unused parameter from ContentFeatures::updateTextures * move checkLocalPrivilege to Client * Remove some unnecessary casts * create_formspec_menu: remove IWritableTextureSource pointer, as client already knows it * Fix some comments * Change required IGameDef to Server/Client pointers * Previous change that game.cpp sometimes calls functions with Client + InventoryManager + IGameDef in same functions but it's the same objects * Remove duplicate Client pointer in GUIFormSpecMenu::GUIFormSpecMenu * drop ClientMap::sectorWasDrawn which is unused
* Improve getPointedThing() (#4346)Dániel Juhász2017-01-041-0/+6
| | | | | | | | | | | | | | | | | | | * Improved getPointedThing() The new algorithm checks every node exactly once. Now the point and normal vector of the collision is also returned in the PointedThing (currently they are not used outside of the function). Now the CNodeDefManager keeps the union of all possible nodeboxes, so the raycast won't miss any nodes. Also if there are only small nodeboxes, getPointedThing() is exceptionally fast. Also adds unit test for VoxelLineIterator. * Cleanup, code move This commit moves getPointedThing() and Client::getSelectedActiveObject() to ClientEnvironment. The map nodes now can decide which neighbors they are connecting to (MapNode::getNeighbors()).
* Move TileAnimation code to seperate filesfan52017-01-021-13/+3
|
* Revert "Adding particle blend, glow and animation (#4705)"sfan52016-11-141-6/+5
| | | | This reverts commit 93e3555eae2deaeca69ee252cfa9cc9c3e0e49ef.
* Adding particle blend, glow and animation (#4705)Foghrye42016-11-151-5/+6
|
* Add minetest.unregister_item and minetest.register_alias_forcepaly22016-09-081-0/+2
|