Eluna implement more hooks, remove unnecessary hooks and code. Can now use Reset to reset timed events and on spawn should be used for events that happen on spawn instead of reset.

This commit is contained in:
Rochet2
2014-04-23 01:44:04 +03:00
committed by Foereaper
parent afb3aa8ca0
commit 7bd0288658
5 changed files with 173 additions and 148 deletions

View File

@@ -1039,7 +1039,8 @@ ElunaRegister<Guild> GuildMethods[] =
{ NULL, NULL },
};
#if (!defined(TBC) && !defined(CLASSIC))
#ifndef CLASSIC
#ifndef TBC
ElunaRegister<Vehicle> VehicleMethods[] =
{
// Getters
@@ -1057,6 +1058,7 @@ ElunaRegister<Vehicle> VehicleMethods[] =
{ NULL, NULL },
};
#endif
#endif
ElunaRegister<QueryResult> QueryMethods[] =
{
@@ -1228,9 +1230,11 @@ void RegisterFunctions(lua_State* L)
ElunaTemplate<Item>::SetMethods(L, ObjectMethods);
ElunaTemplate<Item>::SetMethods(L, ItemMethods);
#if (!defined(TBC) && !defined(CLASSIC))
#ifndef CLASSIC
#ifndef TBC
ElunaTemplate<Vehicle>::Register(L, "Vehicle");
ElunaTemplate<Vehicle>::SetMethods(L, VehicleMethods);
#endif
#endif
ElunaTemplate<Group>::Register(L, "Group");