Patman64
dd39592ddd
Allow binding event handlers to individual Creatures.
...
Because GUIDs are, in fact, not globally unique on mangos, the actual
unique identifier is the GUID/instance ID pair of the Creature.
On Trinity Creatures in instances are assigned new GUIDs. This means that
the instance ID part is redundant but must be used anyway for consistency.
2015-01-11 18:48:38 -05:00
Rochet2
d42cb350fe
Remove Weather functions and type, add Map:SetWeather
...
Weather hook changes
2015-01-11 20:17:09 +02:00
Rochet2
882eb40acb
Add method GetItemByGUID
2015-01-09 23:13:31 +02:00
Rochet2
e1230126ab
Eluna fix Gossip hooks, possible crash, typo, lua open hook and make some base documentation about return value changes to source
2015-01-09 21:45:21 +02:00
Rochet2
cc71273277
Fix item use not working - Return value changed from false to true
2015-01-07 12:12:51 +02:00
Patman64
f38591565f
Move On_Reset calls in HookMgr.
...
On_Reset should be called whether or not the hooks that call it have
events.
2015-01-06 20:03:00 -05:00
Rochet2
0f24a77351
Merge pull request #136 from ElunaLuaEngine/hookmgr_cleanup
...
Hookmgr cleanup
Includes:
- Locking
- Removed macros
- Added more checking to calling hooks
- Replacing of an argument on hook call
2015-01-06 13:46:56 +02:00
Rochet2
5e7b0ee0f7
Fix TC build, analysis warnings and triggering addon message hooks
2015-01-06 12:43:53 +02:00
Patman64
6371728547
Return from hooks early if no bindings exist.
...
Also add locking to the bindings to allow for thread-safe checking if
bindings exist.
2015-01-05 23:48:18 -05:00
Patman64
15f161fa1e
Clean-up Eluna lock macro.
2015-01-05 22:52:46 -05:00
Patman64
e2f81b7336
Make the Eluna mutex static.
...
It was previously unsafe to reload Eluna because it had to be reloaded
with the mutex unlocked. This is because the mutex's lifespan was shorter
than the Eluna instance it was guarding.
2015-01-05 22:50:51 -05:00
Patman64
1678b3e40f
Invalidate ElunaObjects after hook calls.
2015-01-05 21:24:55 -05:00
Patman64
1194074fb2
Simplify ReplaceArgument.
2015-01-05 21:20:14 -05:00
Rochet2
0e7367e23d
Fix hookmgr rewrite
...
Fix:
- crash on reload
- crash on error in call
- a warning from type change
2015-01-05 16:38:19 +02:00
Patman64
2ff25ee205
Fix getting results from event handlers.
2015-01-04 22:31:51 -05:00
Patman64
4349a80d8e
Allow updating argument values between handler calls.
...
This allows handlers that return values to see the returned values of previous
handlers. E.g. if Handler A modifies the value from 10 to 20, Handler B
will receive 20 as an argument instead of the original 10.
2015-01-04 21:38:18 -05:00
Patman64
717d1b698d
Re-write HookMgr macros into functions and clean-up HookMgr.cpp.
2015-01-04 20:30:31 -05:00
Rochet2
00cd909d4c
Merge pull request #135 from ElunaLuaEngine/mutexlock
...
Eluna add mutex lock for hook calls
Needed for packet hooks.
Packet hooks will get some changes soon.
2015-01-04 11:59:16 +02:00
Rochet2
092c61c20b
Eluna add mutex lock for hook calls
2015-01-03 22:20:30 +02:00
Rochet2
5bf5b11c6f
Change doc copyright
2015-01-02 19:59:49 +02:00
Tommy
803a835668
Happy New Year 2015
2015-01-01 13:59:33 -05:00
Rochet2
dfca1c67f2
Eluna fix reload crash and add more asserts
2014-12-26 01:30:48 +02:00
Rochet2
5330a3d9b9
Eluna Clean part of old code off
2014-12-24 00:49:28 +02:00
Rochet2
07d25f5031
Eluna Fix static analysis noted warnings and errors
2014-12-23 23:21:13 +02:00
Foereaper
36e8704853
Merge branch 'master' of https://github.com/elunaluaengine/eluna
2014-12-23 15:06:45 +01:00
Foereaper
6a407404ec
Reimplement a few methods
2014-12-23 15:06:24 +01:00
Patman64
9c63124205
Merge branch 'clear_events'
2014-12-23 00:41:08 -05:00
Foereaper
b76ffff56d
Updated team list
2014-12-23 02:01:19 +01:00
Foereaper
1271d6bc92
Added Method source group
2014-12-23 01:23:30 +01:00
Foereaper
40dd00f570
Fixes shutdown error for Mangos
2014-12-23 00:46:06 +01:00
Rochet2
66a624d5db
Fix item not working with gossip
...
Thanks @ak47sigh
2014-12-22 22:58:17 +02:00
Patman64
aa151da561
Improve Spell documentation.
2014-12-22 01:06:17 -05:00
Patman64
68df5d74fa
Improve WorldPacket documentation.
2014-12-22 00:57:57 -05:00
Patman64
3a83b8073b
Improve Map method documentation.
2014-12-22 00:57:47 -05:00
Patman64
340fe17f4f
Add Object method documentation and drop Object:UpdateUInt32.
...
UpdateUInt32 appears to be a deprecated method and isn't used anywhere
else in CMaNGOS. SetUInt32 should be used instead.
2014-12-22 00:30:22 -05:00
Foereaper
9e196581c2
Added temporary link to LuaFunctions documentation
2014-12-22 06:25:05 +01:00
Foereaper
8238ac05ca
Merge branch 'master' of https://github.com/elunaluaengine/eluna
2014-12-22 04:55:08 +01:00
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