summaryrefslogtreecommitdiffstats
path: root/source/PluginLua.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Added a global "g_Plugin" object to all Lua plugins.madmaxoft2013-09-181-0/+3
| | | | This allows plugins to have an empty Initialize function and implementing all their initialization at global level, thus modularising everything.
* Fixed AddHook() wanting old-style function names.madmaxoft2013-08-221-10/+20
| | | | Error reported by STR_Warrior in the forum http://forum.mc-server.org/showthread.php?tid=1227&pid=9620#pid9620
* Hook adding uses the new API.madmaxoft2013-08-211-143/+551
| | | | Multiple hooks per plugin can be added. The cPluginManager.AddHook() has four available signatures, the recommended one is cPluginManager.AddHook(HOOK_TYPE, CallbackFunction)
* Fixed a warning on closing invalid plugins.madmaxoft2013-08-201-1/+4
|
* Finished renaming cPlugin_NewLua to cPluginLua.madmaxoft2013-08-191-67/+67
|
* Implemented the OnWorldTick hook.madmaxoft2013-08-191-0/+12
| | | | Triggerred for each world every time it ticks, parameters are the cWorld and the previous tick length (a_Dt)
* Added the OnHopperPullingItem and OnHopperPushingItem hooks.madmaxoft2013-08-111-0/+24
| | | | Requested in FS 412, slightly modified the params.
* Added OnPlayerAnimation() hook.madmaxoft2013-08-111-0/+13
| | | | Initial patch by @STR_Warrior, updated to account for different animation packets.
* Renamed Plugin_NewLua to PluginLua.madmaxoft2013-08-101-0/+998