使用Luban

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-05 04:40:09 +08:00
parent 0014eff5e0
commit e8f8cb3ce9
44 changed files with 909 additions and 8 deletions

View File

@@ -60,6 +60,12 @@ public final class Tables
public cfg.test.TbTestString getTbTestString() { return _tbteststring; }
private final cfg.test.TbDemoGroup _tbdemogroup;
public cfg.test.TbDemoGroup getTbDemoGroup() { return _tbdemogroup; }
private final cfg.test.TbDemoGroup_C _tbdemogroup_c;
public cfg.test.TbDemoGroup_C getTbDemoGroup_C() { return _tbdemogroup_c; }
private final cfg.test.TbDemoGroup_S _tbdemogroup_s;
public cfg.test.TbDemoGroup_S getTbDemoGroup_S() { return _tbdemogroup_s; }
private final cfg.test.TbDemoGroup_E _tbdemogroup_e;
public cfg.test.TbDemoGroup_E getTbDemoGroup_E() { return _tbdemogroup_e; }
private final cfg.test.TbTestGlobal _tbtestglobal;
public cfg.test.TbTestGlobal getTbTestGlobal() { return _tbtestglobal; }
private final cfg.test.TbTestBeRef _tbtestberef;
@@ -92,6 +98,8 @@ public final class Tables
public cfg.test.TbExcelFromJsonMultiRow getTbExcelFromJsonMultiRow() { return _tbexcelfromjsonmultirow; }
private final cfg.test.TbTestScriptableObject _tbtestscriptableobject;
public cfg.test.TbTestScriptableObject getTbTestScriptableObject() { return _tbtestscriptableobject; }
private final cfg.test.TbPath _tbpath;
public cfg.test.TbPath getTbPath() { return _tbpath; }
private final cfg.test.TbTestMapper _tbtestmapper;
public cfg.test.TbTestMapper getTbTestMapper() { return _tbtestmapper; }
private final cfg.test.TbDefineFromExcel2 _tbdefinefromexcel2;
@@ -118,6 +126,9 @@ public final class Tables
_tbdemoprimitive = new cfg.test.TbDemoPrimitive(loader.load("test_tbdemoprimitive"));
_tbteststring = new cfg.test.TbTestString(loader.load("test_tbteststring"));
_tbdemogroup = new cfg.test.TbDemoGroup(loader.load("test_tbdemogroup"));
_tbdemogroup_c = new cfg.test.TbDemoGroup_C(loader.load("test_tbdemogroup_c"));
_tbdemogroup_s = new cfg.test.TbDemoGroup_S(loader.load("test_tbdemogroup_s"));
_tbdemogroup_e = new cfg.test.TbDemoGroup_E(loader.load("test_tbdemogroup_e"));
_tbtestglobal = new cfg.test.TbTestGlobal(loader.load("test_tbtestglobal"));
_tbtestberef = new cfg.test.TbTestBeRef(loader.load("test_tbtestberef"));
_tbtestberef2 = new cfg.test.TbTestBeRef2(loader.load("test_tbtestberef2"));
@@ -134,6 +145,7 @@ public final class Tables
_tbcompositejsontable3 = new cfg.test.TbCompositeJsonTable3(loader.load("test_tbcompositejsontable3"));
_tbexcelfromjsonmultirow = new cfg.test.TbExcelFromJsonMultiRow(loader.load("test_tbexcelfromjsonmultirow"));
_tbtestscriptableobject = new cfg.test.TbTestScriptableObject(loader.load("test_tbtestscriptableobject"));
_tbpath = new cfg.test.TbPath(loader.load("test_tbpath"));
_tbtestmapper = new cfg.test.TbTestMapper(loader.load("test_tbtestmapper"));
_tbdefinefromexcel2 = new cfg.test.TbDefineFromExcel2(loader.load("test_tbdefinefromexcel2"));
}

View File

@@ -19,8 +19,11 @@ public final class Item extends AbstractBean {
public Item(ByteBuf _buf) {
id = _buf.readInt();
name = _buf.readString();
majorType = _buf.readInt();
minorType = _buf.readInt();
maxPileNum = _buf.readInt();
quality = _buf.readInt();
icon = _buf.readString();
iconBackgroud = _buf.readString();
iconMask = _buf.readString();
desc = _buf.readString();
@@ -36,8 +39,11 @@ public final class Item extends AbstractBean {
*/
public final int id;
public final String name;
public final int majorType;
public final int minorType;
public final int maxPileNum;
public final int quality;
public final String icon;
public final String iconBackgroud;
public final String iconMask;
public final String desc;
@@ -53,8 +59,11 @@ public final class Item extends AbstractBean {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + name + ","
+ "(format_field_name __code_style field.name):" + majorType + ","
+ "(format_field_name __code_style field.name):" + minorType + ","
+ "(format_field_name __code_style field.name):" + maxPileNum + ","
+ "(format_field_name __code_style field.name):" + quality + ","
+ "(format_field_name __code_style field.name):" + icon + ","
+ "(format_field_name __code_style field.name):" + iconBackgroud + ","
+ "(format_field_name __code_style field.name):" + iconMask + ","
+ "(format_field_name __code_style field.name):" + desc + ","

View File

@@ -27,5 +27,6 @@ public final class DemoEnum {
* dd
*/
public static final int D = 5;
public static final int Any = 6;
}

View File

@@ -15,6 +15,10 @@ import luban.*;
public final class DemoGroup extends AbstractBean {
public DemoGroup(ByteBuf _buf) {
id = _buf.readInt();
x1 = _buf.readInt();
x2 = _buf.readInt();
x3 = _buf.readInt();
x4 = _buf.readInt();
x5 = cfg.test.InnerGroup.deserialize(_buf);
}
@@ -23,6 +27,10 @@ public final class DemoGroup extends AbstractBean {
}
public final int id;
public final int x1;
public final int x2;
public final int x3;
public final int x4;
public final cfg.test.InnerGroup x5;
public static final int __ID__ = -379263008;
@@ -34,6 +42,10 @@ public final class DemoGroup extends AbstractBean {
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + x1 + ","
+ "(format_field_name __code_style field.name):" + x2 + ","
+ "(format_field_name __code_style field.name):" + x3 + ","
+ "(format_field_name __code_style field.name):" + x4 + ","
+ "(format_field_name __code_style field.name):" + x5 + ","
+ "}";
}

View File

@@ -15,6 +15,9 @@ import luban.*;
public final class InnerGroup extends AbstractBean {
public InnerGroup(ByteBuf _buf) {
y1 = _buf.readInt();
y2 = _buf.readInt();
y3 = _buf.readInt();
y4 = _buf.readInt();
}
public static InnerGroup deserialize(ByteBuf _buf) {
@@ -22,6 +25,9 @@ public final class InnerGroup extends AbstractBean {
}
public final int y1;
public final int y2;
public final int y3;
public final int y4;
public static final int __ID__ = -587873083;
@@ -32,6 +38,9 @@ public final class InnerGroup extends AbstractBean {
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + y1 + ","
+ "(format_field_name __code_style field.name):" + y2 + ","
+ "(format_field_name __code_style field.name):" + y3 + ","
+ "(format_field_name __code_style field.name):" + y4 + ","
+ "}";
}
}

View File

@@ -0,0 +1,41 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
import luban.*;
public final class Path extends AbstractBean {
public Path(ByteBuf _buf) {
id = _buf.readInt();
res = _buf.readString();
}
public static Path deserialize(ByteBuf _buf) {
return new cfg.test.Path(_buf);
}
public final int id;
public final String res;
public static final int __ID__ = -1226450911;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + res + ","
+ "}";
}
}

View File

@@ -0,0 +1,36 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
import luban.*;
public final class TbDemoGroup_C {
private final java.util.HashMap<Integer, cfg.test.DemoGroup> _dataMap;
private final java.util.ArrayList<cfg.test.DemoGroup> _dataList;
public TbDemoGroup_C(ByteBuf _buf) {
_dataMap = new java.util.HashMap<Integer, cfg.test.DemoGroup>();
_dataList = new java.util.ArrayList<cfg.test.DemoGroup>();
for(int n = _buf.readSize() ; n > 0 ; --n) {
cfg.test.DemoGroup _v;
_v = cfg.test.DemoGroup.deserialize(_buf);
_dataList.add(_v);
_dataMap.put(_v.id, _v);
}
}
public java.util.HashMap<Integer, cfg.test.DemoGroup> getDataMap() { return _dataMap; }
public java.util.ArrayList<cfg.test.DemoGroup> getDataList() { return _dataList; }
public cfg.test.DemoGroup get(int key) { return _dataMap.get(key); }
}

View File

@@ -0,0 +1,36 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
import luban.*;
public final class TbDemoGroup_E {
private final java.util.HashMap<Integer, cfg.test.DemoGroup> _dataMap;
private final java.util.ArrayList<cfg.test.DemoGroup> _dataList;
public TbDemoGroup_E(ByteBuf _buf) {
_dataMap = new java.util.HashMap<Integer, cfg.test.DemoGroup>();
_dataList = new java.util.ArrayList<cfg.test.DemoGroup>();
for(int n = _buf.readSize() ; n > 0 ; --n) {
cfg.test.DemoGroup _v;
_v = cfg.test.DemoGroup.deserialize(_buf);
_dataList.add(_v);
_dataMap.put(_v.id, _v);
}
}
public java.util.HashMap<Integer, cfg.test.DemoGroup> getDataMap() { return _dataMap; }
public java.util.ArrayList<cfg.test.DemoGroup> getDataList() { return _dataList; }
public cfg.test.DemoGroup get(int key) { return _dataMap.get(key); }
}

View File

@@ -0,0 +1,36 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
import luban.*;
public final class TbDemoGroup_S {
private final java.util.HashMap<Integer, cfg.test.DemoGroup> _dataMap;
private final java.util.ArrayList<cfg.test.DemoGroup> _dataList;
public TbDemoGroup_S(ByteBuf _buf) {
_dataMap = new java.util.HashMap<Integer, cfg.test.DemoGroup>();
_dataList = new java.util.ArrayList<cfg.test.DemoGroup>();
for(int n = _buf.readSize() ; n > 0 ; --n) {
cfg.test.DemoGroup _v;
_v = cfg.test.DemoGroup.deserialize(_buf);
_dataList.add(_v);
_dataMap.put(_v.id, _v);
}
}
public java.util.HashMap<Integer, cfg.test.DemoGroup> getDataMap() { return _dataMap; }
public java.util.ArrayList<cfg.test.DemoGroup> getDataList() { return _dataList; }
public cfg.test.DemoGroup get(int key) { return _dataMap.get(key); }
}

View File

@@ -0,0 +1,36 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
import luban.*;
public final class TbPath {
private final java.util.HashMap<Integer, cfg.test.Path> _dataMap;
private final java.util.ArrayList<cfg.test.Path> _dataList;
public TbPath(ByteBuf _buf) {
_dataMap = new java.util.HashMap<Integer, cfg.test.Path>();
_dataList = new java.util.ArrayList<cfg.test.Path>();
for(int n = _buf.readSize() ; n > 0 ; --n) {
cfg.test.Path _v;
_v = cfg.test.Path.deserialize(_buf);
_dataList.add(_v);
_dataMap.put(_v.id, _v);
}
}
public java.util.HashMap<Integer, cfg.test.Path> getDataMap() { return _dataMap; }
public java.util.ArrayList<cfg.test.Path> getDataList() { return _dataList; }
public cfg.test.Path get(int key) { return _dataMap.get(key); }
}

View File

@@ -0,0 +1,62 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
import luban.*;
/**
* 这是个测试excel结构
*/
public final class TestExcelBean1 extends AbstractBean {
public TestExcelBean1(ByteBuf _buf) {
x1 = _buf.readInt();
x2 = _buf.readString();
x3 = _buf.readInt();
x4 = _buf.readFloat();
}
public static TestExcelBean1 deserialize(ByteBuf _buf) {
return new cfg.test.TestExcelBean1(_buf);
}
/**
* 最高品质
*/
public final int x1;
/**
* 黑色的
*/
public final String x2;
/**
* 蓝色的
*/
public final int x3;
/**
* 最差品质
*/
public final float x4;
public static final int __ID__ = -1738345160;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + x1 + ","
+ "(format_field_name __code_style field.name):" + x2 + ","
+ "(format_field_name __code_style field.name):" + x3 + ","
+ "(format_field_name __code_style field.name):" + x4 + ","
+ "}";
}
}