aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api
AgeCommit message (Collapse)Author
2017-06-26Isolate irrlicht references and use a singleton (#6041)Loïc Blot
* Add Device3D class which will contain IrrlichtDevice interface move getSupportedVideoDrivers to Device3D Add Device3D singleton & use it in various places Rename Device3D to Rendering engine & add helper functions to various device pointers More singleton work RenderingEngine owns draw_load_screen move draw functions to RenderingEngine Reduce IrrlichtDevice exposure and guienvironment RenderingEngine: Expose get_timer_time() to remove device from guiEngine Make irrlichtdevice & scene manager less exposed * Code style fixes * Move porting::getVideoDriverName, getVideoDriverFriendlyName, getDisplayDensity, getDisplaySize to RenderingEngine Fix XORG_USED macro -> RenderingEngine + create_engine_device from RenderingEngine constructor directly * enum paralax => enum parallax
2017-06-22Fix CSM crash caused by move to C++11. (#6027)red-001
2017-06-20Automatic item and node colorization (#5640)Dániel Juhász
* Automatic item and node colorization Now nodes with a palette yield colored item stacks, and colored items place colored nodes by default. The client predicts the colorization. * Backwards compatibility * Use nil * Style fixes * Fix code style * Document changes
2017-06-20Fix 2 warnings reported by GCCLoic Blot
* ClientEnvironment::m_irr is not used anymore since a recent cleanup * l_vmanip constructor ordering
2017-06-19C++11 cleanup on constructors (#6000)Vincent Glize
* C++11 cleanup on constructors dir script
2017-06-19find_nodes_in_area: Extend maximal count to U32_MAX (#5277)SmallJoker
Extend documentation, limit area volume Remove u16 count limitation * Prevent integer overflow, replace minp/maxp with pos1/pos2
2017-06-19Client::makeScreenshot: remove device paramLoic Blot
We already have the device param as class member
2017-06-11Sound: Add pitch option (#5960)Rui
* Sound: Add pitch option
2017-06-11Improve the path select GUI (#5852)red-001
- Allow lua to chose whatever directories or files can be selected - Fix selecting directories - Rename dialog to `guiPathSelectMenu` from `guiFileSelectMenu` - Rename lua function for opening the menu from `show_file_open_dialog` to `show_path_select_dialog` - Remove duplicate code and fix code style. Related changes - fix `clang-format` whitelist. - Regenerate minetest.conf.example
2017-06-07[CSM] Add function to get player privileges (#5933)red-001
* [CSM] Add function to get player privileges + move related help functions to common * Added @Zeno- const
2017-06-06Main Menu: Add get_clientmodpath API (#5912)Elijah Duffy
Add `core.get_clientmodpath` to main menu API (also possible in async calls).
2017-06-04C++11 patchset 2: remove util/cpp11.h and util/cpp11_container.h (#5821)Loïc Blot
2017-06-04Minetest for C++11 (CMakeLists + Travis)Loic Blot
* Move GCC to GCC 6 & GCC 7 * Move Clang to Clang 3.6 & Clang 4.0 * LINT moves from Clang 3.9 to Clang 4.0 * Move XCode 7.3 to 8.0 * Use more travis tricks to install compilers instead of adding complexity to our build script * Clang format fixes on checked files (compat Cpp11 instead of Cpp03) * Mingw GCC update from 4.8.4 to 5.3 (Ubuntu Xenial) * Drop mingw cmake generated files and add them to gitignore
2017-05-25Enhance ABM performance a little bit by removing two std::set copy (#5815)Loïc Blot
* Enhance ABM performance a little bit by removing two std::set copy * ActiveBlockModifier::getTriggerContents now returns a const ref * ActiveBlockModifier::getRequiredNeighbors now returns a const ref * ActiveBlockModifier::getRequiredNeighbors is now purely virtual * Little code style fix
2017-05-23Fix wrong return value in get_sky Lua call since ↵Loic Blot
ad9fcf859ec2347325830e09504ae96968b51ea8 Fix #5803
2017-05-22LINT fix & check all files with clang-formatLoic Blot
Seems the diff mode doesn't work well, PR are detected as working whereas in master it's shown it's problematic (and really problematic). Use same check everywhere
2017-05-21[CSM] Add send_chat_message and run_server_chatcommand API functions (#5747)Pierre-Adrien Langrognet
* [CSM] Add send_chat_message and run_server_chatcommand API functions * Add client-side chat message rate limiting * Limit out chat queue size * [CSM] Add minetest.clear_out_chat_queue API function and .clear_chat_queue chatcommand * Last fixes/cleanups before merge
2017-05-21Fix LINT broken by dfa0c15ce045705f05487d623dc7beca6c945b4bLoic Blot
2017-05-21[CSM] Add function to get the definition of items (#5732)bigfoot547
Add node def and item def documentation. Please be ready for merge!
2017-05-20[CSM] Correct the log destination of print() (#5784)SmallJoker
2017-05-10Private nodemeta (#5702)sfan5
* Private node metadata that isn't sent to the client
2017-05-08read_schematic_replacements: ensure fields are strings (#5726)Loïc Blot
* read_schematic_replacements: ensure fields are strings add a type check before reading strings on read_schematic_replacements deserializer * throw LuaError instead of asserting the whole client
2017-05-07Player attrs: permits to remove an attribute by setting value to nil (#5716)Loïc Blot
* Player attrs: permits to remove an attribute by setting value to nil When doing player:set_attribute("attr", nil) remove attribute Also remove a useless check on C++ API part (already done by checkplayer) Fix #5709
2017-05-07LINT fix since d0678948165768472fc940c03e78cba787f49ea5Loic Blot
2017-05-07Replace occurrence of luaL_reg in l_camera.cppT0ny2
Related to commit 41c5483. Replace an occurrence of luaL_reg in src/script/lua_api/l_camera.cpp (added by commit de028fc).
2017-05-06Clean up numeric.h and split FacePositionCache from itShadowNinja
I also optiized FacePositionCache a bit: I removed a map lookup and vector copy from both branches of getFacePosition.
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.
2017-05-06Fix codestyle since CSM Camera APILoic Blot
2017-05-05[CSM] Add camera API (#5609)bigfoot547
* [CSM] Add camera API roper rebase & squash * Address nerzhul's review
2017-05-04Add option to also check the center to `find_node_near` (#5255)red-001
* Add option to also check the center to `find_node_near`
2017-05-04Add function to get server info.red-001
2017-05-02Set sky API: Add bool for clouds in front of custom skyboxparamat
Default true. Add 'm_clouds_enabled' bool to sky.h, set from new bool in 'set sky' API. Make 'getCloudsVisible()' depend on 'm_clouds_enabled' instead of 'm_visible' (whether normal sky is visible).
2017-05-03Sneak: Improve and fix various thingsSmallJoker
Remove useless `got_teleported`. Fix jitter when walking against the sneak limits. Fix damage evading on sneak ladders.
2017-05-03Sound API: Add fading soundsBrandon
2017-04-30Add clouds APIBen Deutsch
2017-04-29Fix visual slide issue with set_detach, fixes #5620shivajiva101
2017-04-29[CSM] add screenshot api lua (#5674)Vincent Glize
* [CSM] add screenshot api lua
2017-04-27Allow scripts to get the client protocol version in non-debug builds. (#5649)red-001
2017-04-25Rename Scripting API files for consistencyShadowNinja
2017-04-25Fix various points reported by cppcheck (#5656)Loïc Blot
* Fix various performance issues reported by cppcheck + code style (CI) * Make CI happy with code style on master * guiFileSelectMenu: remove useless includes * some performance fixes pointed by cppcheck * remove some useless casts * TextDest: remove unused setFormSpec function * Fix various iterator post-increment reported by cppcheck
2017-04-23Player data to Database (#5475)Loïc Blot
* Player data to Database Add player data into databases (SQLite3 & PG only) PostgreSQL & SQLite: better POO Design for databases Add --migrate-players argument to server + deprecation warning * Remove players directory if empty
2017-04-22lua: remove core.cause_error call (#5637)Loïc Blot
it was used in minimal to trigger core crash, not very useful
2017-04-20Light update for map blocksDániel Juhász
This is not really different from the light update of a voxel manipulator. This update does not assume that the lighting was correct before, therefore it is useful for correction. Also expose this function to the Lua API for light correction, and allow voxel manipulators not to update the light.
2017-04-19Fix various copy instead of const ref reported by cppcheck (#5615)Loïc Blot
* Also remove InventoryList::peekItem unused function * Fix some post increment to preincrement reported by cppcheck
2017-04-17Sneak: Add option for old move codeparamat
Temporary option for the old move code for specific old sneak behaviour. Enabled by setting the added 'new move' physics override to false. By default 'new move' is true.
2017-04-15Implement delayed server shutdown with cancelation (#4664)Loïc Blot
2017-04-15Minimap: Do a double-typecast to fix compiling with MSVCSmallJoker
2017-04-14[CSM] Add function to set minimap shape (#5569)bigfoot547
* [CSM] Add function to set minimap shape Also deprecates `toggle_shape`. * Oh fish, I messed that one up! * Fix Style * Sorry, I missed something I still had the `luamethod` call in there! * Add getters * Remove extra line * Remove useless variable Please review again @nerzhul . Thanks! * Satisfy nerzhul
2017-04-12Fix inability to change metadata using stack:to_table() (#5547)numberZero
2017-04-11Replace occurrence of luaL_reg in l_localplayer (#5566)t0ny2
Related to commit 41c5483. Replace a final occurrence of luaL_reg in src/script/lua_api/l_localplayer.cpp