void Eluna::CloseLua() { OnLuaStateClose(); DestroyBindStores(); // Must close lua state after deleting stores and mgr if (L) lua_close(L); L = NULL; }
void Eluna::CloseLua() { OnLuaStateClose(); DestroyBindStores(); // Must close lua state after deleting stores and mgr if (L) lua_close(L); L = NULL; instanceDataRefs.clear(); continentDataRefs.clear(); }
void Eluna::CreateBindStores() { DestroyBindStores(); ServerEventBindings = new BindingMap< EventKey<Hooks::ServerEvents> >(L); PlayerEventBindings = new BindingMap< EventKey<Hooks::PlayerEvents> >(L); GuildEventBindings = new BindingMap< EventKey<Hooks::GuildEvents> >(L); GroupEventBindings = new BindingMap< EventKey<Hooks::GroupEvents> >(L); VehicleEventBindings = new BindingMap< EventKey<Hooks::VehicleEvents> >(L); BGEventBindings = new BindingMap< EventKey<Hooks::BGEvents> >(L); PacketEventBindings = new BindingMap< EntryKey<Hooks::PacketEvents> >(L); CreatureEventBindings = new BindingMap< EntryKey<Hooks::CreatureEvents> >(L); CreatureGossipBindings = new BindingMap< EntryKey<Hooks::GossipEvents> >(L); GameObjectEventBindings = new BindingMap< EntryKey<Hooks::GameObjectEvents> >(L); GameObjectGossipBindings = new BindingMap< EntryKey<Hooks::GossipEvents> >(L); ItemEventBindings = new BindingMap< EntryKey<Hooks::ItemEvents> >(L); ItemGossipBindings = new BindingMap< EntryKey<Hooks::GossipEvents> >(L); PlayerGossipBindings = new BindingMap< EntryKey<Hooks::GossipEvents> >(L); CreatureUniqueBindings = new BindingMap< UniqueObjectKey<Hooks::CreatureEvents> >(L); }