mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-03-07 05:23:02 +00:00
chore: update code style in ZoneCodeGenerator entrypoint
This commit is contained in:
@@ -1,35 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include "Utils/Arguments/ArgumentParser.h"
|
||||
#include "Utils/ClassUtils.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class GenerationTask
|
||||
{
|
||||
public:
|
||||
bool m_all_assets;
|
||||
std::string m_asset_name;
|
||||
std::string m_template_name;
|
||||
|
||||
GenerationTask();
|
||||
explicit GenerationTask(std::string templateName);
|
||||
GenerationTask(std::string assetName, std::string templateName);
|
||||
};
|
||||
|
||||
class ZoneCodeGeneratorArguments
|
||||
{
|
||||
ArgumentParser m_argument_parser;
|
||||
|
||||
/**
|
||||
* \brief Prints a command line usage help text for the Unlinker tool to stdout.
|
||||
*/
|
||||
void PrintUsage() const;
|
||||
static void PrintVersion();
|
||||
|
||||
public:
|
||||
static constexpr unsigned FLAG_TASK_GENERATE = 1 << 0;
|
||||
static constexpr unsigned FLAG_TASK_PRINT = 1 << 1;
|
||||
ZoneCodeGeneratorArguments();
|
||||
bool ParseArgs(int argc, const char** argv, bool& shouldContinue);
|
||||
|
||||
class GenerationTask
|
||||
{
|
||||
public:
|
||||
bool m_all_assets;
|
||||
std::string m_asset_name;
|
||||
std::string m_template_name;
|
||||
|
||||
GenerationTask();
|
||||
explicit GenerationTask(std::string templateName);
|
||||
GenerationTask(std::string assetName, std::string templateName);
|
||||
};
|
||||
[[nodiscard]] bool ShouldGenerate() const;
|
||||
[[nodiscard]] bool ShouldPrint() const;
|
||||
|
||||
bool m_verbose;
|
||||
|
||||
@@ -37,12 +32,12 @@ public:
|
||||
std::vector<std::string> m_command_paths;
|
||||
std::string m_output_directory;
|
||||
|
||||
unsigned m_task_flags;
|
||||
std::vector<GenerationTask> m_generation_tasks;
|
||||
|
||||
ZoneCodeGeneratorArguments();
|
||||
bool ParseArgs(int argc, const char** argv, bool& shouldContinue);
|
||||
private:
|
||||
void PrintUsage() const;
|
||||
static void PrintVersion();
|
||||
|
||||
_NODISCARD bool ShouldGenerate() const;
|
||||
_NODISCARD bool ShouldPrint() const;
|
||||
ArgumentParser m_argument_parser;
|
||||
unsigned m_task_flags;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user