使用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

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
DataTables/Datas/item.xlsx Normal file

Binary file not shown.

View File

@@ -0,0 +1,17 @@
<module name="">
<bean name="vector2" valueType="1" sep=",">
<var name="x" type="float"/>
<var name="y" type="float"/>
</bean>
<bean name="vector3" valueType="1" sep=",">
<var name="x" type="float"/>
<var name="y" type="float"/>
<var name="z" type="float"/>
</bean>
<bean name="vector4" valueType="1" sep=",">
<var name="x" type="float"/>
<var name="y" type="float"/>
<var name="z" type="float"/>
<var name="w" type="float"/>
</bean>
</module>

11
DataTables/gen.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
WORKSPACE=..
LUBAN_DLL=$WORKSPACE/Tools/Luban/Luban.dll
CONF_ROOT=.
dotnet $LUBAN_DLL \
-t all \
-d json \
--conf $CONF_ROOT/luban.conf \
-x outputDataDir=output

22
DataTables/luban.conf Normal file
View File

@@ -0,0 +1,22 @@
{
"groups":
[
{"names":["c"], "default":true},
{"names":["s"], "default":true},
{"names":["e"], "default":true}
],
"schemaFiles":
[
{"fileName":"Defines", "type":""},
{"fileName":"Datas/__tables__.xlsx", "type":"table"},
{"fileName":"Datas/__beans__.xlsx", "type":"bean"},
{"fileName":"Datas/__enums__.xlsx", "type":"enum"}
],
"dataDir": "Datas",
"targets":
[
{"name":"server", "manager":"Tables", "groups":["s"], "topModule":"cfg"},
{"name":"client", "manager":"Tables", "groups":["c"], "topModule":"cfg"},
{"name":"all", "manager":"Tables", "groups":["c,s,e"], "topModule":"cfg"}
]
}

View File

@@ -0,0 +1,104 @@
[
{
"id": 10000,
"name": "发型",
"price": 100,
"upgrade_to_item_id": 10001,
"exchange_column": {
"id": 10001,
"num": 2
}
},
{
"id": 10001,
"name": "外套",
"price": 100,
"upgrade_to_item_id": 10002,
"exchange_column": {
"id": 10001,
"num": 3
}
},
{
"id": 10002,
"name": "上衣",
"price": 100,
"upgrade_to_item_id": 10003,
"exchange_column": {
"id": 10001,
"num": 4
}
},
{
"id": 10003,
"name": "裙子",
"price": 100,
"upgrade_to_item_id": 10004,
"exchange_column": {
"id": 10001,
"num": 5
}
},
{
"id": 10004,
"name": "袜子",
"price": 100,
"upgrade_to_item_id": 10005,
"exchange_column": {
"id": 10001,
"num": 6
}
},
{
"id": 10005,
"name": "鞋子",
"price": 100,
"upgrade_to_item_id": 10006,
"exchange_column": {
"id": 10001,
"num": 7
}
},
{
"id": 10006,
"name": "发饰",
"price": 100,
"upgrade_to_item_id": 10007,
"exchange_column": {
"id": 10001,
"num": 8
}
},
{
"id": 10007,
"name": "中秋节发饰",
"price": 200,
"upgrade_to_item_id": 10008,
"expire_time": 1633881599,
"exchange_column": {
"id": 10001,
"num": 9
}
},
{
"id": 10008,
"name": "中秋节鞋子",
"price": 300,
"upgrade_to_item_id": 10009,
"expire_time": 1633967999,
"exchange_column": {
"id": 10001,
"num": 10
}
},
{
"id": 10009,
"name": "礼包",
"price": 100,
"upgrade_to_item_id": 10000,
"exchange_column": {
"id": 10001,
"num": 11
}
}
]