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

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 TbGRole {
private final java.util.HashMap<Integer, cfg.TB.Battle.Role.GRole> _dataMap;
private final java.util.ArrayList<cfg.TB.Battle.Role.GRole> _dataList;
public TbGRole(JsonElement _buf) {
_dataMap = new java.util.HashMap<Integer, cfg.TB.Battle.Role.GRole>();
_dataList = new java.util.ArrayList<cfg.TB.Battle.Role.GRole>();
for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) {
cfg.TB.Battle.Role.GRole _v;
_v = cfg.TB.Battle.Role.GRole.deserialize(_e_.getAsJsonObject());
_dataList.add(_v);
_dataMap.put(_v.id, _v);
}
}
public java.util.HashMap<Integer, cfg.TB.Battle.Role.GRole> getDataMap() { return _dataMap; }
public java.util.ArrayList<cfg.TB.Battle.Role.GRole> getDataList() { return _dataList; }
public cfg.TB.Battle.Role.GRole get(int key) { return _dataMap.get(key); }
}