Mattes D
a3112cdc45
Revert "Redstone fixes"
2016-07-29 07:56:50 +02:00
Mattes D
fc5fb03fec
CMake: Fix system Lua usage for non-5.1 versions. ( #3271 )
2016-07-21 10:46:31 +01:00
Mattes D
c54691a3e5
Merge pull request #3204 from cuberite/BindingsGenLua
...
Added a Pure-Lua script for bindings generation.
2016-07-19 10:15:49 +02:00
Mattes D
2a05d8870d
CMake: Silenced CMP0054 policy warning.
...
The warning is still emitted for jsoncpp and libevent, but not for Cuberite anymore.
2016-07-18 22:11:42 +02:00
Mattes D
8eaa8613da
CMake: Remove needless minimum version specifications.
2016-07-18 22:11:42 +02:00
Mattes D
430b623223
Use system Lua, if available, to generate bindings.
...
Closes #1031 .
2016-07-18 22:11:41 +02:00
Mattes D
0e24a0beae
APIDump: Added explicit IsStatic flag to static functions.
2016-07-18 22:11:41 +02:00
Mattes D
f8e1df2476
Updated API documentation.
2016-07-18 22:11:40 +02:00
Mattes D
28732bc339
Vector3: Removed useless NormalizeCopy overload from LuaAPI.
2016-07-18 22:11:39 +02:00
Mattes D
abf35f3976
DiffAPIDesc: Support optional params in desc.
2016-07-18 22:11:39 +02:00
Mattes D
f0c53dbad4
LuaAPI: Fixed bindings for cChunkDesc:GetBlockTypeMeta
2016-07-18 22:11:38 +02:00
Mattes D
b11605e951
Bindings: Added a script to generate a diff between APIDesc and ToLua.
...
This allows a simple copy operation from the DoxyComments into APIDesc.
2016-07-18 22:11:38 +02:00
Mattes D
984c0a2cef
Bindings: Don't generate docs for private symbols, mark static symbols.
2016-07-18 22:11:38 +02:00
Mattes D
9b388cd239
APIDump: Changed not to use globals, added more doxycomments.
2016-07-18 22:11:37 +02:00
Mattes D
61f76dd7a5
Bindings: Output description is valid Lua file.
2016-07-18 22:11:37 +02:00
Mattes D
751d0d0736
Bindings: Extract unexported DoxyComments.
2016-07-18 22:11:36 +02:00
Mattes D
c5714f6e4b
Bindings: Extract DoxyComments
2016-07-18 22:11:36 +02:00
Mattes D
1a30c2262b
Added a Pure-Lua implementation for bindings generation.
...
The BindingsProcessor.lua script can be opened in ZeroBraneStudio and debugged from there, it invokes the entire ToLua++ processing.
Also added docs-generation to the ToLua++ processor.
2016-07-18 22:11:35 +02:00
Mattes D
69ef7f7158
Merge pull request #3261 from Seadragon91/patch-1
...
Changed Hopper to wtHopper and adjusted .gitignore.
2016-07-12 22:49:58 +02:00
Mattes D
443b657b7d
Merge pull request #3259 from cuberite/FixJsonBool
...
Fixed Lua Json serializing a bool.
2016-07-10 12:44:09 +02:00
Mattes D
5095a9f48b
Fixed Lua Json serializing a bool.
...
Fixes #3257 .
2016-07-10 08:16:44 +02:00
Mattes D
402ca1c4dd
Merge pull request #3252 from Altenius/fixpiston
...
Fixed piston destroying other pistons
2016-07-06 15:46:26 +02:00
Mattes D
15236e327b
Merge pull request #3247 from cuberite/FixBindingsDependencies
...
Added missing Bindings dependencies
2016-07-02 10:34:15 +02:00
Mattes D
a184f57eb3
Bindings: Added missing dependencies.
...
Fixes #3245
2016-07-02 00:30:22 +02:00
Mattes D
0eea5c9fc5
CircleCI: Check for missing Bindings dependencies
...
This commit fails the CircleCI tests on purpose, so that we know that the check works.
2016-07-02 00:30:22 +02:00
Mattes D
54b6ef7aff
Merge pull request #3246 from cuberite/revert_redstone_handler
...
Revert redstone handler
2016-07-02 00:29:47 +02:00
Mattes D
6310d0d286
Merge pull request #3244 from cuberite/minecart_chest
...
Close chest window if minecart is destroyed
2016-07-01 08:45:11 +02:00
Mattes D
9af664dc73
Merge pull request #3232 from cuberite/LuaCallback
...
Lua callback
2016-06-30 10:42:58 +02:00
Mattes D
bf88312a16
Converted cLuaState::cCallbackPtr into a UniquePtr.
2016-06-27 20:51:53 +02:00
Mattes D
7a6670d1d1
Removed dead code related to callbacks.
2016-06-27 20:51:52 +02:00
Mattes D
257c5a1a54
cPluginManager: Use a callback for command handler registration.
2016-06-27 20:51:52 +02:00
Mattes D
24853397ef
LuaState: Implemented proper locking for cCallback.
2016-06-27 20:51:51 +02:00
Mattes D
fb4c3fc4d9
Changed cLuaWindow callbacks to use cLuaState::cCallback.
2016-06-27 20:51:50 +02:00
Mattes D
a473725121
Removed the cPluginLua::cResettable class.
...
The functionality provided by that class has been superseded by cLuaState::cCallback, with better multithreading support.
2016-06-27 20:51:50 +02:00
Mattes D
b7e1a66815
Changed world tasks to use cLuaState::cCallback.
2016-06-27 20:51:49 +02:00
Mattes D
4489a89fde
Changed plugin hook registrations to use cLuaState::cCallback.
2016-06-27 20:51:49 +02:00
Mattes D
af8c96026d
Removed cWebPlugin, WebAdmin uses cLuaState::cCallback.
2016-06-27 20:51:48 +02:00
Mattes D
1f75d45222
Added cLuaState::cCallback for representing (resettable) Lua callbacks.
2016-06-27 20:51:48 +02:00
Mattes D
1462e4f70e
Self tests ( #3242 )
...
* SelfTests: Added a cEvent stress-test.
* cNetwork: Fixed startup event hang.
The original code used to hang with a ~ 1:50000 chance, because on Linux the cEvent was destroyed before its "Set()" returned.
2016-06-26 14:51:12 +01:00
Mattes D
5ee6643804
Merge pull request #3228 from cuberite/SeparateSelfTests
...
Separate self tests
2016-06-19 14:57:14 +02:00
Mattes D
8610083a8e
cNetwork: Fixed possible hang when terminating immediately after init.
2016-06-18 13:12:12 +02:00
Mattes D
4d9769a484
SelfTests: More logging for EnumInterfaces.
2016-06-18 13:12:11 +02:00
Mattes D
96034810df
Flush immediately after each line when running tests.
2016-06-18 13:12:11 +02:00
Mattes D
ea47247dc7
SelfTests: Print a quick message on test start.
2016-06-18 13:12:10 +02:00
Mattes D
36eefbf0f2
SelfTests: Removed the unneeded cSelfTests class.
2016-06-18 13:12:10 +02:00
Mattes D
aa4b3ebf2f
SelfTests: Fixed HTTPMessageParser tests for out-of-source builds.
2016-06-18 13:12:09 +02:00
Mattes D
82e81c01a2
SelfTests: Fixed missing override keyword in EchoServer.
2016-06-18 13:12:09 +02:00
Mattes D
75a81cf753
SelfTests: Moved BoundingBox test to a separate project.
2016-06-18 13:12:09 +02:00
Mattes D
a781be5456
SelfTests: Moved SchematicFileSerializer test into a separate project.
2016-06-18 13:12:08 +02:00
Mattes D
db17f585af
SelfTests: Moved cCompositeChat test to a separate project.
2016-06-18 13:12:08 +02:00
Mattes D
ab6f68b42c
SelfTests: Moved ByteBuffer test to a separate project.
2016-06-18 13:12:07 +02:00
Mattes D
3d164a77cb
SelfTests: Organized into solution folders.
2016-06-18 13:12:07 +02:00
Mattes D
3184433756
Moved NetworkInterfaceEnum test to a separate test project.
2016-06-18 13:12:06 +02:00
Mattes D
ec998e821f
Merge pull request #3224 from QUSpilPrgm/master
...
Add an activation flag to the block metadata of droppers and dispensers
2016-06-16 21:54:09 +02:00
Mattes D
b403ad4d68
Merge pull request #3227 from cuberite/NormalizeVectorApi
...
Normalized Vector3 API to use the same capitalization as everything else
2016-06-12 07:57:47 +02:00
Mattes D
ce30e3f666
Normalized Vector3 API to use the same capitalization as all else.
2016-06-10 17:59:33 +02:00
Mattes D
456ffa5bd6
Merge pull request #3225 from cuberite/FixAutoAPI
...
Fixed auto-generated api
2016-06-05 21:18:52 +02:00
Mattes D
c2759186c0
Bindings: Fixed cBoundingBox API.
2016-06-05 18:23:16 +02:00
Mattes D
fbe9866524
Bindings: Add a const-ptr variant to all stack getter functions
2016-06-05 17:20:50 +02:00
Mattes D
fc874ed57d
Merge pull request #3219 from QUSpilPrgm/master
...
Update dispenser code to let them act more like in Vanilla
2016-06-04 13:08:15 +02:00
Mattes D
beb3660c42
Debuggers: Added the forgotten Inject.lua file.
...
This works as a test for inter-plugin calls, the "testcall" command injects this file into the Core plugin.
2016-06-02 14:43:19 +02:00
Mattes D
5618e453e6
LuaState: Inter-plugin calls now support simple tables. ( #3220 )
2016-05-31 00:01:55 +01:00
Mattes D
bbcf2d6bd6
Merge pull request #3078 from cuberite/AddTerrainGenDocs
...
Add terrain gen docs
2016-05-29 19:14:22 +02:00
Mattes D
a53371be0f
Docs: Added TOC and GrownBiomes to generator docs.
2016-05-29 19:12:48 +02:00
Mattes D
1d0bfead3e
Added GrownBiomeGenVisualiser.
2016-05-29 19:12:47 +02:00
Mattes D
fa53e98419
Merge pull request #3086 from cuberite/revert-2872-LuaCallback
...
Revert "Lua callback"
2016-03-21 10:40:38 +01:00
Mattes D
e3d34d9917
Revert "Lua callback"
2016-03-21 09:58:15 +01:00
Mattes D
8fc9cfa411
Merge pull request #3084 from cuberite/seadragon91-patch-1
...
Fixed misuse of comma.
2016-03-19 07:35:53 +01:00
Mattes D
46430911fe
Merge pull request #2872 from cuberite/LuaCallback
...
Lua callback
2016-03-17 22:21:10 +01:00
Mattes D
af200dfaae
Changed cLuaWindow callbacks to use cLuaState::cCallback.
2016-03-17 19:29:03 +01:00
Mattes D
5dfcc15d1f
Removed the cPluginLua::cResettable class.
...
The functionality provided by that class has been superseded by cLuaState::cCallback, with better multithreading support.
2016-03-17 19:29:02 +01:00
Mattes D
d0a04a7a82
Changed world tasks to use cLuaState::cCallback.
2016-03-17 19:29:02 +01:00
Mattes D
eb044e140e
Changed plugin hook registrations to use cLuaState::cCallback.
2016-03-17 19:29:01 +01:00
Mattes D
62d81eb763
Removed cWebPlugin, WebAdmin uses cLuaState::cCallback.
2016-03-17 19:29:01 +01:00
Mattes D
3aa7656823
Added cLuaState::cCallback for representing (resettable) Lua callbacks.
2016-03-17 19:29:00 +01:00
Mattes D
64b136c6d8
Merge pull request #3081 from Arthur2e5/master
...
Some careless review on compile.sh
2016-03-17 08:14:53 +01:00
Mattes D
72467fe0d4
HTTP: Added missing HasAuth flag initialization.
2016-03-11 10:44:35 +01:00
Mattes D
39144480f5
Merge pull request #3069 from cuberite/FixHttpHeaderParsing
...
HTTP: Fixed header parsing.
2016-03-03 16:37:39 +01:00
Mattes D
6f174b99bf
HTTP: Fixed header parsing.
2016-03-03 16:20:11 +01:00
Mattes D
4bf2dd2d2b
WebAdmin: Finish HTTP responses.
2016-03-03 13:46:45 +01:00
Mattes D
c815d03eb4
Merge pull request #3060 from tonibm19/master
...
Fixed horse bug
2016-03-01 20:07:11 +01:00
Mattes D
7cc8f8dd22
Merge pull request #3031 from cuberite/RenameHttpClasses
...
Refactor HTTP parsing
2016-03-01 16:58:43 +01:00
Mattes D
6ff389f6d4
HTTP: Fixed typos and bad leftovers.
2016-03-01 16:20:00 +01:00
Mattes D
71a1fa81f0
Renamed HTTPResponse to HTTPOutgoingResponse.
2016-03-01 16:19:59 +01:00
Mattes D
52d18b4559
WebAdmin uses the new HTTP parser framework.
2016-03-01 16:19:58 +01:00
Mattes D
12d95ab047
HTTP: Fixed response parser, unified API.
2016-03-01 16:19:58 +01:00
Mattes D
52c5ce6598
Fixed HTTP parsing when in insecure mode.
...
Parsing would ignore the size of data already buffered, resulting in bad_alloc exception.
Fixes #2898 .
2016-03-01 16:19:57 +01:00
Mattes D
1d05fc95ae
Added unit test for parsing HTTP request.
2016-03-01 16:19:57 +01:00
Mattes D
fea556ca1b
Renamed HTTPServer folder to HTTP.
...
It contains client code as well.
2016-03-01 16:19:56 +01:00
Mattes D
fce68dc8f3
Added HTTPResponseParser.
2016-03-01 16:19:56 +01:00
Mattes D
b92346e3cc
Moved cHTTPRequest to a separate file, renamed to cHTTPRequestParser.
2016-03-01 16:19:55 +01:00
Mattes D
2dbc54a148
Renamed the HTTP classes to indicate they're for server.
2016-03-01 16:19:55 +01:00
Mattes D
48532d86cf
Merge pull request #3057 from tonibm19/master
...
Mobs no longer spawn at the top of the nether.
2016-03-01 12:45:43 +01:00
Mattes D
7f76c7f362
Merge pull request #3052 from cuberite/FixIntGens
...
Fix int gens
2016-02-24 21:29:38 +01:00
Mattes D
be9f24d942
Fixed LinearUpscale's bounds checking.
2016-02-24 14:57:36 +01:00
Mattes D
4457110579
Made ProtIntGen's max size compile-time-configurable.
2016-02-24 14:57:35 +01:00
Mattes D
191140dd5e
Removed old and wrong code from Globals.h.
2016-02-24 14:57:34 +01:00
Mattes D
1540f8fb5e
Fixed includes in IntGen.
2016-02-24 14:57:33 +01:00
Mattes D
81e80f6edb
Merge pull request #2897 from cuberite/FlushLuaSsl
...
LuaTCPLink: Report data received via SSL just before connection closed.
2016-02-21 12:25:43 +01:00
Mattes D
98d3bdebb4
LuaTCPLink: Report data received via SSL just before connection closed.
2016-02-21 10:44:34 +01:00