|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <LuaEngine.h>
Classes | |
| struct | ElunaBind |
| struct | ObjectDistanceOrderPred |
| struct | ObjectGUIDCheck |
| class | WorldObjectInRangeCheck |
Public Types | |
| typedef std::map< int, int > | ElunaBindingMap |
| typedef std::unordered_map< uint32, ElunaBindingMap > | ElunaEntryMap |
Public Member Functions | |
| void | BeginCall (int fReference) |
| Corpse * | CHECK_CORPSE (lua_State *L, int narg) |
| Creature * | CHECK_CREATURE (lua_State *L, int narg) |
| GameObject * | CHECK_GAMEOBJECT (lua_State *L, int narg) |
| Item * | CHECK_ITEM (lua_State *L, int narg) |
| int64 | CHECK_LONG (lua_State *L, int narg) |
| Object * | CHECK_OBJECT (lua_State *L, int narg) |
| WorldPacket * | CHECK_PACKET (lua_State *L, int narg) |
| Player * | CHECK_PLAYER (lua_State *L, int narg) |
| Quest * | CHECK_QUEST (lua_State *L, int narg) |
| Spell * | CHECK_SPELL (lua_State *L, int narg) |
| uint64 | CHECK_ULONG (lua_State *L, int narg) |
| Unit * | CHECK_UNIT (lua_State *L, int narg) |
| Vehicle * | CHECK_VEHICLE (lua_State *L, int narg) |
| WorldObject * | CHECK_WORLDOBJECT (lua_State *L, int narg) |
| Eluna () | |
| void | EndCall (uint8 res) |
| bool | ExecuteCall (uint8 params, uint8 res) |
| void | Initialize () |
| void | LoadDirectory (const char *directory, LoadedScripts *scr) |
| void | Push (lua_State *) |
| void | Push (lua_State *, bool) |
| void | Push (lua_State *, const char *) |
| void | Push (lua_State *, double) |
| void | Push (lua_State *, float) |
| void | Push (lua_State *, int32) |
| void | Push (lua_State *, int64) |
| void | Push (lua_State *, std::string) |
| void | Push (lua_State *, uint32) |
| void | Push (lua_State *, uint64) |
| void | Push (lua_State *, WorldObject const *obj) |
| void | Push (lua_State *L, Object const *obj) |
| void | Push (lua_State *L, Pet const *pet) |
| template<typename T> | |
| void | Push (lua_State *L, T const *ptr) |
| template<typename T, typename std::enable_if< std::is_enum< T >::value, int >::type = 0> | |
| void | Push (lua_State *L, T value) |
| void | Push (lua_State *L, TempSummon const *summon) |
| void | Push (lua_State *L, Unit const *unit) |
| void | Register (uint8 reg, uint32 id, uint32 evt, int func) |
| ~Eluna () | |
Static Public Member Functions | |
| static Eluna * | instance () |
| static void | report (lua_State *) |
Public Attributes | |
| ElunaBind * | CreatureEventBindings |
| ElunaBind * | CreatureGossipBindings |
| ElunaBind * | GameObjectEventBindings |
| ElunaBind * | GameObjectGossipBindings |
| std::map< int, std::vector< int > > | GroupEventBindings |
| std::map< int, std::vector< int > > | GuildEventBindings |
| ElunaBind * | ItemEventBindings |
| ElunaBind * | ItemGossipBindings |
| lua_State * | L |
| EventMgr | m_EventMgr |
| std::map< int, std::vector< int > > | PlayerEventBindings |
| ElunaBind * | playerGossipBindings |
| std::map< int, std::vector< int > > | ServerEventBindings |
| std::map< int, std::vector< int > > | VehicleEventBindings |
Friends | |
| class | ScriptMgr |
Definition at line 379 of file LuaEngine.h.
| typedef std::map<int, int> Eluna::ElunaBindingMap |
Definition at line 387 of file LuaEngine.h.
| typedef std::unordered_map<uint32, ElunaBindingMap> Eluna::ElunaEntryMap |
Definition at line 388 of file LuaEngine.h.
|
inline |
Definition at line 530 of file LuaEngine.h.
References CreatureEventBindings, CreatureGossipBindings, GameObjectEventBindings, GameObjectGossipBindings, GROUP_EVENT_COUNT, GroupEventBindings, GUILD_EVENT_COUNT, GuildEventBindings, ItemEventBindings, ItemGossipBindings, L, PLAYER_EVENT_COUNT, PlayerEventBindings, playerGossipBindings, SERVER_EVENT_COUNT, ServerEventBindings, VEHICLE_EVENT_COUNT, and VehicleEventBindings.
Referenced by instance(), and ScriptMgr.
|
inline |
Definition at line 572 of file LuaEngine.h.
References CreatureEventBindings, CreatureGossipBindings, GameObjectEventBindings, GameObjectGossipBindings, GroupEventBindings, GuildEventBindings, ItemEventBindings, ItemGossipBindings, L, PlayerEventBindings, playerGossipBindings, ServerEventBindings, and VehicleEventBindings.
| void Eluna::BeginCall | ( | int | fReference | ) |
Definition at line 264 of file LuaEngine.cpp.
References L.
| Corpse * Eluna::CHECK_CORPSE | ( | lua_State * | L, |
| int | narg ) |
Definition at line 407 of file LuaEngine.cpp.
References CHECK_WORLDOBJECT(), L, and Object::ToCorpse().
| Creature * Eluna::CHECK_CREATURE | ( | lua_State * | L, |
| int | narg ) |
Definition at line 391 of file LuaEngine.cpp.
References CHECK_WORLDOBJECT(), L, and Object::ToCreature().
| GameObject * Eluna::CHECK_GAMEOBJECT | ( | lua_State * | L, |
| int | narg ) |
Definition at line 399 of file LuaEngine.cpp.
References CHECK_WORLDOBJECT(), L, and Object::ToGameObject().
| Item * Eluna::CHECK_ITEM | ( | lua_State * | L, |
| int | narg ) |
Definition at line 447 of file LuaEngine.cpp.
References ElunaTemplate< T >::check(), and L.
| int64 Eluna::CHECK_LONG | ( | lua_State * | L, |
| int | narg ) |
Definition at line 441 of file LuaEngine.cpp.
References L.
| Object * Eluna::CHECK_OBJECT | ( | lua_State * | L, |
| int | narg ) |
Definition at line 365 of file LuaEngine.cpp.
References ElunaTemplate< T >::check(), and L.
| WorldPacket * Eluna::CHECK_PACKET | ( | lua_State * | L, |
| int | narg ) |
Definition at line 420 of file LuaEngine.cpp.
References ElunaTemplate< T >::check(), and L.
| Player * Eluna::CHECK_PLAYER | ( | lua_State * | L, |
| int | narg ) |
Definition at line 383 of file LuaEngine.cpp.
References CHECK_WORLDOBJECT(), L, and Object::ToPlayer().
| Quest * Eluna::CHECK_QUEST | ( | lua_State * | L, |
| int | narg ) |
Definition at line 425 of file LuaEngine.cpp.
References ElunaTemplate< T >::check(), and L.
| Spell * Eluna::CHECK_SPELL | ( | lua_State * | L, |
| int | narg ) |
Definition at line 430 of file LuaEngine.cpp.
References ElunaTemplate< T >::check(), and L.
| uint64 Eluna::CHECK_ULONG | ( | lua_State * | L, |
| int | narg ) |
Definition at line 435 of file LuaEngine.cpp.
References L.
| Unit * Eluna::CHECK_UNIT | ( | lua_State * | L, |
| int | narg ) |
Definition at line 375 of file LuaEngine.cpp.
References CHECK_WORLDOBJECT(), L, and Object::ToUnit().
| Vehicle * Eluna::CHECK_VEHICLE | ( | lua_State * | L, |
| int | narg ) |
Definition at line 415 of file LuaEngine.cpp.
References ElunaTemplate< T >::check(), and L.
| WorldObject * Eluna::CHECK_WORLDOBJECT | ( | lua_State * | L, |
| int | narg ) |
Definition at line 370 of file LuaEngine.cpp.
References ElunaTemplate< T >::check(), and L.
Referenced by CHECK_CORPSE(), CHECK_CREATURE(), CHECK_GAMEOBJECT(), CHECK_PLAYER(), and CHECK_UNIT().
| void Eluna::EndCall | ( | uint8 | res | ) |
Definition at line 298 of file LuaEngine.cpp.
References L.
Definition at line 270 of file LuaEngine.cpp.
| void Eluna::Initialize | ( | ) |
Definition at line 243 of file LuaEngine.cpp.
References StartEluna(), and TC_LOG_ERROR.
|
static |
Definition at line 142 of file LuaEngine.cpp.
References Eluna(), and instance().
Referenced by instance().
| void Eluna::LoadDirectory | ( | const char * | directory, |
| LoadedScripts * | scr ) |
Definition at line 149 of file LuaEngine.cpp.
References LoadDirectory(), and TC_LOG_ERROR.
Referenced by LoadDirectory().
| void Eluna::Push | ( | lua_State * | L | ) |
| void Eluna::Push | ( | lua_State * | L, |
| bool | b ) |
Definition at line 350 of file LuaEngine.cpp.
References L.
| void Eluna::Push | ( | lua_State * | L, |
| const char * | str ) |
Definition at line 360 of file LuaEngine.cpp.
References L.
| void Eluna::Push | ( | lua_State * | L, |
| double | d ) |
Definition at line 340 of file LuaEngine.cpp.
References L.
| void Eluna::Push | ( | lua_State * | L, |
| float | f ) |
Definition at line 345 of file LuaEngine.cpp.
References L.
| void Eluna::Push | ( | lua_State * | L, |
| int32 | i ) |
Definition at line 335 of file LuaEngine.cpp.
References L.
| void Eluna::Push | ( | lua_State * | L, |
| int64 | l ) |
Definition at line 320 of file LuaEngine.cpp.
| void Eluna::Push | ( | lua_State * | L, |
| std::string | str ) |
Definition at line 355 of file LuaEngine.cpp.
References L.
| void Eluna::Push | ( | lua_State * | L, |
| uint32 | u ) |
Definition at line 330 of file LuaEngine.cpp.
References L.
| void Eluna::Push | ( | lua_State * | L, |
| uint64 | l ) |
Definition at line 313 of file LuaEngine.cpp.
|
inline |
Definition at line 461 of file LuaEngine.h.
References Object::GetTypeId(), L, Push(), ElunaTemplate< T >::push(), Object::ToCorpse(), Object::ToCreature(), Object::ToGameObject(), Object::ToPlayer(), TYPEID_CORPSE, TYPEID_GAMEOBJECT, TYPEID_PLAYER, and TYPEID_UNIT.
|
inline |
Definition at line 487 of file LuaEngine.h.
References Object::GetTypeId(), L, Push(), ElunaTemplate< T >::push(), Object::ToCorpse(), Object::ToCreature(), Object::ToGameObject(), Object::ToPlayer(), TYPEID_CORPSE, TYPEID_GAMEOBJECT, TYPEID_PLAYER, and TYPEID_UNIT.
|
inline |
Definition at line 431 of file LuaEngine.h.
References L, Push(), and Object::ToCreature().
|
inline |
Definition at line 426 of file LuaEngine.h.
References L, and ElunaTemplate< T >::push().
|
inline |
Definition at line 422 of file LuaEngine.h.
|
inline |
Definition at line 436 of file LuaEngine.h.
References L, Push(), and Object::ToCreature().
|
inline |
Definition at line 441 of file LuaEngine.h.
References Object::GetTypeId(), L, Push(), ElunaTemplate< T >::push(), Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, and TYPEID_UNIT.
Definition at line 453 of file LuaEngine.cpp.
References CREATURE_EVENT_COUNT, GAMEOBJECT_EVENT_COUNT, GOSSIP_EVENT_COUNT, GROUP_EVENT_COUNT, GroupEventBindings, GUILD_EVENT_COUNT, GuildEventBindings, ITEM_EVENT_COUNT, L, PLAYER_EVENT_COUNT, PlayerEventBindings, REGTYPE_CREATURE, REGTYPE_CREATURE_GOSSIP, REGTYPE_GAMEOBJECT, REGTYPE_GAMEOBJECT_GOSSIP, REGTYPE_GROUP, REGTYPE_GUILD, REGTYPE_ITEM, REGTYPE_ITEM_GOSSIP, REGTYPE_PLAYER, REGTYPE_PLAYER_GOSSIP, REGTYPE_SERVER, REGTYPE_VEHICLE, sEluna, SERVER_EVENT_COUNT, ServerEventBindings, sObjectMgr, VEHICLE_EVENT_COUNT, and VehicleEventBindings.
|
static |
|
friend |
Definition at line 382 of file LuaEngine.h.
References Eluna(), and ScriptMgr.
Referenced by ScriptMgr.
| ElunaBind* Eluna::CreatureEventBindings |
Definition at line 395 of file LuaEngine.h.
| ElunaBind* Eluna::CreatureGossipBindings |
Definition at line 396 of file LuaEngine.h.
| ElunaBind* Eluna::GameObjectEventBindings |
Definition at line 397 of file LuaEngine.h.
| ElunaBind* Eluna::GameObjectGossipBindings |
Definition at line 398 of file LuaEngine.h.
| std::map<int, std::vector<int> > Eluna::GroupEventBindings |
Definition at line 394 of file LuaEngine.h.
Referenced by Eluna(), Register(), and ~Eluna().
| std::map<int, std::vector<int> > Eluna::GuildEventBindings |
Definition at line 393 of file LuaEngine.h.
Referenced by Eluna(), Register(), and ~Eluna().
| ElunaBind* Eluna::ItemEventBindings |
Definition at line 399 of file LuaEngine.h.
| ElunaBind* Eluna::ItemGossipBindings |
Definition at line 400 of file LuaEngine.h.
| lua_State* Eluna::L |
Definition at line 384 of file LuaEngine.h.
Referenced by BeginCall(), CHECK_CORPSE(), CHECK_CREATURE(), CHECK_GAMEOBJECT(), CHECK_ITEM(), CHECK_LONG(), CHECK_OBJECT(), CHECK_PACKET(), CHECK_PLAYER(), CHECK_QUEST(), CHECK_SPELL(), CHECK_ULONG(), CHECK_UNIT(), CHECK_VEHICLE(), CHECK_WORLDOBJECT(), Eluna(), EndCall(), ExecuteCall(), Push(), Push(), Push(), Push(), Push(), Push(), Push(), Push(), Push(), Push(), Push(), Push(), Push(), Push(), Push(), Push(), Push(), Register(), report(), and ~Eluna().
| EventMgr Eluna::m_EventMgr |
Definition at line 385 of file LuaEngine.h.
| std::map<int, std::vector<int> > Eluna::PlayerEventBindings |
Definition at line 391 of file LuaEngine.h.
Referenced by Eluna(), Register(), and ~Eluna().
| ElunaBind* Eluna::playerGossipBindings |
Definition at line 401 of file LuaEngine.h.
| std::map<int, std::vector<int> > Eluna::ServerEventBindings |
Definition at line 390 of file LuaEngine.h.
Referenced by Eluna(), Register(), and ~Eluna().
| std::map<int, std::vector<int> > Eluna::VehicleEventBindings |
Definition at line 392 of file LuaEngine.h.
Referenced by Eluna(), Register(), and ~Eluna().