summaryrefslogtreecommitdiff
path: root/src/script/cpp_api
AgeCommit message (Collapse)Author
2019-02-10Consistent HP and damage types (#8167)SmallJoker
Remove deprecated HUDs and chat message handling. Remove unused m_damage variable (compat break). HP: s32 for setter/calculations, u16 for getter.
2019-01-06Fix wrong code comment (#8061)DS
"Get core.registered_on_chat_messages" to "Get core.registered_on_player_receive_fields" where `core.registered_on_player_receive_fields` is gotten
2018-11-28Move client-specific files to 'src/client' (#7902)Quentin Bazin
Update Android.mk Remove 'src/client' from include_directories
2018-08-16Raycast: export exact pointing location (#6304)Dániel Juhász
* Return intersection point in node coordinates. * Clarify 'intersection_point' documentation
2018-07-22Add a MSVC / Windows compatible snprintf function (#7353)nOOb3167
Use sizeof where applicable for mt_snprintf
2018-06-30Modernize lua read (part 2 & 3): C++ templating assurance (#7410)Loïc Blot
* Modernize lua read (part 2 & 3): C++ templating assurance Implement the boolean reader Implement the string reader Also remove unused & unimplemented script_error_handler Add a reader with default value
2018-06-06CSM/SSM: Add on_mods_loaded callback (#7411)Loïc Blot
* CSM/SSM: Add on_mods_loaded callback
2018-05-05Fix builtin inventory list crash when size = 0 (#7297)SmallJoker
2018-04-30Allow damage for attached objects, add attach/detach callbacks (#6786)SmallJoker
* Allow right-clicking on attached LuaEntities
2018-04-19Add online content repositoryrubenwardy
Replaces mods and texture pack tabs with a single content tab
2018-04-02Run callback in IDropAction, refactor function argumentsSmallJoker
2018-04-02Add player inventory callbacksSmallJoker
2018-04-01LINT: add clang-tidy step (#6295)Loïc Blot
* Implement new travis clang-tidy build step * This step enable some rules and enforce one rule as error * This permits to have some C++ quality rules based on clang & clang contributor guidelines * Fix clang-tidy reported problems on push_back -> emplace_back
2018-03-29Fix a warning reported by clangLoic Blot
minetest/src/script/cpp_api/s_player.h:27:1: warning: struct 'PlayerHPChangeReason' was previously declared as a class [-Wmismatched-tags] struct PlayerHPChangeReason;
2018-03-28Add reasons to on_dieplayer and on_hpchangeAndrew Ward
2018-02-15Add `on_auth_fail` callback (#7039)red-001
Called when a client fails to supply the correct password for the account it's attempting to login as.
2018-02-10Node definition manager refactor (#7016)Dániel Juhász
* Rename IWritableNodeDefManager to NodeDefManager * Make INodeDefManager functions const * Use "const *NodeDefManager" instead of "*INodeDefManager" * Remove unused INodeDefManager class * Merge NodeDefManager and CNodeDefManager * Document NodeDefManager
2018-02-08Move `setlocale` from Lua to C++.red-001
2018-01-22[CSM] Don't Load the package library (#6944)red-001
Already removed by a latter step in CSM init so this just saves on pointless work.
2018-01-21Change include from "cmake_config.h" to "config.h"Wayward One
Fixes #6894
2018-01-21[CSM] Remove `on_connect` callback (#6941)red-001
Fixes #6939
2018-01-04[CSM] Don't load the IO library. (#6087)red-001
* [CSM] Don't load the IO library. * Rename the function to match the Lua API function name and add a missing `const` * Add a comment to explain some strange code and fix the other issues pointed out by shadowninja.
2018-01-03Fix crash on can_bypass_userlimit returning non-booleanrubenwardy
2017-11-08Move files to subdirectories (#6599)Vitaliy
* Move files around
2017-10-07Unkown nodes: Provide position on interact (#6505)SmallJoker
* Unkown nodes: Provide position on interact
2017-10-02[CSM] Add callback on open inventory (#5793)Vincent Glize
2017-09-26Implement mod communication channels (#6351)Loïc Blot
Implement network communication for channels * Implement ModChannel manager server side to route incoming messages from clients to other clients * Add signal handler switch on client & ModChannelMgr on client to handle channels * Add Lua API bindings + client packet sending + unittests * Implement server message sending * Add callback from received message handler to Lua API using registration method
2017-09-21Set placer to nil instead of a non-functional one in item_OnPlace (#6449)DTA7
* Set placer to nil instead of a non-functional one This requires nil checks in core.rotate_node and core.rotate_and_place.
2017-09-21on_death: Fix callback number of pushed arguments (Fixes #6451)SmallJoker
2017-09-15ServerEnv: Clean up object lifecycle handling (#6414)sfan5
* ServerEnv: Clean up object lifecycle handling
2017-09-12Make INodeDefManager::getIds return a vector, not a setKahrl
2017-09-04Implement minetest.register_can_bypass_userlimit (#6369)Loïc Blot
* Implement minetest.register_on_userlimit_check This new callback permits to bypass the max_users parameter with new mods condition, based on player name or IP Only one mod needs to permit it. Move core part for builtin privileges checks to builtin
2017-09-01Remove nodeupdate completely (#6358)Rui
2017-08-20Modernize source code: last part (#6285)Loïc Blot
* Modernize source code: last par * Use empty when needed * Use emplace_back instead of push_back when needed * For range-based loops * Initializers fixes * constructors, destructors default * c++ C stl includes
2017-08-18Optimize headers (part 2) (#6272)Loïc Blot
* 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
2017-08-17C++ modernize: Pragma once (#6264)Loïc Blot
* Migrate cpp headers to pragma once
2017-08-16Cleanup various headers to reduce compilation times (#6255)Loïc Blot
* Cleanup various headers to reduce compilation times
2017-07-27Add LuaEntity on_death callback (#6177)Loïc Blot
Add LuaEntity on_death callback This fixes #5474
2017-07-11Add 'plantlike_rooted' drawtypenumber Zero
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.
2017-07-07Expose getPointedThing to LuaDániel Juhász
This commit introduces Raycast, a Lua user object, which can be used to perform a raycast on the map. The ray is continuable, so one can also get hidden nodes (for example to see trough glass).
2017-06-30Create a filesystem abstraction layer for CSM and only allow accessing files ↵red-001
that are scanned into it. (#5965) * Load client-side mods into memory before executing them. This removes the remaining filesystem access that client-sided mods had and it will hopefully make then more secure. * Lua Virtual filesystem: don't load the files into memory just scan the filenames into memory. * Fix the issues with backtrace * fix most of the issues * fix code style. * add a comment
2017-06-19C++11 cleanup on constructors (#6000)Vincent Glize
* C++11 cleanup on constructors dir script
2017-06-11Remove threads.h and replace its definitions with their C++11 equivalents ↵ShadowNinja
(#5957) This also changes threadProc's signature, since C++11 supports arbitrary thread function signatures.
2017-06-10C++11 patchset 6: forbid object copy using assigment/copy function deleters ↵Loïc Blot
(#5945) C++11 implement function deleting, it's generally used to prevent some object copy In script API use this function removal on ScriptApiBase instead of ScriptApiClient/Server/MainMenu, this affect all ScriptApis Move DISABLE_CLASS_COPY with constructor, the deleted function permit to replace function in its original place
2017-06-10Order es_DrawType exactly like enum NodeDrawType in nodedef.h (#5946)Thomas--S
This will help to avoid some strange bugs.
2017-06-09CSM: Fix documentation error for register_on_*_chat_messages (#5917)DS
2017-06-06Use C++11 mutexes only (remove compat code) (#5922)Loïc Blot
* Fix event LINT & remove default constructor/destructors * remove compat code & modernize autolock header
2017-05-20Fix CSM crash (#5779)red-001
Caused by dc5bc6c and them made worse by 5ebf8f9
2017-05-18Fix a warning pointed by GCC 7.1Loic Blot
lua_tonumber overflow in snprintf (12 bytes and only 10 can be written)
2017-05-06Use a settings object for the main settingsShadowNinja
This unifies the settings APIs. This also unifies the sync and async registration APIs, since the async registration API did not support adding non-functions to the API table.