mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-23 16:48:21 +00:00
Beginning of zone copy work
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#include "../../common/eqemu_logsys_log_aliases.h"
|
||||
#include "../../common/zone_copy.h"
|
||||
#include "../../common/database.h"
|
||||
|
||||
void WorldserverCLI::ZoneCopyCmd(int argc, char **argv, argh::parser &cmd, std::string &description)
|
||||
{
|
||||
description = "Copies a character into a destination account";
|
||||
|
||||
auto c = ZoneCopier();
|
||||
c.SetDatabase(&database);
|
||||
c.SetContentDatabase(&content_db);
|
||||
c.SetSourceShortName("soldungb");
|
||||
c.SetSourceVersion(0);
|
||||
c.SetDestinationVersion(1);
|
||||
c.ZoneCopy();
|
||||
}
|
||||
@@ -27,6 +27,7 @@ void WorldserverCLI::CommandHandler(int argc, char **argv)
|
||||
function_map["database:schema"] = &WorldserverCLI::DatabaseGetSchema;
|
||||
function_map["database:dump"] = &WorldserverCLI::DatabaseDump;
|
||||
function_map["database:updates"] = &WorldserverCLI::DatabaseUpdates;
|
||||
function_map["zone:copy"] = &WorldserverCLI::ZoneCopyCmd;
|
||||
function_map["test:test"] = &WorldserverCLI::TestCommand;
|
||||
function_map["test:colors"] = &WorldserverCLI::TestColors;
|
||||
function_map["test:expansion"] = &WorldserverCLI::ExpansionTestCommand;
|
||||
@@ -56,3 +57,4 @@ void WorldserverCLI::CommandHandler(int argc, char **argv)
|
||||
#include "cli/test_repository_2.cpp"
|
||||
#include "cli/test_string_benchmark.cpp"
|
||||
#include "cli/version.cpp"
|
||||
#include "cli/zone_copy.cpp"
|
||||
|
||||
@@ -18,6 +18,7 @@ public:
|
||||
static void DatabaseGetSchema(int argc, char **argv, argh::parser &cmd, std::string &description);
|
||||
static void DatabaseDump(int argc, char **argv, argh::parser &cmd, std::string &description);
|
||||
static void DatabaseUpdates(int argc, char **argv, argh::parser &cmd, std::string &description);
|
||||
static void ZoneCopyCmd(int argc, char **argv, argh::parser &cmd, std::string &description);
|
||||
static void TestCommand(int argc, char **argv, argh::parser &cmd, std::string &description);
|
||||
static void TestColors(int argc, char **argv, argh::parser &cmd, std::string &description);
|
||||
static void ExpansionTestCommand(int argc, char **argv, argh::parser &cmd, std::string &description);
|
||||
|
||||
Reference in New Issue
Block a user