mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-26 18:26:23 +00:00
我也不知道在做什么 反正做的东西不少....
This commit is contained in:
@@ -18,6 +18,7 @@ public final class TbGOnHookMaps extends AbstractBean {
|
||||
public TbGOnHookMaps(JsonObject _buf) {
|
||||
id = _buf.get("id").getAsInt();
|
||||
name = _buf.get("name").getAsString();
|
||||
mapImage = _buf.get("mapImage").getAsString();
|
||||
mapId = _buf.get("mapId").getAsInt();
|
||||
{ com.google.gson.JsonArray _json0_ = _buf.get("petIds").getAsJsonArray(); int __n0 = _json0_.size(); petIds = new int[__n0]; int __index0=0; for(JsonElement __e0 : _json0_) { int __v0; __v0 = __e0.getAsInt(); petIds[__index0++] = __v0; } }
|
||||
sign = _buf.get("sign").getAsString();
|
||||
@@ -36,6 +37,10 @@ public final class TbGOnHookMaps extends AbstractBean {
|
||||
* 地图名称
|
||||
*/
|
||||
public final String name;
|
||||
/**
|
||||
* 地图图片
|
||||
*/
|
||||
public final String mapImage;
|
||||
/**
|
||||
* 地图场景Id
|
||||
*/
|
||||
@@ -63,6 +68,7 @@ public final class TbGOnHookMaps extends AbstractBean {
|
||||
return "{ "
|
||||
+ "(format_field_name __code_style field.name):" + id + ","
|
||||
+ "(format_field_name __code_style field.name):" + name + ","
|
||||
+ "(format_field_name __code_style field.name):" + mapImage + ","
|
||||
+ "(format_field_name __code_style field.name):" + mapId + ","
|
||||
+ "(format_field_name __code_style field.name):" + petIds + ","
|
||||
+ "(format_field_name __code_style field.name):" + sign + ","
|
||||
|
61
JisolGameServer/Main/src/main/java/cfg/TB/TbGRoleUpGrow.java
Normal file
61
JisolGameServer/Main/src/main/java/cfg/TB/TbGRoleUpGrow.java
Normal file
@@ -0,0 +1,61 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 TbGRoleUpGrow extends AbstractBean {
|
||||
public TbGRoleUpGrow(JsonObject _buf) {
|
||||
id = _buf.get("id").getAsInt();
|
||||
Blood = _buf.get("Blood").getAsInt();
|
||||
Attack = _buf.get("Attack").getAsInt();
|
||||
Defend = _buf.get("Defend").getAsInt();
|
||||
}
|
||||
|
||||
public static TbGRoleUpGrow deserialize(JsonObject _buf) {
|
||||
return new cfg.TB.TbGRoleUpGrow(_buf);
|
||||
}
|
||||
|
||||
/**
|
||||
* 角色Id (0 则默认)
|
||||
*/
|
||||
public final int id;
|
||||
/**
|
||||
* 血量成长
|
||||
*/
|
||||
public final int Blood;
|
||||
/**
|
||||
* 攻击成长
|
||||
*/
|
||||
public final int Attack;
|
||||
/**
|
||||
* 防御成长
|
||||
*/
|
||||
public final int Defend;
|
||||
|
||||
public static final int __ID__ = 387207741;
|
||||
|
||||
@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):" + Blood + ","
|
||||
+ "(format_field_name __code_style field.name):" + Attack + ","
|
||||
+ "(format_field_name __code_style field.name):" + Defend + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
@@ -39,6 +39,8 @@ public final class Tables
|
||||
public cfg.TbGRoleUpLevel getTbGRoleUpLevel() { return _tbgroleuplevel; }
|
||||
private final cfg.TbGRoleUpStar _tbgroleupstar;
|
||||
public cfg.TbGRoleUpStar getTbGRoleUpStar() { return _tbgroleupstar; }
|
||||
private final cfg.TbGRoleUpGrow _tbgroleupgrow;
|
||||
public cfg.TbGRoleUpGrow getTbGRoleUpGrow() { return _tbgroleupgrow; }
|
||||
private final cfg.TbSServerInfo _tbsserverinfo;
|
||||
public cfg.TbSServerInfo getTbSServerInfo() { return _tbsserverinfo; }
|
||||
private final cfg.TbGAttribute _tbgattribute;
|
||||
@@ -61,6 +63,7 @@ public final class Tables
|
||||
_tbgresource = new cfg.TbGResource(loader.load("tbgresource"));
|
||||
_tbgroleuplevel = new cfg.TbGRoleUpLevel(loader.load("tbgroleuplevel"));
|
||||
_tbgroleupstar = new cfg.TbGRoleUpStar(loader.load("tbgroleupstar"));
|
||||
_tbgroleupgrow = new cfg.TbGRoleUpGrow(loader.load("tbgroleupgrow"));
|
||||
_tbsserverinfo = new cfg.TbSServerInfo(loader.load("tbsserverinfo"));
|
||||
_tbgattribute = new cfg.TbGAttribute(loader.load("tbgattribute"));
|
||||
_tbgrolebaseattribute = new cfg.TbGRoleBaseAttribute(loader.load("tbgrolebaseattribute"));
|
||||
|
37
JisolGameServer/Main/src/main/java/cfg/TbGRoleUpGrow.java
Normal file
37
JisolGameServer/Main/src/main/java/cfg/TbGRoleUpGrow.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 TbGRoleUpGrow {
|
||||
private final java.util.HashMap<Integer, cfg.TB.TbGRoleUpGrow> _dataMap;
|
||||
private final java.util.ArrayList<cfg.TB.TbGRoleUpGrow> _dataList;
|
||||
|
||||
public TbGRoleUpGrow(JsonElement _buf) {
|
||||
_dataMap = new java.util.HashMap<Integer, cfg.TB.TbGRoleUpGrow>();
|
||||
_dataList = new java.util.ArrayList<cfg.TB.TbGRoleUpGrow>();
|
||||
|
||||
for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) {
|
||||
cfg.TB.TbGRoleUpGrow _v;
|
||||
_v = cfg.TB.TbGRoleUpGrow.deserialize(_e_.getAsJsonObject());
|
||||
_dataList.add(_v);
|
||||
_dataMap.put(_v.id, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public java.util.HashMap<Integer, cfg.TB.TbGRoleUpGrow> getDataMap() { return _dataMap; }
|
||||
public java.util.ArrayList<cfg.TB.TbGRoleUpGrow> getDataList() { return _dataList; }
|
||||
|
||||
public cfg.TB.TbGRoleUpGrow get(int key) { return _dataMap.get(key); }
|
||||
|
||||
}
|
@@ -9,5 +9,16 @@
|
||||
"map2OffsetY": 520,
|
||||
"map3OffsetY": 520,
|
||||
"scale": 1.5
|
||||
},
|
||||
{
|
||||
"id": 60002,
|
||||
"mapName": "魔法镇",
|
||||
"map1": "map/MAP4/MAP4_1/spriteFrame",
|
||||
"map2": "map/MAP4/MAP4_2/spriteFrame",
|
||||
"map3": "map/MAP4/MAP4_3/spriteFrame",
|
||||
"map1OffsetY": 80,
|
||||
"map2OffsetY": 520,
|
||||
"map3OffsetY": 520,
|
||||
"scale": 1.5
|
||||
}
|
||||
]
|
@@ -3,7 +3,7 @@
|
||||
"id": 1,
|
||||
"data": {
|
||||
"level": 1,
|
||||
"petLevel": 1,
|
||||
"petLevel": 0,
|
||||
"oddsId": 1
|
||||
}
|
||||
}
|
||||
|
@@ -1,7 +1,8 @@
|
||||
[
|
||||
{
|
||||
"id": 120001,
|
||||
"name": "冒险岛",
|
||||
"name": "天空城",
|
||||
"mapImage": "ui/map/天空城_图片/spriteFrame",
|
||||
"mapId": 60001,
|
||||
"petIds": [
|
||||
10001,
|
||||
@@ -10,5 +11,17 @@
|
||||
],
|
||||
"sign": "",
|
||||
"introduce": "新手地图在这里可以遇到可爱的宠物哦~"
|
||||
},
|
||||
{
|
||||
"id": 120002,
|
||||
"name": "魔法镇",
|
||||
"mapImage": "ui/map/天空城_图片/spriteFrame",
|
||||
"mapId": 60002,
|
||||
"petIds": [
|
||||
10003,
|
||||
10004
|
||||
],
|
||||
"sign": "",
|
||||
"introduce": "魔法阵 这里有魔法精灵~"
|
||||
}
|
||||
]
|
@@ -0,0 +1,8 @@
|
||||
[
|
||||
{
|
||||
"id": 0,
|
||||
"Blood": 1,
|
||||
"Attack": 1,
|
||||
"Defend": 1
|
||||
}
|
||||
]
|
Reference in New Issue
Block a user