summaryrefslogtreecommitdiffstats
path: root/src/Bindings/DeprecatedBindings.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-10-18cBlockInfo: further cleanup (#5001)Tiger Wang1-121/+0
* cBlockInfo: further cleanup + Use switch statements instead of lookup in dynamically initialised arrays - Remove some deprecated bindings * Update Stubs removing references to BlockInfoArray
2020-09-05Use pitch lookup in noteblock block entity (#4826)12xx121-0/+106
- Removed the calculation in the noteblock block entity I did the calculation in python if anyone is interested where the numbers are from Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-08-27Changed tree-growing functions in cWorld to use Vector3i coords.Mattes D1-2/+119
2020-04-17More Vector3 in cBlockHandler (#4644)Mattes D1-0/+38
* cBlockHandler.OnUpdate uses Vector3 params. Also slightly changed how block ticking works.
2020-04-14Bindings: Allow coercion between Vector3 subtypes. (#4646)Mattes D1-58/+0
In manually bound functions, allows one to use any Vector3<T> value, as well as a {x, y, z} table, in Lua as any Vector3<T> parameter. Has example in Debuggers' /vector command. Unfortunately doesn't work in auto-bindings.
2020-04-03Removed the obsolete cTracer class. (#4594)Mattes D1-46/+0
2020-04-03Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D1-0/+1
The BlockID.h file was removed from Globals.h and renamed to BlockType.h (main change) The BlockInfo.h file was removed from Globals.h (main change) The ENUM_BLOCK_ID and ENUM_ITEM_ID enum names were replaced with ENUM_BLOCK_TYPE and ENUM_ITEM_TYPE (cosmetics) The various enums, such as eDimension, eDamageType and eExplosionSource were moved from BlockType.h to Defines.h, together with the helper functions for converting between them and strings (StringToDimension et al.) (minor) Many inline functions were moved from headers to their respective cpp files, so that BlockType.h could be included only into the cpp file, rather than the header. That broke our tests a bit, since they pick bits and pieces out of the main code and provide stubs for the rest; they had to be re-stubbed and re-verified. eMonsterType values are no longer tied to E_ITEM_SPAWN_EGG_META_* values
2018-02-20cBlockInfo: Deprecate direct access to variables. (#4184)peterbell101-9/+55
2018-01-23Removed cBlockInfo.m_IsSnowable (#4105)Bond-0091-0/+39
* Removed cBlockInfo.m_IsSnowable * Return IsSnowable from deprecated variable binding m_IsSnowable.
2017-12-21Fixed Clang 5.0 compile errors (#4085)bibo381-1/+1
* Fixed Clang 5.0 compile errors * Fixed wrong comment * Only disable warnings in Clang 5 or higher * Added a CMake condition for the Clang 5 no-zero-as-null-pointer-constant warning * Now using the use_nullptr branch of the Cuberite specific SQLiteCpp fork
2017-08-18Represent cItem::m_Lore as an AStringVector (#3882)peterbell101-0/+56
* Replace cItem::m_Lore with AStringVector * Reword deprecation warning * Fix lua bindings
2017-08-07cBlockInfo: Deprecate place soundpeterbell101-0/+61
2017-08-03Remove double includes part 2 (#3890)peterbell101-1/+0
2017-05-11Tracer replacement (#3704)Mattes D1-0/+46
* Replaced cTracer usage with cLineBlockTracer. * Exported new cLineBlockTracer utility functions to Lua API.
2016-06-10Normalized Vector3 API to use the same capitalization as all else.Mattes D1-0/+58
2015-08-18Some warning fixesJulian Laubstein1-24/+40
2015-08-07Refactored code to use cLuaStateSamuel Barney1-27/+18
Fixes #2377.
2015-07-29Silenced and fixed many warning messages across multiple files.Samuel Barney1-35/+35
2014-12-05BasicStyle: Added missing braces to control statements.Mattes D1-0/+14
2014-12-03clearing CheckBasicStyle.lua messagesp-mcgowan1-2/+2
2014-11-29Mark StringToMobType() as deprecated. Use cMonster:StringToMobType() insteadHowaner1-0/+38
2014-11-17Use cLuaState's stack trace.Howaner1-48/+27
2014-11-17Added UpdateSign() method to DeprecatedBindings.cppHowaner1-0/+86
2014-10-23En masse NULL -> nullptr replaceTiger Wang1-18/+18
2014-10-20En masse NULL -> nullptr replaceTiger Wang1-18/+18
2014-09-26Removed a few unnessicary includesTycho1-5/+0
2014-07-19Fixed style: spaces after commas.madmaxoft1-19/+19
2014-07-17Fixed issues relating to saplings and leavesTiger Wang1-27/+0
- Removed cBlockInfo::RequiresSpecialTool * Fixes #1195 * Fixes #1201
2014-07-17Normalized comments.madmaxoft1-9/+9
This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
2014-04-03Removed the bindings to set old g_BlockXXX arrays.Mattes D1-297/+65
Those were supposed to be read-only; there's no point in writing to them anyway. Also fixed MSVC type warnings in the code.
2014-03-25More fixes to get it to compile for me on Mac 10.9. Mostly just newline additions, but some of the unused variables were causing errors, so I wrapped them in #ifndef __APPLE__ calls, since I didn't know if they were going to be used in the future.Samuel Barney1-0/+1
Also had to undefine TOLUA_TEMPLATE_BIND a couple of times.
2014-03-02Fixed MSVC warnings in DeprecatedBindings.madmaxoft1-8/+76
2014-03-02GetById => Getandrew1-9/+9
2014-03-02Removed g_BlockXXX arraysandrew1-0/+4
2014-03-02Manually exported g_Block tablesandrew1-0/+434