mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 17:38:26 +00:00
[Dynamic Zones] Implement dz templates (#2345)
This allows shared tasks to create dz instances automatically through the `dz_template_id` field instead of using quest scripts. Quest apis were also added to create expeditions from template ids.
This commit is contained in:
@@ -164,3 +164,13 @@ void DynamicZoneManager::Process()
|
||||
fmt::format("id IN ({})", fmt::join(dynamic_zone_ids, ",")));
|
||||
}
|
||||
}
|
||||
|
||||
void DynamicZoneManager::LoadTemplates()
|
||||
{
|
||||
m_dz_templates.clear();
|
||||
auto dz_templates = DynamicZoneTemplatesRepository::All(content_db);
|
||||
for (const auto& dz_template : dz_templates)
|
||||
{
|
||||
m_dz_templates[dz_template.id] = dz_template;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user