Mattes D
0f51f7e358
Fixed cWorld:ChunkStay bindings. ( #3319 )
...
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 .
2016-08-14 16:26:31 +02:00
Mattes D
2d58789d66
Converted cLuaState::cTableRef to use cTrackedRef.
...
This makes the table-based callbacks resistent to LuaState unloads and safer to use.
2016-08-13 21:16:21 +02:00
Mattes D
778b29b6f4
Fixed cFile API bindings.
2016-08-06 22:08:18 +02:00
Mattes D
f0c53dbad4
LuaAPI: Fixed bindings for cChunkDesc:GetBlockTypeMeta
2016-07-18 22:11:38 +02:00
Mattes D
bf88312a16
Converted cLuaState::cCallbackPtr into a UniquePtr.
2016-06-27 20:51:53 +02:00
Mattes D
257c5a1a54
cPluginManager: Use a callback for command handler registration.
2016-06-27 20:51:52 +02:00
Mattes D
fb4c3fc4d9
Changed cLuaWindow callbacks to use cLuaState::cCallback.
2016-06-27 20:51:50 +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
c2759186c0
Bindings: Fixed cBoundingBox API.
2016-06-05 18:23:16 +02:00
PlasmaPower
b4d9732fe9
Added GetTeamNames to cScoreboard ( #3217 )
...
Resolves #3210
2016-05-29 19:12:18 +02:00
Mattes D
e3d34d9917
Revert "Lua callback"
2016-03-21 09:58:15 +01:00
Mattes D
af200dfaae
Changed cLuaWindow callbacks to use cLuaState::cCallback.
2016-03-17 19:29:03 +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
fea556ca1b
Renamed HTTPServer folder to HTTP.
...
It contains client code as well.
2016-03-01 16:19:56 +01:00
LogicParrot
ca6ef58b1e
Bulk clearing of whitespace
2016-02-05 23:50:18 +02:00
Mattes D
958df6ad91
Added the cUrlParser class, exported to Lua API.
2015-12-25 18:50:25 +01:00
Lukas Pioch
9749c3aac9
Implemented brewing
2015-11-03 18:00:55 +01:00
Mattes D
ad57ce5f99
Extended and fixed the cFile API.
2015-09-26 22:54:18 +02:00
Lukas Pioch
e56aa4032d
Maked it compileable for clang-3.7
2015-09-25 17:09:19 +02:00
Julian Laubstein
dd5201c29e
Some warning fixes
2015-08-18 08:49:00 +02:00
Samuel Barney
4996e53bf5
Refactored code to use cLuaState
...
Fixes #2377 .
2015-08-07 21:17:21 +02:00
Mattes D
6e4122e551
Unified the doxy-comment format.
2015-07-31 16:49:10 +02:00
Samuel Barney
804805d35a
Silenced and fixed many warning messages across multiple files.
2015-07-29 09:49:30 -06:00
Mattes D
99b182b4be
Added Build info to the cRoot API.
2015-06-05 10:34:13 +02:00
tycho
480052c058
Added LuaState support for all integral types
...
All so added error handling for out of range values
2015-05-19 17:09:05 +01:00
Mattes D
163aebf8ca
Fixed cPluginManager:ForEachCommand() and ForEachConsoleCommand()
...
The functions would leak one value on the Lua stack for each enumerated command.
Fixes #2017 .
2015-05-14 19:46:18 +02:00
Mattes D
15771e4759
Moved cWorld manual bindings out into a separate file.
2015-05-13 11:30:57 +02:00
Mattes D
693ffb689c
Exported cPluginManager:ExecuteConsoleCommand() to Lua API.
...
Fixes #1999 .
2015-05-10 22:51:16 +02:00
Tiger Wang
9c490293b8
Merge remote-tracking branch 'origin/master' into warnings
...
Conflicts:
src/Mobs/Monster.cpp
src/Vector3.h
2015-05-10 12:16:20 +01:00
Mattes D
846d16315a
CheckBasicStyle: checks spaces around * and &.
2015-05-09 12:58:55 +02:00
Tiger Wang
218010cd96
Fixed some Visual Studio warnings
2015-05-08 23:32:02 +01:00
Mattes D
fee690a3d1
Fixed inter-plugin calls.
...
When an inter-plugin call failed due to function not found, the server would maul the LuaState and "yield".
Fixes #1959 .
2015-05-07 23:03:04 +02:00
tycho
448df85e56
Added support for additional data in the ParticleEffect Packet
...
Also started refactoring how broadcasts are handled
2015-05-07 03:47:46 +01:00
Mattes D
8d4a87d2c4
Fixed bindings for cFile:ReadWholeFile().
...
Fixes #1914
2015-04-30 11:44:42 +02:00
Mattes D
fc95501f68
Added cBlockArea:GetNonAirCropRelCoords() API function.
...
Fixes #1915 .
2015-04-29 15:14:22 +02:00
Mattes D
b5998873e4
cPlayer now checks restrictions.
...
Fixes #1331 .
2015-04-25 21:05:43 +02:00
Mattes D
a89d5f53fd
Refactored ManualBindings' callbacks using templates.
...
This is a bit easier to read, has better error reporting and fixes a few subtle bugs.
Fixes #1889 .
2015-04-23 22:20:31 +02:00
Mattes D
08624348f4
Implemented cPluginManager:DoWithPlugin(), fixed ForEachPlugin().
...
Both functions are exported as static.
2015-04-23 19:41:01 +02:00
Mattes D
288d2280fa
Refactored cWebPlugin for C++11 style and proper WebTab clearing.
2015-04-19 14:35:04 +02:00
Mattes D
a9b5a6c3a6
Split the plugin names and plugin folders to avoid confusing them.
...
Ref.: http://forum.mc-server.org/showthread.php?tid=1877
2015-04-19 10:57:41 +02:00
Mattes D
e5a7a730ed
Merge pull request #1826 from mc-server/UnifyPacketizer
...
Unify packetizer
2015-03-24 13:09:41 +01:00
Mattes D
cc069ccb2a
Changed cEntity::m_UniqueID to UInt32.
2015-03-21 15:18:17 +01:00
Mattes D
781c8683f7
Added cPluginLua::cResettable interface, used for scheduled tasks.
...
This allows plugins to register objects that can "survive" the plugin unloading - they will simply bail out if the plugin is already unloaded, instead of referencing bad plugin data.
Fixes #1556 .
2015-03-20 15:13:33 +01:00
Mattes D
2fed8c3227
Improved DoWithID bindings.
2015-03-19 16:24:32 +01:00
Mattes D
9eb9541060
AllToLua: Removed an unneeded class declaration.
...
It's perfectly possible to declare a class in ManualBindings without the need for declaration in AllToLua.pkg.
2015-03-19 12:34:16 +01:00
flx5
f6912bd01c
Fixed coding conventions for Pull Request #1807
2015-03-11 20:02:11 +01:00
flx5
d130696e95
Fixes #493 and #490
2015-03-11 04:14:17 +01:00
Mattes D
d4b505db02
Lua API: Fixed md5 and sha1 hex formatting.
...
std::setw() is only valid for one output operation and needs to be set again in each loop repetition.
2015-03-03 01:28:58 +01:00