Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
480374fb
Commit
480374fb
authored
Apr 25, 2022
by
Asnxthaony
Committed by
Melledy
Apr 25, 2022
Browse files
fix indent by using smart tabs
parent
4e5d72a9
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/GenshinPlayer.java
View file @
480374fb
...
@@ -650,16 +650,34 @@ public class GenshinPlayer {
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment