mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 00:46:46 +00:00
[Loot] Remove from shared memory, simplification (#3988)
* First pass of pulling loot out of shared memory, functional * More code cleanup * More cleanup * More cleanup * More cleanup * Add loot reload type * Reload, logging * Update npc.h * Cleanup * Logging, don't load attempt to load loottable id 0 * Update worldserver.cpp * Update client.cpp * Update zone_loot.cpp * PR feedback * Update zone.cpp * Memory leak suggestion * Update CMakeLists.txt * Post rebase issues
This commit is contained in:
+6
-5
@@ -24,8 +24,9 @@
|
||||
|
||||
#include <string>
|
||||
#include "repositories/saylink_repository.h"
|
||||
#include "loot.h"
|
||||
|
||||
struct ServerLootItem_Struct;
|
||||
struct LootItem;
|
||||
|
||||
namespace EQ
|
||||
{
|
||||
@@ -73,7 +74,7 @@ namespace EQ
|
||||
|
||||
void SetLinkType(saylink::SayLinkType link_type) { m_LinkType = link_type; }
|
||||
void SetItemData(const EQ::ItemData* item_data) { m_ItemData = item_data; }
|
||||
void SetLootData(const ServerLootItem_Struct* loot_data) { m_LootData = loot_data; }
|
||||
void SetLootData(const LootItem* loot_data) { m_LootData = loot_data; }
|
||||
void SetItemInst(const ItemInstance* item_inst) { m_ItemInst = item_inst; }
|
||||
|
||||
// mainly for saylinks..but, not limited to
|
||||
@@ -112,9 +113,9 @@ namespace EQ
|
||||
void generate_text();
|
||||
|
||||
int m_LinkType;
|
||||
const ItemData* m_ItemData;
|
||||
const ServerLootItem_Struct* m_LootData;
|
||||
const ItemInstance* m_ItemInst;
|
||||
const ItemData * m_ItemData;
|
||||
const LootItem * m_LootData;
|
||||
const ItemInstance * m_ItemInst;
|
||||
SayLinkBody_Struct m_LinkBodyStruct;
|
||||
SayLinkProxy_Struct m_LinkProxyStruct;
|
||||
bool m_TaskUse;
|
||||
|
||||
Reference in New Issue
Block a user