This commit is contained in:
PC-20230316NUNE\Administrator
2023-12-06 19:08:16 +08:00
parent 1e76e420b1
commit 1dbbc6c79b
9 changed files with 247 additions and 1 deletions

View File

@@ -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 + ","
+ "}";
}
}

View File

@@ -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"));
}
}

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 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); }
}

View File

@@ -0,0 +1 @@
[]