mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-07 17:43:51 +00:00
feat(editor): AzerothCore server module generator
One-click generation of a complete AzerothCore/TrinityCore server module from editor zone data. File > Generate Server Module creates: - sql/01_map.sql: map_dbc + area_table_dbc registration - sql/02_spawns.sql: creature_template + creature + waypoint_data + quests - sql/03_teleport.sql: game_tele entry for .tele command - sql/04_zone_flags.sql: sanctuary/PvP area flags - conf/mod_wowee.conf.dist: worldserver.conf snippet with zone settings - README.md: step-by-step server admin installation guide - module.json: machine-readable module manifest Server admins can import the SQL files, add the config snippet, and restart their server to have the custom zone fully operational with NPC spawns, patrol paths, quests, teleport commands, and zone flags.
This commit is contained in:
parent
b439f12c36
commit
cceff622b4
5 changed files with 194 additions and 0 deletions
34
tools/editor/server_module_gen.hpp
Normal file
34
tools/editor/server_module_gen.hpp
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#pragma once
|
||||
|
||||
#include "zone_manifest.hpp"
|
||||
#include "npc_spawner.hpp"
|
||||
#include "quest_editor.hpp"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace wowee {
|
||||
namespace editor {
|
||||
|
||||
// Generates a complete AzerothCore server module from editor zone data
|
||||
// Output: SQL + worldserver.conf snippet + README for server admins
|
||||
class ServerModuleGenerator {
|
||||
public:
|
||||
struct Config {
|
||||
uint32_t mapId = 9000;
|
||||
uint32_t startCreatureEntry = 100000;
|
||||
uint32_t startQuestEntry = 100000;
|
||||
uint32_t zoneId = 10000;
|
||||
uint32_t areaId = 10001;
|
||||
std::string mapName;
|
||||
std::string displayName;
|
||||
};
|
||||
|
||||
// Generate complete server module directory
|
||||
static bool generate(const ZoneManifest& manifest,
|
||||
const std::vector<CreatureSpawn>& creatures,
|
||||
const std::vector<Quest>& quests,
|
||||
const std::string& outputDir);
|
||||
};
|
||||
|
||||
} // namespace editor
|
||||
} // namespace wowee
|
||||
Loading…
Add table
Add a link
Reference in a new issue