Giter VIP home page Giter VIP logo

stallboy / cfggen Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 3.74 MB

excel/CSV/JSON object mapping. object database viewer and editor. generate read code.

Home Page: https://stallboy.github.io/cfggen/

Java 64.58% ANTLR 0.18% C# 14.54% Lua 5.61% Batchfile 0.16% JavaScript 0.03% HTML 0.02% Rust 0.02% TypeScript 14.83% CSS 0.03%
csharp csv excel gamedev java lua node-based-ui object-database-viewer-and-editor

cfggen's Introduction

(English Documents Available)

策划配表系统

一个对象数据库浏览器、编辑器、程序访问代码生成器

  1. 定义对象结构
  2. 使用excel编辑、或使用基于节点的界面来编辑和浏览所有对象。
  3. 生成访问代码

主要功能

  • 支持多态结构,嵌套结构
  • 通过配置外键,取值范围,检测数据一致性
  • 通过生成代码,使程序方便访问类型化数据,生成外键引用,生成entry、enum(让程序中没有魔数),支持java、c#、lua
  • 结构数据可以在excel中配置,也可以json中配置,提供基于节点的界面来编辑和浏览。
  • 生成java注重热更新的安全,生成lua注重内存大小

Documentation

请阅读详细文档

Prerequisites

  • jdk21
  • gradle
  • 设置 git/bin 路径到Path环境变量中

build & test

生成cfggen.jar

genjar.bat  # 生成cfggen.jar

test

  • 查看使用说明
cd example
usage.bat  # 打印使用说明
  • 测试java:生成java代码和数据
cd example
genjava.bat # sealed需要java 17或以上才支持,也可以去掉sealed
  • 测试java:检验java生成
gradle build 
java -jar build/libs/example.jar 
# 进入命令行,输入q退出,输入其他比如"ai"会打印表名称以ai开头的结构定义和数据
  • 测试lua
genlua.bat 
cd lua
chcp 65001
lua.exe test.lua
  • 测试csharp
gencshape.bat 
cd cs
run.bat

编辑器cfgeditor.exe

请参考(编辑器 cfgeditor 文档)

cfggen's People

Contributors

stallboybackup avatar stallboy avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.