Files
JisolGame/JisolGameServer/Main/src/main/java/cfg/TbGRole.java

38 lines
1.2 KiB
Java
Raw Normal View History

2023-11-05 04:40:09 +08:00
//------------------------------------------------------------------------------
// <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 {
2023-11-06 02:25:02 +08:00
private final java.util.HashMap<Integer, cfg.TB.TbGRole> _dataMap;
private final java.util.ArrayList<cfg.TB.TbGRole> _dataList;
2023-11-05 04:40:09 +08:00
public TbGRole(JsonElement _buf) {
2023-11-06 02:25:02 +08:00
_dataMap = new java.util.HashMap<Integer, cfg.TB.TbGRole>();
_dataList = new java.util.ArrayList<cfg.TB.TbGRole>();
2023-11-05 04:40:09 +08:00
for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) {
2023-11-06 02:25:02 +08:00
cfg.TB.TbGRole _v;
_v = cfg.TB.TbGRole.deserialize(_e_.getAsJsonObject());
2023-11-05 04:40:09 +08:00
_dataList.add(_v);
_dataMap.put(_v.id, _v);
}
}
2023-11-06 02:25:02 +08:00
public java.util.HashMap<Integer, cfg.TB.TbGRole> getDataMap() { return _dataMap; }
public java.util.ArrayList<cfg.TB.TbGRole> getDataList() { return _dataList; }
2023-11-05 04:40:09 +08:00
2023-11-06 02:25:02 +08:00
public cfg.TB.TbGRole get(int key) { return _dataMap.get(key); }
2023-11-05 04:40:09 +08:00
}