Commit Graph

420 Commits

Author SHA1 Message Date
Foereaper
7ce8db73b9 First part of Player documentation 2014-12-22 04:54:45 +01:00
Patman64
bce49b99e2 Add documentation of ElunaQuery and drop GetCString method.
From the Lua user's perspective there was no difference between GetString
and GetCString, so GetCString was dropped to reduce redundancy.
2014-12-21 22:06:45 -05:00
Patman64
bb0204a530 Improve description of Creatures in documentation. 2014-12-21 22:06:30 -05:00
Patman64
04c2d3edf1 Improve Corpse method documentation. 2014-12-21 21:23:53 -05:00
Patman64
289aec2c04 Update documentation standard. 2014-12-21 21:08:19 -05:00
Patman64
2fba7cc4f5 Improve BattleGround method documentation. 2014-12-21 20:52:56 -05:00
Patman64
0498e98fc6 Improve global function documentation. 2014-12-21 20:45:55 -05:00
Patman64
ce53dfb25b Improve support for variable args in documentation.
Now prototypes are automatically generated with/without default arguments,
to better illustrate that they are optional.
2014-12-21 20:45:55 -05:00
Rochet2
c936555fbd Merge branch 'master' of https://github.com/ElunaLuaEngine/Eluna 2014-12-22 00:34:10 +02:00
Rochet2
50aa663bde Merge branch 'Rel20' of https://github.com/ElunaLuaEngine/Eluna 2014-12-22 00:33:42 +02:00
Rochet2
91606ed695 Fix documentation generation for GetMovementType 2014-12-21 23:57:22 +02:00
Foereaper
602d8f0585 Merge pull request #132 from ElunaLuaEngine/dev
Merge Dev changes into Master
2014-12-21 08:14:23 +01:00
Patman64
f15373ea43 Allow event handlers to be cleared. 2014-12-21 01:58:22 -05:00
Salja
c33f62d424 Merge branch 'master' of git@github.com:ElunaLuaEngine/Eluna.git into dev 2014-12-21 07:40:02 +01:00
Foereaper
a7a8885c0f Missing indent from previous commit
Derp
2014-12-21 07:21:33 +01:00
Salja
a79d456872 Merge branch 'master' into dev 2014-12-21 07:00:03 +01:00
Foereaper
20eeccf815 Added requested movement method
Todo: Implement TC equivalent

Part of #80
2014-12-21 06:08:46 +01:00
Foereaper
d6b65cdf4c Added Item method documentation 2014-12-21 02:13:33 +01:00
Foereaper
6d0c50977f Added Guild method documentation
Todo: Move a couple methods to player methods
2014-12-21 01:24:43 +01:00
Patman64
b281fe052e Merge branch 'dev' of github.com:ElunaLuaEngine/Eluna into dev 2014-12-20 18:08:48 -05:00
Rochet2
cbd35438a3 Fix messing up optional args and a warning 2014-12-20 18:24:55 +02:00
Rochet2
dcd0a0e89c Fix linux build and warnings 2014-12-20 18:24:54 +02:00
Rochet2
78d18e8fee Fix previous commits to be more efficient overall and have better logic. Also try fix clang error. 2014-12-20 18:24:53 +02:00
Rochet2
631e220b31 Eluna changes
* Attempt fix VS 2010 pow error
* Tweak the doc parser a little to work with variable arugments ... and show
enum names and similar.
* Change push and check to work with more types like size and time (fix osx)
* Add errors to using not implemented operations on eluna objects
* Change some SQL comments to work with documentation better
* Add functions to create uint64 and int64 values (may need rename)
* Change doc generation documentation a little to make it clearer how proto is used
2014-12-20 18:24:53 +02:00
Rochet2
809a0ac2bc Fixes #130 2014-12-20 18:15:59 +02:00
Rochet2
517685f65d Fix messing up optional args and a warning 2014-12-19 17:48:15 +02:00
Rochet2
5e27ac24aa Fix linux build and warnings 2014-12-19 15:16:02 +02:00
Rochet2
88dcea9cb7 Fix previous commits to be more efficient overall and have better logic. Also try fix clang error. 2014-12-19 14:19:00 +02:00
Rochet2
2c694bb4d4 Eluna changes
* Attempt fix VS 2010 pow error
* Tweak the doc parser a little to work with variable arugments ... and show
enum names and similar.
* Change push and check to work with more types like size and time (fix osx)
* Add errors to using not implemented operations on eluna objects
* Change some SQL comments to work with documentation better
* Add functions to create uint64 and int64 values (may need rename)
* Change doc generation documentation a little to make it clearer how proto is used
2014-12-19 13:02:44 +02:00
Patman64
ed8edf065c Fix bug in previous commit that caused temporary bindings to die early.
Instead of decrementing all their counters every time an event occurs,
only the counters of the bindings being executed will be decremented.

`_LuaTemporariesDied` is a small optimization to prevent unnecessary calls
to `UpdateTemporaryBindings`. It will only be called when a temporary
binding has run out of shots and needs to be cleaned up.
2014-12-19 00:46:50 -05:00
Patman64
7364facff6 Merge branch 'master' of github.com:ElunaLuaEngine/Eluna 2014-12-18 22:12:06 -05:00
Patman64
8c40dd1692 Allow temporary event handlers for all events.
This allows you to register a handler to only fire N times.

Dynamic event handler binding/unbinding is now possible.

For backwards compatibility, if the number of shots is missing, the event
handler will never be removed from the event.
2014-12-18 22:09:34 -05:00
Rochet2
53ef010c3d Fix shady comment 2014-12-18 19:22:14 +02:00
Rochet2
130735de43 Fix DurabilityRepairAll default value 2014-12-18 19:19:34 +02:00
Rochet2
f819245308 Eluna Fix Print functions 2014-12-16 01:54:12 +02:00
Rochet2
662babc806 Eluna Fix checking of objects with varying types 2014-12-16 01:21:42 +02:00
Rochet2
cb7f9d5145 Eluna add int64 datatype, rename functions for osx, enhance object checking code 2014-12-15 23:29:49 +02:00
Rochet2
7671054425 Eluna fix TC errors from previous commits, fix merge and fix a crash on osx 2014-12-15 23:25:09 +02:00
Rochet2
525e108b83 Implement log print functions 2014-12-15 23:25:08 +02:00
Rochet2
e683f48fbb Expose time diff functions 2014-12-15 23:25:08 +02:00
Rochet2
24f4415eb9 Update definition for cmangos & mangos changes TEAM_NEUTRAL => TEAM_INDEX_NEUTRAL
Temporary branch for mangoszero & cmangos changes until new changes are complete.
2014-12-15 23:17:26 +02:00
Rochet2
a068a33bed Fix GetTargetDest
Deleting function cache. It is causing problems with few functions and there is not much use for it, especially with our current setup.
2014-12-15 16:58:06 +02:00
Patman64
3ff4c5f26e Allow multiple callbacks for the same entry/event combo.
The callbacks will be called in reverse-order of registration.
2014-12-15 02:16:37 -05:00
Patman64
967a8045eb Fix calling Eluna functions from coroutines.
Fixes #126.
2014-12-15 00:33:46 -05:00
Patman64
3f08b37fd0 Make ReactorAI the default AI on mangos and allow overriding.
All AI event handlers (except OnReset) can now override the default AI
behavior on both mangos and Trinity by returning true.

For default behavior, return false or nothing.

Fixes #124.
2014-12-14 23:24:41 -05:00
Rochet2
28788e0efe Eluna fix aura update for (c)mangos tbc and classic 2014-12-01 21:31:34 +02:00
Rochet2
7f496959f5 Eluna fix (c)mangos build for mthread changes 2014-12-01 19:56:44 +02:00
Rochet2
19f3dc297a Eluna fix visual updates for aura methods for (c)mangos 2014-12-01 17:34:14 +02:00
Rochet2
6268216a64 Eluna implement changes from new_mthread to master ~ Does not add multithread support 2014-11-30 01:37:45 +02:00
Rochet2
a7f4954fbe Eluna implement functions from #121, implement hidden file ignoring closes #122, enhance documentation in places, change requiring some now only allowing unique filenames 2014-11-22 17:16:41 +02:00