[Saylinks] In-Memory Saylink Lookups (#1644)

* Implement saylink memory lookups (performance)

* Ignore commands
This commit is contained in:
Chris Miles
2021-10-30 17:32:59 -05:00
committed by GitHub
parent df3161455a
commit 3cda32c213
3 changed files with 55 additions and 28 deletions
+3 -1
View File
@@ -23,7 +23,7 @@
#include "types.h"
#include <string>
#include "repositories/saylink_repository.h"
struct ServerLootItem_Struct;
@@ -106,6 +106,7 @@ namespace EQ
void Reset();
static std::string InjectSaylinksIfNotExist(const char *message);
static void LoadCachedSaylinks();
private:
void generate_body();
void generate_text();
@@ -121,6 +122,7 @@ namespace EQ
std::string m_LinkBody;
std::string m_LinkText;
bool m_Error;
static SaylinkRepository::Saylink GetOrSaveSaylink(std::string saylink_text);
};
} /*EQEmu*/