Skip to content

Commit

Permalink
Remove useless excel header
Browse files Browse the repository at this point in the history
  • Loading branch information
i0gan committed Sep 21, 2024
1 parent 362cf75 commit 324a060
Show file tree
Hide file tree
Showing 14 changed files with 7 additions and 424 deletions.
Binary file modified resource/excel/Group.xlsx
Binary file not shown.
Binary file modified resource/excel/Player.xlsx
Binary file not shown.
Binary file modified resource/excel/Scene.xlsx
Binary file not shown.
Binary file modified resource/excel/common/IObject.xlsx
Binary file not shown.
Binary file modified resource/excel/example/Property.xlsx
Binary file not shown.
Binary file modified resource/excel/example/Record.xlsx
Binary file not shown.
4 changes: 2 additions & 2 deletions src/squick/plugin/config/class_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
#include <algorithm>
#include <iostream>
#include <time.h>
ClassModule::ClassModule() { mConfigFileName = "config/struct/logic_class.xml"; }
ClassModule::ClassModule() { mConfigFileName = "config/struct/Root.xml"; }

ClassModule::ClassModule(IPluginManager *p) {
pm_ = p;
mConfigFileName = "config/struct/logic_class.xml";
mConfigFileName = "config/struct/Root.xml";

#ifdef DEBUG
std::cout << "Using [" << pm_->GetWorkPath() << "/" + mConfigFileName << "]" << std::endl;
Expand Down
4 changes: 0 additions & 4 deletions src/tools/sqkctl/excel/config_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@ ConfigGenerator::ConfigGenerator(const std::string &excelPath, const std::string
mxGenerators.push_back(new CPPGenerator(excelPath, outPath));
mxGenerators.push_back(new CSGenerator(excelPath, outPath));
mxGenerators.push_back(new IniGenerator(excelPath, outPath));
mxGenerators.push_back(new JAVAGenerator(excelPath, outPath));
mxGenerators.push_back(new LogicClassGenerator(excelPath, outPath));
mxGenerators.push_back(new PBGenerator(excelPath, outPath));
mxGenerators.push_back(new SQLGenerator(excelPath, outPath));
mxGenerators.push_back(new StructGenerator(excelPath, outPath));
mxGenerators.push_back(new TSGenerator(excelPath, outPath));
mxGenerators.push_back(new LuaGenerator(excelPath, outPath));

strExcelIniPath = excelPath;
Expand Down
11 changes: 4 additions & 7 deletions src/tools/sqkctl/excel/config_generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@
#include "cpp_generator.h"
#include "cs_generator.h"
#include "ini_generator.h"
#include "java_generator.h"
#include "logic_class_generator.h"
#include "lua_generator.h"
#include "mini_excel_reader.h"
#include "pb_generator.h"
#include "sql_generator.h"
#include "struct_generator.h"
#include "third_party/common/lexical_cast.hpp"
#include "ts_generator.h"
#include <squick/core/platform.h>

namespace sqkctl {
Expand Down Expand Up @@ -50,9 +46,10 @@ class ConfigGenerator {
private:
bool bConvertIntoUTF8 = false;

const int nPropertyHeight = 10; // property line
const int nRecordHeight = 13; // record line
const int nRecordDescHeight = 9; // record line
// Excel base header attr line define
const int nPropertyHeight = 3; // property line
const int nRecordHeight = 6; // record line
const int nRecordDescHeight = 2; // record line

std::string outPath;
std::string strExcelIniPath; // = "../excel/";
Expand Down
108 changes: 0 additions & 108 deletions src/tools/sqkctl/excel/java_generator.h

This file was deleted.

2 changes: 1 addition & 1 deletion src/tools/sqkctl/excel/logic_class_generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class LogicClassGenerator : public IGenerator {
LogicClassGenerator(const std::string &excelPath, const std::string &outPath) { SetPath(excelPath, outPath); }

virtual bool Generate(const std::map<std::string, ClassData *> &classData) override {
std::string fileName = strXMLStructPath + "logic_class.xml";
std::string fileName = strXMLStructPath + "Root.xml";

FILE *iniWriter = fopen(fileName.c_str(), "w");

Expand Down
11 changes: 0 additions & 11 deletions src/tools/sqkctl/excel/pb_generator.h

This file was deleted.

124 changes: 0 additions & 124 deletions src/tools/sqkctl/excel/sql_generator.h

This file was deleted.

Loading

0 comments on commit 324a060

Please sign in to comment.