mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 11:24:46 +00:00
提交
This commit is contained in:
parent
7d5ce58e5e
commit
6be5ebf5ea
24
CocosConfig - 副本.bat
Normal file
24
CocosConfig - 副本.bat
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
@echo off & setlocal enabledelayedexpansion
|
||||||
|
|
||||||
|
@REM 需要被替换的字符串,注意字符串前后不加“”,支持空格
|
||||||
|
set var1={ this.baseAttributes = []; for(let _ele of _json_.baseAttributes) { let _e; { _e = []; for(let _ele of _ele) { let _e; _e = new TbGEntity.TAttributeValue(_ele); _e.push(_e);}}; this.baseAttributes.push(_e);}}
|
||||||
|
@REM 替换成什么内容,此处是批处理当前路径
|
||||||
|
set var2={ this.baseAttributes = []; for(let _ele of _json_.baseAttributes) { let _e; { _e = []; for(let _ele of _ele) { let _e; _e = new TbGEntity.TAttributeValue(_ele); _e.push(_e);}}; this.baseAttributes.push(_e);}}
|
||||||
|
|
||||||
|
for /r %%i in (JisolGameCocos\assets\script\config\data\schema.ts) do (
|
||||||
|
echo %%i
|
||||||
|
@REM 读取a.txt所有内容
|
||||||
|
for /f "eol=* tokens=*" %%j in (%%i) do (
|
||||||
|
@REM 设置变量a为每行内容
|
||||||
|
set a=%%j
|
||||||
|
@REM 如果该行有var1,则将其改为var2
|
||||||
|
set "a=!a:%var1%=%var2%!"
|
||||||
|
echo !a!
|
||||||
|
@REM 把修改后的全部行存入$
|
||||||
|
echo !a!>>$
|
||||||
|
)
|
||||||
|
@REM 用$的内容替换原来a.txt内容
|
||||||
|
move $ %%i
|
||||||
|
)
|
||||||
|
|
||||||
|
pause
|
Binary file not shown.
Binary file not shown.
BIN
DataTables/Datas/副本系统/副本表.xlsx
Normal file
BIN
DataTables/Datas/副本系统/副本表.xlsx
Normal file
Binary file not shown.
BIN
DataTables/Datas/宠物系统/宠物装备/宠物装备表.xlsx
Normal file
BIN
DataTables/Datas/宠物系统/宠物装备/宠物装备表.xlsx
Normal file
Binary file not shown.
Binary file not shown.
19364
JisolGameCocos/assets/resources/config/json/tbgroleequip.json
Normal file
19364
JisolGameCocos/assets/resources/config/json/tbgroleequip.json
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"ver": "2.0.1",
|
||||||
|
"importer": "json",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "a6309190-70c9-41f7-aae2-ed94a8505b26",
|
||||||
|
"files": [
|
||||||
|
".json"
|
||||||
|
],
|
||||||
|
"subMetas": {},
|
||||||
|
"userData": {}
|
||||||
|
}
|
10
JisolGameCocos/assets/resources/config/json/tbgsysfuben.json
Normal file
10
JisolGameCocos/assets/resources/config/json/tbgsysfuben.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"id": 160001,
|
||||||
|
"name": "钻石副本"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 160002,
|
||||||
|
"name": "锻造石副本"
|
||||||
|
}
|
||||||
|
]
|
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"ver": "2.0.1",
|
||||||
|
"importer": "json",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "5bbb967f-bbcc-4ccb-b75e-b320759baf58",
|
||||||
|
"files": [
|
||||||
|
".json"
|
||||||
|
],
|
||||||
|
"subMetas": {},
|
||||||
|
"userData": {}
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
9
JisolGameCocos/assets/resources/prefab/ui/主页/控制区域.meta
Normal file
9
JisolGameCocos/assets/resources/prefab/ui/主页/控制区域.meta
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.2.0",
|
||||||
|
"importer": "directory",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "481d90a5-f5da-4ac2-8a4c-f61c20020494",
|
||||||
|
"files": [],
|
||||||
|
"subMetas": {},
|
||||||
|
"userData": {}
|
||||||
|
}
|
@ -1,5 +1,5 @@
|
|||||||
import { _decorator, Component, director, instantiate, Node, Prefab } from 'cc';
|
import { _decorator, Component, director, instantiate, Node, Prefab } from 'cc';
|
||||||
import { app } from './App';
|
import { app, TD } from './App';
|
||||||
import { JNGame } from '../../extensions/ngame/assets/ngame/JNGame';
|
import { JNGame } from '../../extensions/ngame/assets/ngame/JNGame';
|
||||||
import { JNSyncAction } from '../../extensions/ngame/assets/ngame/sync/JNSyncAction';
|
import { JNSyncAction } from '../../extensions/ngame/assets/ngame/sync/JNSyncAction';
|
||||||
import { GOnHookPets } from '../../extensions/ngame/assets/ngame/message/proto';
|
import { GOnHookPets } from '../../extensions/ngame/assets/ngame/message/proto';
|
||||||
@ -30,6 +30,8 @@ export class Main extends Component {
|
|||||||
//加载 APP
|
//加载 APP
|
||||||
await JNGame.Init(app);
|
await JNGame.Init(app);
|
||||||
|
|
||||||
|
console.log("TD",TD.TbGRoleEquip.getDataList())
|
||||||
|
|
||||||
// //发生帧同步开始
|
// //发生帧同步开始
|
||||||
// app.socket.Send(JNSyncAction.NSyncFrameStart);
|
// app.socket.Send(JNSyncAction.NSyncFrameStart);
|
||||||
|
|
||||||
|
@ -702,6 +702,120 @@ export class TbBattleResource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export namespace TB {
|
||||||
|
export class TbGRoleEquip {
|
||||||
|
|
||||||
|
constructor(_json_: any) {
|
||||||
|
if (_json_.id === undefined) { throw new Error() }
|
||||||
|
this.id = _json_.id
|
||||||
|
if (_json_.name === undefined) { throw new Error() }
|
||||||
|
this.name = _json_.name
|
||||||
|
if (_json_.type === undefined) { throw new Error() }
|
||||||
|
this.type = _json_.type
|
||||||
|
if (_json_.quality === undefined) { throw new Error() }
|
||||||
|
this.quality = _json_.quality
|
||||||
|
if (_json_.icon === undefined) { throw new Error() }
|
||||||
|
this.icon = _json_.icon
|
||||||
|
if (_json_.levelFactors === undefined) { throw new Error() }
|
||||||
|
{ this.levelFactors = []; for(let _ele of _json_.levelFactors) { let _e; _e = _ele; this.levelFactors.push(_e);}}
|
||||||
|
if (_json_.baseAttributes === undefined) { throw new Error() }
|
||||||
|
{ this.baseAttributes = []; for(let _ele of _json_.baseAttributes) { let _e; { _e = []; for(let _ele of _ele) { let _e; _e = new TbGEntity.TAttributeValue(_ele); _e.push(_e);}}; this.baseAttributes.push(_e);}}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
readonly id: number
|
||||||
|
/**
|
||||||
|
* 装备名称
|
||||||
|
*/
|
||||||
|
readonly name: string
|
||||||
|
/**
|
||||||
|
* 装备类别(1=武器/2=帽子/3=项链/4=护肩/5=衣服/6=腰带/7=手套/8=戒指/9=裤子/10=鞋子)
|
||||||
|
*/
|
||||||
|
readonly type: number
|
||||||
|
/**
|
||||||
|
* 品质信息
|
||||||
|
*/
|
||||||
|
readonly quality: number
|
||||||
|
/**
|
||||||
|
* 图片
|
||||||
|
*/
|
||||||
|
readonly icon: string
|
||||||
|
/**
|
||||||
|
* 等级系数 (属性 * (等级 * 系数))
|
||||||
|
*/
|
||||||
|
readonly levelFactors: number[]
|
||||||
|
/**
|
||||||
|
* 基础属性(value - value 区间)
|
||||||
|
*/
|
||||||
|
readonly baseAttributes: TbGEntity.TAttributeValue[][]
|
||||||
|
|
||||||
|
resolve(tables:Tables)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export namespace TbGEntity {
|
||||||
|
/**
|
||||||
|
* 属性
|
||||||
|
*/
|
||||||
|
export class TAttributeValue {
|
||||||
|
|
||||||
|
constructor(_json_: any) {
|
||||||
|
if (_json_.id === undefined) { throw new Error() }
|
||||||
|
this.id = _json_.id
|
||||||
|
if (_json_.value === undefined) { throw new Error() }
|
||||||
|
this.value = _json_.value
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 属性Id
|
||||||
|
*/
|
||||||
|
readonly id: number
|
||||||
|
/**
|
||||||
|
* 属性值
|
||||||
|
*/
|
||||||
|
readonly value: number
|
||||||
|
|
||||||
|
resolve(tables:Tables)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export namespace TB {
|
||||||
|
export class TbGSysFuben {
|
||||||
|
|
||||||
|
constructor(_json_: any) {
|
||||||
|
if (_json_.id === undefined) { throw new Error() }
|
||||||
|
this.id = _json_.id
|
||||||
|
if (_json_.name === undefined) { throw new Error() }
|
||||||
|
this.name = _json_.name
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
readonly id: number
|
||||||
|
/**
|
||||||
|
* 副本名称
|
||||||
|
*/
|
||||||
|
readonly name: string
|
||||||
|
|
||||||
|
resolve(tables:Tables)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export class TbGGlobal{
|
export class TbGGlobal{
|
||||||
@ -1216,6 +1330,70 @@ export class TbBattleResource{
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export class TbGRoleEquip{
|
||||||
|
private _dataMap: Map<number, TB.TbGRoleEquip>
|
||||||
|
private _dataList: TB.TbGRoleEquip[]
|
||||||
|
constructor(_json_: any) {
|
||||||
|
this._dataMap = new Map<number, TB.TbGRoleEquip>()
|
||||||
|
this._dataList = []
|
||||||
|
for(var _json2_ of _json_) {
|
||||||
|
let _v: TB.TbGRoleEquip
|
||||||
|
_v = new TB.TbGRoleEquip(_json2_)
|
||||||
|
this._dataList.push(_v)
|
||||||
|
this._dataMap.set(_v.id, _v)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
getDataMap(): Map<number, TB.TbGRoleEquip> { return this._dataMap; }
|
||||||
|
getDataList(): TB.TbGRoleEquip[] { return this._dataList; }
|
||||||
|
|
||||||
|
get(key: number): TB.TbGRoleEquip | undefined { return this._dataMap.get(key); }
|
||||||
|
|
||||||
|
resolve(tables:Tables)
|
||||||
|
{
|
||||||
|
for(let data of this._dataList)
|
||||||
|
{
|
||||||
|
data.resolve(tables)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export class TbGSysFuben{
|
||||||
|
private _dataMap: Map<number, TB.TbGSysFuben>
|
||||||
|
private _dataList: TB.TbGSysFuben[]
|
||||||
|
constructor(_json_: any) {
|
||||||
|
this._dataMap = new Map<number, TB.TbGSysFuben>()
|
||||||
|
this._dataList = []
|
||||||
|
for(var _json2_ of _json_) {
|
||||||
|
let _v: TB.TbGSysFuben
|
||||||
|
_v = new TB.TbGSysFuben(_json2_)
|
||||||
|
this._dataList.push(_v)
|
||||||
|
this._dataMap.set(_v.id, _v)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
getDataMap(): Map<number, TB.TbGSysFuben> { return this._dataMap; }
|
||||||
|
getDataList(): TB.TbGSysFuben[] { return this._dataList; }
|
||||||
|
|
||||||
|
get(key: number): TB.TbGSysFuben | undefined { return this._dataMap.get(key); }
|
||||||
|
|
||||||
|
resolve(tables:Tables)
|
||||||
|
{
|
||||||
|
for(let data of this._dataList)
|
||||||
|
{
|
||||||
|
data.resolve(tables)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
type JsonLoader = (file: string) => any
|
type JsonLoader = (file: string) => any
|
||||||
|
|
||||||
export class Tables {
|
export class Tables {
|
||||||
@ -1251,6 +1429,10 @@ export class Tables {
|
|||||||
get TbGOnHookMap120001(): TbGOnHookMap120001 { return this._TbGOnHookMap120001;}
|
get TbGOnHookMap120001(): TbGOnHookMap120001 { return this._TbGOnHookMap120001;}
|
||||||
private _TbBattleResource: TbBattleResource
|
private _TbBattleResource: TbBattleResource
|
||||||
get TbBattleResource(): TbBattleResource { return this._TbBattleResource;}
|
get TbBattleResource(): TbBattleResource { return this._TbBattleResource;}
|
||||||
|
private _TbGRoleEquip: TbGRoleEquip
|
||||||
|
get TbGRoleEquip(): TbGRoleEquip { return this._TbGRoleEquip;}
|
||||||
|
private _TbGSysFuben: TbGSysFuben
|
||||||
|
get TbGSysFuben(): TbGSysFuben { return this._TbGSysFuben;}
|
||||||
|
|
||||||
constructor(loader: JsonLoader) {
|
constructor(loader: JsonLoader) {
|
||||||
this._TbGGlobal = new TbGGlobal(loader('tbgglobal'))
|
this._TbGGlobal = new TbGGlobal(loader('tbgglobal'))
|
||||||
@ -1269,6 +1451,8 @@ export class Tables {
|
|||||||
this._TbGOnHookMaps = new TbGOnHookMaps(loader('tbgonhookmaps'))
|
this._TbGOnHookMaps = new TbGOnHookMaps(loader('tbgonhookmaps'))
|
||||||
this._TbGOnHookMap120001 = new TbGOnHookMap120001(loader('tbgonhookmap120001'))
|
this._TbGOnHookMap120001 = new TbGOnHookMap120001(loader('tbgonhookmap120001'))
|
||||||
this._TbBattleResource = new TbBattleResource(loader('tbbattleresource'))
|
this._TbBattleResource = new TbBattleResource(loader('tbbattleresource'))
|
||||||
|
this._TbGRoleEquip = new TbGRoleEquip(loader('tbgroleequip'))
|
||||||
|
this._TbGSysFuben = new TbGSysFuben(loader('tbgsysfuben'))
|
||||||
|
|
||||||
this._TbGGlobal.resolve(this)
|
this._TbGGlobal.resolve(this)
|
||||||
this._TbGRole.resolve(this)
|
this._TbGRole.resolve(this)
|
||||||
@ -1286,5 +1470,7 @@ export class Tables {
|
|||||||
this._TbGOnHookMaps.resolve(this)
|
this._TbGOnHookMaps.resolve(this)
|
||||||
this._TbGOnHookMap120001.resolve(this)
|
this._TbGOnHookMap120001.resolve(this)
|
||||||
this._TbBattleResource.resolve(this)
|
this._TbBattleResource.resolve(this)
|
||||||
|
this._TbGRoleEquip.resolve(this)
|
||||||
|
this._TbGSysFuben.resolve(this)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
9
JisolGameCocos/assets/script/ui/Home/Control.meta
Normal file
9
JisolGameCocos/assets/script/ui/Home/Control.meta
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.2.0",
|
||||||
|
"importer": "directory",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "a8470a11-8808-408c-bdf6-c2957fc3faf2",
|
||||||
|
"files": [],
|
||||||
|
"subMetas": {},
|
||||||
|
"userData": {}
|
||||||
|
}
|
57
JisolGameCocos/assets/script/ui/Home/Control/MainControl.ts
Normal file
57
JisolGameCocos/assets/script/ui/Home/Control/MainControl.ts
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
import { _decorator, Component, Node } from 'cc';
|
||||||
|
import { JNPageView } from '../../../../../extensions/ngame/assets/ngame/util/components/pageview/JNPageView';
|
||||||
|
import { Button } from 'cc';
|
||||||
|
import { tween } from 'cc';
|
||||||
|
import { Widget } from 'cc';
|
||||||
|
import { UITransform } from 'cc';
|
||||||
|
const { ccclass, property } = _decorator;
|
||||||
|
|
||||||
|
@ccclass('MainControl')
|
||||||
|
export class MainControl extends Component {
|
||||||
|
|
||||||
|
@property(Button)
|
||||||
|
leftButton:Button;
|
||||||
|
|
||||||
|
@property(Button)
|
||||||
|
rightButton:Button;
|
||||||
|
|
||||||
|
onLoad(){
|
||||||
|
this.onUpdateView();
|
||||||
|
}
|
||||||
|
|
||||||
|
onUpdateView(){
|
||||||
|
|
||||||
|
let pageIndex = this.getComponent(JNPageView).getCurrentPageIndex() - 1;
|
||||||
|
|
||||||
|
if(pageIndex){
|
||||||
|
tween(this.leftButton.getComponent(Widget))
|
||||||
|
.to(.3,{left:-this.leftButton.getComponent(UITransform).width})
|
||||||
|
.start();
|
||||||
|
tween(this.rightButton.getComponent(Widget))
|
||||||
|
.to(.3,{right:0})
|
||||||
|
.start();
|
||||||
|
}else{
|
||||||
|
tween(this.leftButton.getComponent(Widget))
|
||||||
|
.to(.3,{left:0})
|
||||||
|
.start();
|
||||||
|
tween(this.rightButton.getComponent(Widget))
|
||||||
|
.to(.3,{right:-this.rightButton.getComponent(UITransform).width})
|
||||||
|
.start();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//下一页
|
||||||
|
onClickRight(){
|
||||||
|
this.getComponent(JNPageView).setCurrentPageIndex(1);
|
||||||
|
this.onUpdateView();
|
||||||
|
}
|
||||||
|
//上一页
|
||||||
|
onClickLeft(){
|
||||||
|
this.getComponent(JNPageView).setCurrentPageIndex(0);
|
||||||
|
this.onUpdateView();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"ver": "4.0.23",
|
||||||
|
"importer": "typescript",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "00caacaa-5016-4f56-8ff0-a6ebeb991e96",
|
||||||
|
"files": [],
|
||||||
|
"subMetas": {},
|
||||||
|
"userData": {}
|
||||||
|
}
|
79
JisolGameServer/Main/src/main/java/cfg/TB/TbGRoleEquip.java
Normal file
79
JisolGameServer/Main/src/main/java/cfg/TB/TbGRoleEquip.java
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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 TbGRoleEquip extends AbstractBean {
|
||||||
|
public TbGRoleEquip(JsonObject _buf) {
|
||||||
|
id = _buf.get("id").getAsInt();
|
||||||
|
name = _buf.get("name").getAsString();
|
||||||
|
type = _buf.get("type").getAsInt();
|
||||||
|
quality = _buf.get("quality").getAsInt();
|
||||||
|
icon = _buf.get("icon").getAsString();
|
||||||
|
{ com.google.gson.JsonArray _json0_ = _buf.get("levelFactors").getAsJsonArray(); int __n0 = _json0_.size(); levelFactors = new int[__n0]; int __index0=0; for(JsonElement __e0 : _json0_) { int __v0; __v0 = __e0.getAsInt(); levelFactors[__index0++] = __v0; } }
|
||||||
|
{ com.google.gson.JsonArray _json0_ = _buf.get("baseAttributes").getAsJsonArray(); int __n0 = _json0_.size(); baseAttributes = new cfg.TbGEntity.TAttributeValue[__n0][]; int __index0=0; for(JsonElement __e0 : _json0_) { cfg.TbGEntity.TAttributeValue[] __v0; { com.google.gson.JsonArray _json1_ = __e0.getAsJsonArray(); int __n1 = _json1_.size(); __v0 = new cfg.TbGEntity.TAttributeValue[__n1]; int __index1=0; for(JsonElement __e1 : _json1_) { cfg.TbGEntity.TAttributeValue __v1; __v1 = cfg.TbGEntity.TAttributeValue.deserialize(__e1.getAsJsonObject()); __v0[__index1++] = __v1; } } baseAttributes[__index0++] = __v0; } }
|
||||||
|
}
|
||||||
|
|
||||||
|
public static TbGRoleEquip deserialize(JsonObject _buf) {
|
||||||
|
return new cfg.TB.TbGRoleEquip(_buf);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
public final int id;
|
||||||
|
/**
|
||||||
|
* 装备名称
|
||||||
|
*/
|
||||||
|
public final String name;
|
||||||
|
/**
|
||||||
|
* 装备类别(1=武器/2=帽子/3=项链/4=护肩/5=衣服/6=腰带/7=手套/8=戒指/9=裤子/10=鞋子)
|
||||||
|
*/
|
||||||
|
public final int type;
|
||||||
|
/**
|
||||||
|
* 品质信息
|
||||||
|
*/
|
||||||
|
public final int quality;
|
||||||
|
/**
|
||||||
|
* 图片
|
||||||
|
*/
|
||||||
|
public final String icon;
|
||||||
|
/**
|
||||||
|
* 等级系数 (属性 * (等级 * 系数))
|
||||||
|
*/
|
||||||
|
public final int[] levelFactors;
|
||||||
|
/**
|
||||||
|
* 基础属性
|
||||||
|
*/
|
||||||
|
public final cfg.TbGEntity.TAttributeValue[][] baseAttributes;
|
||||||
|
|
||||||
|
public static final int __ID__ = 1660355937;
|
||||||
|
|
||||||
|
@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):" + name + ","
|
||||||
|
+ "(format_field_name __code_style field.name):" + type + ","
|
||||||
|
+ "(format_field_name __code_style field.name):" + quality + ","
|
||||||
|
+ "(format_field_name __code_style field.name):" + icon + ","
|
||||||
|
+ "(format_field_name __code_style field.name):" + levelFactors + ","
|
||||||
|
+ "(format_field_name __code_style field.name):" + baseAttributes + ","
|
||||||
|
+ "}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
49
JisolGameServer/Main/src/main/java/cfg/TB/TbGSysFuben.java
Normal file
49
JisolGameServer/Main/src/main/java/cfg/TB/TbGSysFuben.java
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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 TbGSysFuben extends AbstractBean {
|
||||||
|
public TbGSysFuben(JsonObject _buf) {
|
||||||
|
id = _buf.get("id").getAsInt();
|
||||||
|
name = _buf.get("name").getAsString();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static TbGSysFuben deserialize(JsonObject _buf) {
|
||||||
|
return new cfg.TB.TbGSysFuben(_buf);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
public final int id;
|
||||||
|
/**
|
||||||
|
* 副本名称
|
||||||
|
*/
|
||||||
|
public final String name;
|
||||||
|
|
||||||
|
public static final int __ID__ = -239189592;
|
||||||
|
|
||||||
|
@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):" + name + ","
|
||||||
|
+ "}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -51,6 +51,10 @@ public final class Tables
|
|||||||
public cfg.TbGOnHookMap120001 getTbGOnHookMap120001() { return _tbgonhookmap120001; }
|
public cfg.TbGOnHookMap120001 getTbGOnHookMap120001() { return _tbgonhookmap120001; }
|
||||||
private final cfg.TbBattleResource _tbbattleresource;
|
private final cfg.TbBattleResource _tbbattleresource;
|
||||||
public cfg.TbBattleResource getTbBattleResource() { return _tbbattleresource; }
|
public cfg.TbBattleResource getTbBattleResource() { return _tbbattleresource; }
|
||||||
|
private final cfg.TbGRoleEquip _tbgroleequip;
|
||||||
|
public cfg.TbGRoleEquip getTbGRoleEquip() { return _tbgroleequip; }
|
||||||
|
private final cfg.TbGSysFuben _tbgsysfuben;
|
||||||
|
public cfg.TbGSysFuben getTbGSysFuben() { return _tbgsysfuben; }
|
||||||
|
|
||||||
public Tables(IJsonLoader loader) throws java.io.IOException {
|
public Tables(IJsonLoader loader) throws java.io.IOException {
|
||||||
_tbgglobal = new cfg.TbGGlobal(loader.load("tbgglobal"));
|
_tbgglobal = new cfg.TbGGlobal(loader.load("tbgglobal"));
|
||||||
@ -69,6 +73,8 @@ public final class Tables
|
|||||||
_tbgonhookmaps = new cfg.TbGOnHookMaps(loader.load("tbgonhookmaps"));
|
_tbgonhookmaps = new cfg.TbGOnHookMaps(loader.load("tbgonhookmaps"));
|
||||||
_tbgonhookmap120001 = new cfg.TbGOnHookMap120001(loader.load("tbgonhookmap120001"));
|
_tbgonhookmap120001 = new cfg.TbGOnHookMap120001(loader.load("tbgonhookmap120001"));
|
||||||
_tbbattleresource = new cfg.TbBattleResource(loader.load("tbbattleresource"));
|
_tbbattleresource = new cfg.TbBattleResource(loader.load("tbbattleresource"));
|
||||||
|
_tbgroleequip = new cfg.TbGRoleEquip(loader.load("tbgroleequip"));
|
||||||
|
_tbgsysfuben = new cfg.TbGSysFuben(loader.load("tbgsysfuben"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,52 @@
|
|||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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.TbGEntity;
|
||||||
|
|
||||||
|
import luban.*;
|
||||||
|
import com.google.gson.JsonElement;
|
||||||
|
import com.google.gson.JsonObject;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 属性
|
||||||
|
*/
|
||||||
|
public final class TAttributeValue extends AbstractBean {
|
||||||
|
public TAttributeValue(JsonObject _buf) {
|
||||||
|
id = _buf.get("id").getAsInt();
|
||||||
|
value = _buf.get("value").getAsInt();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static TAttributeValue deserialize(JsonObject _buf) {
|
||||||
|
return new cfg.TbGEntity.TAttributeValue(_buf);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 属性Id
|
||||||
|
*/
|
||||||
|
public final int id;
|
||||||
|
/**
|
||||||
|
* 属性值
|
||||||
|
*/
|
||||||
|
public final int value;
|
||||||
|
|
||||||
|
public static final int __ID__ = -308305801;
|
||||||
|
|
||||||
|
@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):" + value + ","
|
||||||
|
+ "}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
37
JisolGameServer/Main/src/main/java/cfg/TbGRoleEquip.java
Normal file
37
JisolGameServer/Main/src/main/java/cfg/TbGRoleEquip.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 TbGRoleEquip {
|
||||||
|
private final java.util.HashMap<Integer, cfg.TB.TbGRoleEquip> _dataMap;
|
||||||
|
private final java.util.ArrayList<cfg.TB.TbGRoleEquip> _dataList;
|
||||||
|
|
||||||
|
public TbGRoleEquip(JsonElement _buf) {
|
||||||
|
_dataMap = new java.util.HashMap<Integer, cfg.TB.TbGRoleEquip>();
|
||||||
|
_dataList = new java.util.ArrayList<cfg.TB.TbGRoleEquip>();
|
||||||
|
|
||||||
|
for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) {
|
||||||
|
cfg.TB.TbGRoleEquip _v;
|
||||||
|
_v = cfg.TB.TbGRoleEquip.deserialize(_e_.getAsJsonObject());
|
||||||
|
_dataList.add(_v);
|
||||||
|
_dataMap.put(_v.id, _v);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public java.util.HashMap<Integer, cfg.TB.TbGRoleEquip> getDataMap() { return _dataMap; }
|
||||||
|
public java.util.ArrayList<cfg.TB.TbGRoleEquip> getDataList() { return _dataList; }
|
||||||
|
|
||||||
|
public cfg.TB.TbGRoleEquip get(int key) { return _dataMap.get(key); }
|
||||||
|
|
||||||
|
}
|
37
JisolGameServer/Main/src/main/java/cfg/TbGSysFuben.java
Normal file
37
JisolGameServer/Main/src/main/java/cfg/TbGSysFuben.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 TbGSysFuben {
|
||||||
|
private final java.util.HashMap<Integer, cfg.TB.TbGSysFuben> _dataMap;
|
||||||
|
private final java.util.ArrayList<cfg.TB.TbGSysFuben> _dataList;
|
||||||
|
|
||||||
|
public TbGSysFuben(JsonElement _buf) {
|
||||||
|
_dataMap = new java.util.HashMap<Integer, cfg.TB.TbGSysFuben>();
|
||||||
|
_dataList = new java.util.ArrayList<cfg.TB.TbGSysFuben>();
|
||||||
|
|
||||||
|
for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) {
|
||||||
|
cfg.TB.TbGSysFuben _v;
|
||||||
|
_v = cfg.TB.TbGSysFuben.deserialize(_e_.getAsJsonObject());
|
||||||
|
_dataList.add(_v);
|
||||||
|
_dataMap.put(_v.id, _v);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public java.util.HashMap<Integer, cfg.TB.TbGSysFuben> getDataMap() { return _dataMap; }
|
||||||
|
public java.util.ArrayList<cfg.TB.TbGSysFuben> getDataList() { return _dataList; }
|
||||||
|
|
||||||
|
public cfg.TB.TbGSysFuben get(int key) { return _dataMap.get(key); }
|
||||||
|
|
||||||
|
}
|
@ -29,6 +29,8 @@ public class InitGameListener {
|
|||||||
return JsonParser.parseString(ResourceUtil.readUtf8Str("json/"+file+".json"));
|
return JsonParser.parseString(ResourceUtil.readUtf8Str("json/"+file+".json"));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
System.out.println(JSONUtil.toJsonStr(TD.DATA.getTbGRoleEquip().get(100101001)));
|
||||||
|
|
||||||
//设置基础缓存信息
|
//设置基础缓存信息
|
||||||
//裁决员
|
//裁决员
|
||||||
Cache.REFEREES = JSONUtil.toList(TD.DATA.getTbSServerInfo().get(GlobalId.SERVER_REFEREE_ID).args, String.class);
|
Cache.REFEREES = JSONUtil.toList(TD.DATA.getTbSServerInfo().get(GlobalId.SERVER_REFEREE_ID).args, String.class);
|
||||||
|
19364
JisolGameServer/Main/src/main/resources/json/tbgroleequip.json
Normal file
19364
JisolGameServer/Main/src/main/resources/json/tbgroleequip.json
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,10 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"id": 160001,
|
||||||
|
"name": "钻石副本"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 160002,
|
||||||
|
"name": "锻造石副本"
|
||||||
|
}
|
||||||
|
]
|
Loading…
x
Reference in New Issue
Block a user