mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
使用Luban
This commit is contained in:
37
JisolGameServer/Main/src/main/java/cfg/TbGRole.java
Normal file
37
JisolGameServer/Main/src/main/java/cfg/TbGRole.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 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); }
|
||||
|
||||
}
|
Reference in New Issue
Block a user