mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-26 10:16:14 +00:00
提交
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 TbBattleResource extends AbstractBean {
|
||||
public TbBattleResource(JsonObject _buf) {
|
||||
id = _buf.get("id").getAsInt();
|
||||
path = _buf.get("path").getAsString();
|
||||
type = _buf.get("type").getAsInt();
|
||||
}
|
||||
|
||||
public static TbBattleResource deserialize(JsonObject _buf) {
|
||||
return new cfg.TB.TbBattleResource(_buf);
|
||||
}
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
public final int id;
|
||||
/**
|
||||
* 资源路径
|
||||
*/
|
||||
public final String path;
|
||||
/**
|
||||
* 资源类型(0.Spine)
|
||||
*/
|
||||
public final int type;
|
||||
|
||||
public static final int __ID__ = 509266580;
|
||||
|
||||
@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):" + path + ","
|
||||
+ "(format_field_name __code_style field.name):" + type + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
@@ -51,6 +51,8 @@ public final class Tables
|
||||
public cfg.TbGOnHookMaps getTbGOnHookMaps() { return _tbgonhookmaps; }
|
||||
private final cfg.TbGOnHookMap1 _tbgonhookmap1;
|
||||
public cfg.TbGOnHookMap1 getTbGOnHookMap1() { return _tbgonhookmap1; }
|
||||
private final cfg.TbBattleResource _tbbattleresource;
|
||||
public cfg.TbBattleResource getTbBattleResource() { return _tbbattleresource; }
|
||||
|
||||
public Tables(IJsonLoader loader) throws java.io.IOException {
|
||||
_tbgglobal = new cfg.TbGGlobal(loader.load("tbgglobal"));
|
||||
@@ -69,6 +71,7 @@ public final class Tables
|
||||
_tbgrolebaseattribute = new cfg.TbGRoleBaseAttribute(loader.load("tbgrolebaseattribute"));
|
||||
_tbgonhookmaps = new cfg.TbGOnHookMaps(loader.load("tbgonhookmaps"));
|
||||
_tbgonhookmap1 = new cfg.TbGOnHookMap1(loader.load("tbgonhookmap1"));
|
||||
_tbbattleresource = new cfg.TbBattleResource(loader.load("tbbattleresource"));
|
||||
}
|
||||
}
|
||||
|
||||
|
37
JisolGameServer/Main/src/main/java/cfg/TbBattleResource.java
Normal file
37
JisolGameServer/Main/src/main/java/cfg/TbBattleResource.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 TbBattleResource {
|
||||
private final java.util.HashMap<Integer, cfg.TB.TbBattleResource> _dataMap;
|
||||
private final java.util.ArrayList<cfg.TB.TbBattleResource> _dataList;
|
||||
|
||||
public TbBattleResource(JsonElement _buf) {
|
||||
_dataMap = new java.util.HashMap<Integer, cfg.TB.TbBattleResource>();
|
||||
_dataList = new java.util.ArrayList<cfg.TB.TbBattleResource>();
|
||||
|
||||
for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) {
|
||||
cfg.TB.TbBattleResource _v;
|
||||
_v = cfg.TB.TbBattleResource.deserialize(_e_.getAsJsonObject());
|
||||
_dataList.add(_v);
|
||||
_dataMap.put(_v.id, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public java.util.HashMap<Integer, cfg.TB.TbBattleResource> getDataMap() { return _dataMap; }
|
||||
public java.util.ArrayList<cfg.TB.TbBattleResource> getDataList() { return _dataList; }
|
||||
|
||||
public cfg.TB.TbBattleResource get(int key) { return _dataMap.get(key); }
|
||||
|
||||
}
|
@@ -0,0 +1 @@
|
||||
[]
|
Reference in New Issue
Block a user