mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-05 23:56:35 +00:00
Implement Perl Export Variable settings map (Huge performance boost) (Preliminary)
This commit is contained in:
@@ -77,6 +77,27 @@ public:
|
||||
|
||||
void GetErrors(std::list<std::string> &err);
|
||||
|
||||
/*
|
||||
Internally used memory reference for all Perl Event Export Settings
|
||||
Some exports are very taxing on CPU given how much an event is called.
|
||||
|
||||
These are loaded via DB and have defaults loaded in PerlEventExportSettingsDefaults.
|
||||
|
||||
Database loaded via Database::LoadPerlEventExportSettings(log_settings)
|
||||
*/
|
||||
|
||||
struct PerlEventExportSettings {
|
||||
uint8 qglobals;
|
||||
uint8 mob;
|
||||
uint8 zone;
|
||||
uint8 item;
|
||||
uint8 event_variables;
|
||||
};
|
||||
|
||||
PerlEventExportSettings perl_event_export_settings[_LargestEventID];
|
||||
|
||||
void LoadPerlEventExportSettings(PerlEventExportSettings* perl_event_export_settings);
|
||||
|
||||
private:
|
||||
bool HasQuestSubLocal(uint32 npcid, QuestEventID evt);
|
||||
bool HasQuestSubGlobal(QuestEventID evt);
|
||||
|
||||
Reference in New Issue
Block a user