summaryrefslogtreecommitdiffstats
path: root/src/Bindings/ManualBindings_World.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Prefer static_cast to reinterpret_cast (#4223)peterbell102018-05-021-1/+1
| | | | | | | * Change reinterpret_cast -> static_cast wherever possible * Remove more unnecessary `const_cast`s. reinterpret_casts should be avoided for the same reason as c-style casts - they don't do any type-checking. reinterpret_cast was mainly being used for down-casting in inheritance hierarchies but static_cast works just as well while also making sure that there is actually an inheritance relationship there.
* Removed UTF-8 BOM (#4033)Lukas Pioch2017-09-191-1/+1
|
* Replace ItemCallbacks with lambdas (#3993)peterbell102017-09-111-3/+3
|
* Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot2017-09-021-3/+3
| | | | This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
* Replace ItemCallbacks with lambdas (#3948)peterbell102017-09-011-3/+3
|
* Add cUUID class (#3871)peterbell102017-08-251-1/+49
|
* Remove double delete of PrepareChunk lua callback (#3844)peterbell102017-07-121-29/+16
|
* Added bed entity (#3823)Lukas Pioch2017-07-071-0/+1
| | | | | | | | | | * Added bed entity * Export cBedEntity to lua * Set color of bed through item damage value * Added bed entity to APIDoc * NBT: Added loading and saving * Crafting recipes for the colored beds
* cLuaState: Added template to push multiple values in a single call. (#3331)Mattes D2016-08-211-10/+3
|
* Fix cWorld:QueueTask() Lua's bindingElNounch2016-08-181-2/+1
| | | | | | Manual binding expect three parameters : self, a number, a function And then read self and a function... Removing the extra check for the broken second argument
* Fixed cWorld:ChunkStay bindings. (#3319)Mattes D2016-08-141-14/+15
| | | | | | Introduced new cLuaState::cOptionalCallback for representing optional callbacks (nil from Lua side). Introduced new cLuaState::cStackTable class for easy access to Lua table's elements. Fixes #3305.
* Converted cLuaState::cCallbackPtr into a UniquePtr.Mattes D2016-06-271-2/+2
|
* LuaState: Implemented proper locking for cCallback.Mattes D2016-06-271-1/+3
|
* Changed world tasks to use cLuaState::cCallback.Mattes D2016-06-271-67/+38
|
* Revert "Lua callback"Mattes D2016-03-211-38/+67
|
* Changed world tasks to use cLuaState::cCallback.Mattes D2016-03-171-67/+38
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-11/+11
|
* Fix typo (ammount)Arnaud Meuret2016-01-021-3/+3
|
* Revised the explosion-related Lua API and docs.Mattes D2015-12-181-34/+128
| | | | Fixes #2746.
* Implemented brewingLukas Pioch2015-11-031-0/+2
|
* Fixed a race condition between chunk loader and generator.Mattes D2015-10-041-2/+2
| | | | | | When using ChunkWorx to generate multiple chunks, the server would sometimes fail an assert because it would generate a chunk even when it was successfully loaded. This was caused by chunks queued in cWorld's m_SetChunkDataQueue and thus being marked as "InQueue" although they were already loaded. Solved by adding a new parameter to chunk coord callbacks specifying whether the operation succeeded or failed, and using that instead of the chunk presence flag to decide whether to generate or not.
* Prepared ScheduleTask for threading refactorTiger Wang2015-09-251-44/+11
| | | | | * Llama-ified and condensed Schedule/QueueTask - Removed hackery done with piston animations
* fixed casttycho2015-09-241-1/+1
|
* Add new "ForEach" function: ForEachLoadedChunk.tycho2015-09-241-0/+54
|
* Some warning fixesJulian Laubstein2015-08-181-6/+16
|
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-4/+4
|
* Buttons no longer click on when already on. Buttons now play sound when clicking off.Hax522015-06-241-1/+1
|
* Made cLightingThread own its callbackstycho2015-05-301-2/+1
|
* Merge branch 'master' into PreventNewWarningstycho2015-05-231-1/+1
|\
| * TryGetHeight returns a boolAlexander Harkness2015-05-231-1/+1
| | | | | | should fix #2099
* | Added LuaState support for all integral typestycho2015-05-191-1/+1
|/ | | | All so added error handling for out of range values
* Moved cWorld manual bindings out into a separate file.Mattes D2015-05-131-0/+588