mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-26 10:16:14 +00:00
提交
This commit is contained in:
79
JisolGameServer/Main/src/main/java/cfg/TB/TbGRoleEquip.java
Normal file
79
JisolGameServer/Main/src/main/java/cfg/TB/TbGRoleEquip.java
Normal file
@@ -0,0 +1,79 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 TbGRoleEquip extends AbstractBean {
|
||||
public TbGRoleEquip(JsonObject _buf) {
|
||||
id = _buf.get("id").getAsInt();
|
||||
name = _buf.get("name").getAsString();
|
||||
type = _buf.get("type").getAsInt();
|
||||
quality = _buf.get("quality").getAsInt();
|
||||
icon = _buf.get("icon").getAsString();
|
||||
{ com.google.gson.JsonArray _json0_ = _buf.get("levelFactors").getAsJsonArray(); int __n0 = _json0_.size(); levelFactors = new int[__n0]; int __index0=0; for(JsonElement __e0 : _json0_) { int __v0; __v0 = __e0.getAsInt(); levelFactors[__index0++] = __v0; } }
|
||||
{ com.google.gson.JsonArray _json0_ = _buf.get("baseAttributes").getAsJsonArray(); int __n0 = _json0_.size(); baseAttributes = new cfg.TbGEntity.TAttributeValue[__n0][]; int __index0=0; for(JsonElement __e0 : _json0_) { cfg.TbGEntity.TAttributeValue[] __v0; { com.google.gson.JsonArray _json1_ = __e0.getAsJsonArray(); int __n1 = _json1_.size(); __v0 = new cfg.TbGEntity.TAttributeValue[__n1]; int __index1=0; for(JsonElement __e1 : _json1_) { cfg.TbGEntity.TAttributeValue __v1; __v1 = cfg.TbGEntity.TAttributeValue.deserialize(__e1.getAsJsonObject()); __v0[__index1++] = __v1; } } baseAttributes[__index0++] = __v0; } }
|
||||
}
|
||||
|
||||
public static TbGRoleEquip deserialize(JsonObject _buf) {
|
||||
return new cfg.TB.TbGRoleEquip(_buf);
|
||||
}
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
public final int id;
|
||||
/**
|
||||
* 装备名称
|
||||
*/
|
||||
public final String name;
|
||||
/**
|
||||
* 装备类别(1=武器/2=帽子/3=项链/4=护肩/5=衣服/6=腰带/7=手套/8=戒指/9=裤子/10=鞋子)
|
||||
*/
|
||||
public final int type;
|
||||
/**
|
||||
* 品质信息
|
||||
*/
|
||||
public final int quality;
|
||||
/**
|
||||
* 图片
|
||||
*/
|
||||
public final String icon;
|
||||
/**
|
||||
* 等级系数 (属性 * (等级 * 系数))
|
||||
*/
|
||||
public final int[] levelFactors;
|
||||
/**
|
||||
* 基础属性
|
||||
*/
|
||||
public final cfg.TbGEntity.TAttributeValue[][] baseAttributes;
|
||||
|
||||
public static final int __ID__ = 1660355937;
|
||||
|
||||
@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):" + type + ","
|
||||
+ "(format_field_name __code_style field.name):" + quality + ","
|
||||
+ "(format_field_name __code_style field.name):" + icon + ","
|
||||
+ "(format_field_name __code_style field.name):" + levelFactors + ","
|
||||
+ "(format_field_name __code_style field.name):" + baseAttributes + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
49
JisolGameServer/Main/src/main/java/cfg/TB/TbGSysFuben.java
Normal file
49
JisolGameServer/Main/src/main/java/cfg/TB/TbGSysFuben.java
Normal 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 TbGSysFuben extends AbstractBean {
|
||||
public TbGSysFuben(JsonObject _buf) {
|
||||
id = _buf.get("id").getAsInt();
|
||||
name = _buf.get("name").getAsString();
|
||||
}
|
||||
|
||||
public static TbGSysFuben deserialize(JsonObject _buf) {
|
||||
return new cfg.TB.TbGSysFuben(_buf);
|
||||
}
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
public final int id;
|
||||
/**
|
||||
* 副本名称
|
||||
*/
|
||||
public final String name;
|
||||
|
||||
public static final int __ID__ = -239189592;
|
||||
|
||||
@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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
@@ -51,6 +51,10 @@ public final class Tables
|
||||
public cfg.TbGOnHookMap120001 getTbGOnHookMap120001() { return _tbgonhookmap120001; }
|
||||
private final cfg.TbBattleResource _tbbattleresource;
|
||||
public cfg.TbBattleResource getTbBattleResource() { return _tbbattleresource; }
|
||||
private final cfg.TbGRoleEquip _tbgroleequip;
|
||||
public cfg.TbGRoleEquip getTbGRoleEquip() { return _tbgroleequip; }
|
||||
private final cfg.TbGSysFuben _tbgsysfuben;
|
||||
public cfg.TbGSysFuben getTbGSysFuben() { return _tbgsysfuben; }
|
||||
|
||||
public Tables(IJsonLoader loader) throws java.io.IOException {
|
||||
_tbgglobal = new cfg.TbGGlobal(loader.load("tbgglobal"));
|
||||
@@ -69,6 +73,8 @@ public final class Tables
|
||||
_tbgonhookmaps = new cfg.TbGOnHookMaps(loader.load("tbgonhookmaps"));
|
||||
_tbgonhookmap120001 = new cfg.TbGOnHookMap120001(loader.load("tbgonhookmap120001"));
|
||||
_tbbattleresource = new cfg.TbBattleResource(loader.load("tbbattleresource"));
|
||||
_tbgroleequip = new cfg.TbGRoleEquip(loader.load("tbgroleequip"));
|
||||
_tbgsysfuben = new cfg.TbGSysFuben(loader.load("tbgsysfuben"));
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -0,0 +1,52 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 TAttributeValue extends AbstractBean {
|
||||
public TAttributeValue(JsonObject _buf) {
|
||||
id = _buf.get("id").getAsInt();
|
||||
value = _buf.get("value").getAsInt();
|
||||
}
|
||||
|
||||
public static TAttributeValue deserialize(JsonObject _buf) {
|
||||
return new cfg.TbGEntity.TAttributeValue(_buf);
|
||||
}
|
||||
|
||||
/**
|
||||
* 属性Id
|
||||
*/
|
||||
public final int id;
|
||||
/**
|
||||
* 属性值
|
||||
*/
|
||||
public final int value;
|
||||
|
||||
public static final int __ID__ = -308305801;
|
||||
|
||||
@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):" + value + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
37
JisolGameServer/Main/src/main/java/cfg/TbGRoleEquip.java
Normal file
37
JisolGameServer/Main/src/main/java/cfg/TbGRoleEquip.java
Normal 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 TbGRoleEquip {
|
||||
private final java.util.HashMap<Integer, cfg.TB.TbGRoleEquip> _dataMap;
|
||||
private final java.util.ArrayList<cfg.TB.TbGRoleEquip> _dataList;
|
||||
|
||||
public TbGRoleEquip(JsonElement _buf) {
|
||||
_dataMap = new java.util.HashMap<Integer, cfg.TB.TbGRoleEquip>();
|
||||
_dataList = new java.util.ArrayList<cfg.TB.TbGRoleEquip>();
|
||||
|
||||
for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) {
|
||||
cfg.TB.TbGRoleEquip _v;
|
||||
_v = cfg.TB.TbGRoleEquip.deserialize(_e_.getAsJsonObject());
|
||||
_dataList.add(_v);
|
||||
_dataMap.put(_v.id, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public java.util.HashMap<Integer, cfg.TB.TbGRoleEquip> getDataMap() { return _dataMap; }
|
||||
public java.util.ArrayList<cfg.TB.TbGRoleEquip> getDataList() { return _dataList; }
|
||||
|
||||
public cfg.TB.TbGRoleEquip get(int key) { return _dataMap.get(key); }
|
||||
|
||||
}
|
37
JisolGameServer/Main/src/main/java/cfg/TbGSysFuben.java
Normal file
37
JisolGameServer/Main/src/main/java/cfg/TbGSysFuben.java
Normal 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 TbGSysFuben {
|
||||
private final java.util.HashMap<Integer, cfg.TB.TbGSysFuben> _dataMap;
|
||||
private final java.util.ArrayList<cfg.TB.TbGSysFuben> _dataList;
|
||||
|
||||
public TbGSysFuben(JsonElement _buf) {
|
||||
_dataMap = new java.util.HashMap<Integer, cfg.TB.TbGSysFuben>();
|
||||
_dataList = new java.util.ArrayList<cfg.TB.TbGSysFuben>();
|
||||
|
||||
for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) {
|
||||
cfg.TB.TbGSysFuben _v;
|
||||
_v = cfg.TB.TbGSysFuben.deserialize(_e_.getAsJsonObject());
|
||||
_dataList.add(_v);
|
||||
_dataMap.put(_v.id, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public java.util.HashMap<Integer, cfg.TB.TbGSysFuben> getDataMap() { return _dataMap; }
|
||||
public java.util.ArrayList<cfg.TB.TbGSysFuben> getDataList() { return _dataList; }
|
||||
|
||||
public cfg.TB.TbGSysFuben get(int key) { return _dataMap.get(key); }
|
||||
|
||||
}
|
@@ -29,6 +29,8 @@ public class InitGameListener {
|
||||
return JsonParser.parseString(ResourceUtil.readUtf8Str("json/"+file+".json"));
|
||||
});
|
||||
|
||||
System.out.println(JSONUtil.toJsonStr(TD.DATA.getTbGRoleEquip().get(100101001)));
|
||||
|
||||
//设置基础缓存信息
|
||||
//裁决员
|
||||
Cache.REFEREES = JSONUtil.toList(TD.DATA.getTbSServerInfo().get(GlobalId.SERVER_REFEREE_ID).args, String.class);
|
||||
|
19364
JisolGameServer/Main/src/main/resources/json/tbgroleequip.json
Normal file
19364
JisolGameServer/Main/src/main/resources/json/tbgroleequip.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,10 @@
|
||||
[
|
||||
{
|
||||
"id": 160001,
|
||||
"name": "钻石副本"
|
||||
},
|
||||
{
|
||||
"id": 160002,
|
||||
"name": "锻造石副本"
|
||||
}
|
||||
]
|
Reference in New Issue
Block a user