mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
重置配置表
This commit is contained in:
@@ -14,24 +14,24 @@ 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;
|
||||
private final java.util.HashMap<Integer, cfg.TB.TbGRole> _dataMap;
|
||||
private final java.util.ArrayList<cfg.TB.TbGRole> _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>();
|
||||
_dataMap = new java.util.HashMap<Integer, cfg.TB.TbGRole>();
|
||||
_dataList = new java.util.ArrayList<cfg.TB.TbGRole>();
|
||||
|
||||
for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) {
|
||||
cfg.TB.Battle.Role.GRole _v;
|
||||
_v = cfg.TB.Battle.Role.GRole.deserialize(_e_.getAsJsonObject());
|
||||
cfg.TB.TbGRole _v;
|
||||
_v = cfg.TB.TbGRole.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 java.util.HashMap<Integer, cfg.TB.TbGRole> getDataMap() { return _dataMap; }
|
||||
public java.util.ArrayList<cfg.TB.TbGRole> getDataList() { return _dataList; }
|
||||
|
||||
public cfg.TB.Battle.Role.GRole get(int key) { return _dataMap.get(key); }
|
||||
public cfg.TB.TbGRole get(int key) { return _dataMap.get(key); }
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user