提交OnHook配置表

This commit is contained in:
PC-20230316NUNE\Administrator
2023-11-30 18:45:13 +08:00
parent 8dcf92a302
commit e73cf98ff4
18 changed files with 494 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
//------------------------------------------------------------------------------
// <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.TB;
import luban.*;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
public final class TbGOnHookMap1 extends AbstractBean {
public TbGOnHookMap1(JsonObject _buf) {
id = _buf.get("id").getAsInt();
data = cfg.TbGEntity.TOnHookLevel.deserialize(_buf.get("data").getAsJsonObject());
}
public static TbGOnHookMap1 deserialize(JsonObject _buf) {
return new cfg.TB.TbGOnHookMap1(_buf);
}
/**
* id
*/
public final int id;
/**
* 关卡等级
*/
public final cfg.TbGEntity.TOnHookLevel data;
public static final int __ID__ = 1197577712;
@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):" + data + ","
+ "}";
}
}

View File

@@ -0,0 +1,73 @@
//------------------------------------------------------------------------------
// <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.TB;
import luban.*;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
public final class TbGOnHookMaps extends AbstractBean {
public TbGOnHookMaps(JsonObject _buf) {
id = _buf.get("id").getAsInt();
name = _buf.get("name").getAsString();
mapId = _buf.get("mapId").getAsInt();
{ com.google.gson.JsonArray _json0_ = _buf.get("petIds").getAsJsonArray(); int __n0 = _json0_.size(); petIds = new int[__n0]; int __index0=0; for(JsonElement __e0 : _json0_) { int __v0; __v0 = __e0.getAsInt(); petIds[__index0++] = __v0; } }
sign = _buf.get("sign").getAsString();
introduce = _buf.get("introduce").getAsString();
}
public static TbGOnHookMaps deserialize(JsonObject _buf) {
return new cfg.TB.TbGOnHookMaps(_buf);
}
/**
* id
*/
public final int id;
/**
* 地图名称
*/
public final String name;
/**
* 地图场景Id
*/
public final int mapId;
/**
* 地图上的宠物列表
*/
public final int[] petIds;
/**
* 地图标识(一般是地图的类名)
*/
public final String sign;
/**
* 地图介绍
*/
public final String introduce;
public static final int __ID__ = 1197577778;
@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):" + name + ","
+ "(format_field_name __code_style field.name):" + mapId + ","
+ "(format_field_name __code_style field.name):" + petIds + ","
+ "(format_field_name __code_style field.name):" + sign + ","
+ "(format_field_name __code_style field.name):" + introduce + ","
+ "}";
}
}

View File

@@ -45,6 +45,10 @@ public final class Tables
public cfg.TbGAttribute getTbGAttribute() { return _tbgattribute; }
private final cfg.TbGRoleBaseAttribute _tbgrolebaseattribute;
public cfg.TbGRoleBaseAttribute getTbGRoleBaseAttribute() { return _tbgrolebaseattribute; }
private final cfg.TbGOnHookMaps _tbgonhookmaps;
public cfg.TbGOnHookMaps getTbGOnHookMaps() { return _tbgonhookmaps; }
private final cfg.TbGOnHookMap1 _tbgonhookmap1;
public cfg.TbGOnHookMap1 getTbGOnHookMap1() { return _tbgonhookmap1; }
public Tables(IJsonLoader loader) throws java.io.IOException {
_tbgglobal = new cfg.TbGGlobal(loader.load("tbgglobal"));
@@ -60,6 +64,8 @@ public final class Tables
_tbsserverinfo = new cfg.TbSServerInfo(loader.load("tbsserverinfo"));
_tbgattribute = new cfg.TbGAttribute(loader.load("tbgattribute"));
_tbgrolebaseattribute = new cfg.TbGRoleBaseAttribute(loader.load("tbgrolebaseattribute"));
_tbgonhookmaps = new cfg.TbGOnHookMaps(loader.load("tbgonhookmaps"));
_tbgonhookmap1 = new cfg.TbGOnHookMap1(loader.load("tbgonhookmap1"));
}
}

View File

@@ -0,0 +1,58 @@
//------------------------------------------------------------------------------
// <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.TbGEntity;
import luban.*;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
/**
* 无限模式关卡信息
*/
public final class TOnHookLevel extends AbstractBean {
public TOnHookLevel(JsonObject _buf) {
level = _buf.get("level").getAsInt();
petLevel = _buf.get("petLevel").getAsInt();
oddsId = _buf.get("oddsId").getAsInt();
}
public static TOnHookLevel deserialize(JsonObject _buf) {
return new cfg.TbGEntity.TOnHookLevel(_buf);
}
/**
* 关卡等级
*/
public final int level;
/**
* 宠物等级
*/
public final int petLevel;
/**
* 概率Id
*/
public final int oddsId;
public static final int __ID__ = 1503395840;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + level + ","
+ "(format_field_name __code_style field.name):" + petLevel + ","
+ "(format_field_name __code_style field.name):" + oddsId + ","
+ "}";
}
}

View File

@@ -0,0 +1,37 @@
//------------------------------------------------------------------------------
// <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;
import luban.*;
import com.google.gson.JsonElement;
public final class TbGOnHookMap1 {
private final java.util.HashMap<Integer, cfg.TB.TbGOnHookMap1> _dataMap;
private final java.util.ArrayList<cfg.TB.TbGOnHookMap1> _dataList;
public TbGOnHookMap1(JsonElement _buf) {
_dataMap = new java.util.HashMap<Integer, cfg.TB.TbGOnHookMap1>();
_dataList = new java.util.ArrayList<cfg.TB.TbGOnHookMap1>();
for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) {
cfg.TB.TbGOnHookMap1 _v;
_v = cfg.TB.TbGOnHookMap1.deserialize(_e_.getAsJsonObject());
_dataList.add(_v);
_dataMap.put(_v.id, _v);
}
}
public java.util.HashMap<Integer, cfg.TB.TbGOnHookMap1> getDataMap() { return _dataMap; }
public java.util.ArrayList<cfg.TB.TbGOnHookMap1> getDataList() { return _dataList; }
public cfg.TB.TbGOnHookMap1 get(int key) { return _dataMap.get(key); }
}

View File

@@ -0,0 +1,37 @@
//------------------------------------------------------------------------------
// <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;
import luban.*;
import com.google.gson.JsonElement;
public final class TbGOnHookMaps {
private final java.util.HashMap<Integer, cfg.TB.TbGOnHookMaps> _dataMap;
private final java.util.ArrayList<cfg.TB.TbGOnHookMaps> _dataList;
public TbGOnHookMaps(JsonElement _buf) {
_dataMap = new java.util.HashMap<Integer, cfg.TB.TbGOnHookMaps>();
_dataList = new java.util.ArrayList<cfg.TB.TbGOnHookMaps>();
for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) {
cfg.TB.TbGOnHookMaps _v;
_v = cfg.TB.TbGOnHookMaps.deserialize(_e_.getAsJsonObject());
_dataList.add(_v);
_dataMap.put(_v.id, _v);
}
}
public java.util.HashMap<Integer, cfg.TB.TbGOnHookMaps> getDataMap() { return _dataMap; }
public java.util.ArrayList<cfg.TB.TbGOnHookMaps> getDataList() { return _dataList; }
public cfg.TB.TbGOnHookMaps get(int key) { return _dataMap.get(key); }
}

View File

@@ -0,0 +1,10 @@
[
{
"id": 1,
"data": {
"level": 1,
"petLevel": 1,
"oddsId": 1
}
}
]

View File

@@ -0,0 +1,14 @@
[
{
"id": 120001,
"name": "冒险岛",
"mapId": 60001,
"petIds": [
10001,
10002,
10003
],
"sign": "",
"introduce": "新手地图在这里可以遇到可爱的宠物哦~"
}
]