Comments (2)
新建一个AreaInfo类,里面存放区服信息
public class AreaInfo {
public static class Resource {
public String resourceUrl = "";
public String dataUrl = "";
public String resourceUrlBak = "";
public int clientDataVersion = ;
public int clientSilenceDataVersion = ;
public String clientDataMd5 = "";
public String clientSilenceDataMd5 = "";
publicAreaInfo.ResVersionConfig resVersionConfig = newAreaInfo.ResVersionConfig();
public String clientVersionSuffix = "";
public String clientSilenceVersionSuffix = "";
public String nextResourceUrl = "";
public AreaInfo.ResVersionConfig nextResVersionConfig = new AreaInfo.ResVersionConfig();
}
public static class ResVersionConfig {
public int version = ;
public String md5 = "";
public String releaseTotalSize = "";
public String versionSuffix = "";
public String branch = "";
}
}
在RegionHandler类中编辑regionInfo
AreaInfo.Resource area = new AreaInfo.Resource();
RegionInfoOuterClass.RegionInfo regionInfo = RegionInfoOuterClass.RegionInfo.newBuilder().setGateserverIp(region.Ip).setGateserverPort(region.Port).setResourceUrl(area.resourceUrl).setDataUrl(area.dataUrl).setResourceUrlBak(area.resourceUrlBak).setClientDataVersion(area.clientDataVersion).setClientSilenceDataVersion(area.clientSilenceDataVersion).setClientDataMd5(area.clientDataMd5).setClientSilenceDataMd5(area.clientSilenceDataMd5).setResVersionConfig(ResVersionConfigOuterClass.ResVersionConfig.newBuilder().setVersion(area.resVersionConfig.version).setMd5(area.resVersionConfig.md5).setReleaseTotalSize(area.resVersionConfig.releaseTotalSize).setVersionSuffix(area.resVersionConfig.versionSuffix).setBranch(area.resVersionConfig.branch).build()).setClientVersionSuffix(area.clientVersionSuffix).setClientSilenceVersionSuffix(area.clientSilenceVersionSuffix).setNextResourceUrl(area.nextResourceUrl).setNextResVersionConfig(ResVersionConfigOuterClass.ResVersionConfig.newBuilder().setVersion(area.nextResVersionConfig.version).setMd5(area.nextResVersionConfig.md5).setReleaseTotalSize(area.nextResVersionConfig.releaseTotalSize).setVersionSuffix(area.nextResVersionConfig.versionSuffix).setBranch(area.nextResVersionConfig.branch)).build();
from grasscutter.
@yunochan 这种能否同时实现IOS和ANDROID客户端?
from grasscutter.
Related Issues (20)
- [Bug] 烹饪j界面看不到任何食材,核心1.7.4 HOT 1
- [Bug] ley line is missing in the game
- [Bug] 怎么在多个IP上启动服务器
- [Bug] Can’t change language to Japanese-Jp
- [Bug] Newly registered accounts play the opening storyline twice.新注册的账号会播放两遍开场剧情
- 如何重置珍珠纪行奖励和时间,重新新的一轮奖励获取? How to reset the Pearl Battle Pass rewards and time, and obtain a new round of rewards?
- 流明石触媒无法升级。 HOT 1
- [Bug] Memory leak 内存泄露
- [Bug] 如何重置珍珠纪行奖励和时间,重新新的一轮奖励获取? How to reset the Pearl Battle Pass rewards and time, and obtain a new round of rewards?
- [Bug] Call unchecked GetServerTime HOT 2
- [Bug] 角色q技能图标一直闪烁,按住前进角色一顿一顿的需要怎么解决
- [Bug] spiralabyss Countdown error HOT 1
- [Bug] 传送用不了
- project HOT 1
- [Feature Request] 怎么一键点亮所有的神像和传送锚点? HOT 1
- [Bug] GenerateEffectiveLombokConfig
- [Feature Request] 能否构建一个4.6版本的Releases?或者如何自行构建新版本的核心?已有新的数据泄出。https://gitlab.com/YuukiPS/GC-Resources/-/tree/4.6 HOT 8
- [Feature Request] 改成用服务器公网IP连接 不再用127.0.0.1连接了,需要修改哪里?
- [Bug] 一键点亮地图后七天神像无法交互
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grasscutter.