mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-27 20:08:09 +00:00
fix indent by using smart tabs
This commit is contained in:
parent
25111ed907
commit
bc3fa67408
@ -611,13 +611,13 @@ public class GenshinPlayer {
|
|||||||
|
|
||||||
public OnlinePlayerInfo getOnlinePlayerInfo() {
|
public OnlinePlayerInfo getOnlinePlayerInfo() {
|
||||||
OnlinePlayerInfo.Builder onlineInfo = OnlinePlayerInfo.newBuilder()
|
OnlinePlayerInfo.Builder onlineInfo = OnlinePlayerInfo.newBuilder()
|
||||||
.setUid(this.getUid())
|
.setUid(this.getUid())
|
||||||
.setNickname(this.getNickname())
|
.setNickname(this.getNickname())
|
||||||
.setPlayerLevel(this.getLevel())
|
.setPlayerLevel(this.getLevel())
|
||||||
.setMpSettingType(this.getMpSetting())
|
.setMpSettingType(this.getMpSetting())
|
||||||
.setNameCardId(this.getNameCardId())
|
.setNameCardId(this.getNameCardId())
|
||||||
.setSignature(this.getSignature())
|
.setSignature(this.getSignature())
|
||||||
.setAvatar(HeadImage.newBuilder().setAvatarId(this.getHeadImage()));
|
.setAvatar(HeadImage.newBuilder().setAvatarId(this.getHeadImage()));
|
||||||
|
|
||||||
if (this.getWorld() != null) {
|
if (this.getWorld() != null) {
|
||||||
onlineInfo.setCurPlayerNumInWorld(this.getWorld().getPlayers().indexOf(this) + 1);
|
onlineInfo.setCurPlayerNumInWorld(this.getWorld().getPlayers().indexOf(this) + 1);
|
||||||
@ -650,16 +650,34 @@ public class GenshinPlayer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public SocialDetail.Builder getSocialDetail() {
|
public SocialDetail.Builder getSocialDetail() {
|
||||||
SocialDetail.Builder social = SocialDetail.newBuilder().setUid(this.getUid()).setAvatar(HeadImage.newBuilder().setAvatarId(this.getHeadImage())).setNickname(this.getNickname()).setSignature(this.getSignature()).setLevel(this.getLevel()).setBirthday(this.getBirthday().getFilledProtoWhenNotEmpty()).setWorldLevel(this.getWorldLevel()).setUnk1(1).setUnk3(1).setNameCardId(this.getNameCardId()).setFinishAchievementNum(0);
|
SocialDetail.Builder social = SocialDetail.newBuilder()
|
||||||
|
.setUid(this.getUid())
|
||||||
|
.setAvatar(HeadImage.newBuilder().setAvatarId(this.getHeadImage()))
|
||||||
|
.setNickname(this.getNickname())
|
||||||
|
.setSignature(this.getSignature())
|
||||||
|
.setLevel(this.getLevel())
|
||||||
|
.setBirthday(this.getBirthday().getFilledProtoWhenNotEmpty())
|
||||||
|
.setWorldLevel(this.getWorldLevel())
|
||||||
|
.setUnk1(1)
|
||||||
|
.setUnk3(1)
|
||||||
|
.setNameCardId(this.getNameCardId())
|
||||||
|
.setFinishAchievementNum(0);
|
||||||
return social;
|
return social;
|
||||||
}
|
}
|
||||||
|
|
||||||
public WorldPlayerLocationInfo getWorldPlayerLocationInfo() {
|
public WorldPlayerLocationInfo getWorldPlayerLocationInfo() {
|
||||||
return WorldPlayerLocationInfo.newBuilder().setSceneId(this.getSceneId()).setPlayerLoc(this.getPlayerLocationInfo()).build();
|
return WorldPlayerLocationInfo.newBuilder()
|
||||||
|
.setSceneId(this.getSceneId())
|
||||||
|
.setPlayerLoc(this.getPlayerLocationInfo())
|
||||||
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
public PlayerLocationInfo getPlayerLocationInfo() {
|
public PlayerLocationInfo getPlayerLocationInfo() {
|
||||||
return PlayerLocationInfo.newBuilder().setUid(this.getUid()).setPos(this.getPos().toProto()).setRot(this.getRotation().toProto()).build();
|
return PlayerLocationInfo.newBuilder()
|
||||||
|
.setUid(this.getUid())
|
||||||
|
.setPos(this.getPos().toProto())
|
||||||
|
.setRot(this.getRotation().toProto())
|
||||||
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized void onTick() {
|
public synchronized void onTick() {
|
||||||
|
Loading…
Reference in New Issue
Block a user