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
afa8fb7a
Commit
afa8fb7a
authored
May 01, 2022
by
KingRainbow44
Browse files
Merge remote-tracking branch 'origin/development' into development
parents
19e59bf2
98122f3c
Changes
23
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/packet/send/PacketGetGachaInfoRsp.java
View file @
afa8fb7a
...
...
@@ -6,9 +6,17 @@ import emu.grasscutter.net.packet.PacketOpcodes;
public
class
PacketGetGachaInfoRsp
extends
BasePacket
{
@Deprecated
public
PacketGetGachaInfoRsp
(
GachaManager
manager
)
{
super
(
PacketOpcodes
.
GetGachaInfoRsp
);
this
.
setData
(
manager
.
toProto
());
}
public
PacketGetGachaInfoRsp
(
GachaManager
manager
,
String
sessionKey
)
{
super
(
PacketOpcodes
.
GetGachaInfoRsp
);
this
.
setData
(
manager
.
toProto
(
sessionKey
));
}
}
src/main/java/emu/grasscutter/server/packet/send/PacketGetShopmallDataRsp.java
View file @
afa8fb7a
...
...
@@ -4,13 +4,19 @@ import emu.grasscutter.net.packet.BasePacket;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp
;
import
java.util.List
;
public
class
PacketGetShopmallDataRsp
extends
BasePacket
{
public
PacketGetShopmallDataRsp
()
{
super
(
PacketOpcodes
.
GetShopmallDataRsp
);
GetShopmallDataRsp
proto
=
GetShopmallDataRsp
.
newBuilder
().
build
();
List
<
Integer
>
shop_malls
=
List
.
of
(
900
,
1052
,
902
,
1001
,
903
);
GetShopmallDataRsp
proto
=
GetShopmallDataRsp
.
newBuilder
()
.
addAllShopTypeList
(
shop_malls
)
.
build
();
this
.
setData
(
proto
);
}
}
src/main/java/emu/grasscutter/server/packet/send/PacketMcoinExchangeHcoinRsp.java
View file @
afa8fb7a
...
...
@@ -6,13 +6,13 @@ import emu.grasscutter.net.proto.McoinExchangeHcoinRspOuterClass;
public
class
PacketMcoinExchangeHcoinRsp
extends
BasePacket
{
public
PacketMcoinExchangeHcoinRsp
(
int
mcoin
,
int
hcoin
)
{
public
PacketMcoinExchangeHcoinRsp
(
int
retCode
)
{
super
(
PacketOpcodes
.
McoinExchangeHcoinRsp
);
McoinExchangeHcoinRspOuterClass
.
McoinExchangeHcoinRsp
mcoinExchangeHcoinRsp
=
McoinExchangeHcoinRspOuterClass
.
McoinExchangeHcoinRsp
.
newBuilder
()
.
set
MCoinNum
(
mcoin
)
.
setHCoinNum
(
hcoin
)
.
build
();
McoinExchangeHcoinRspOuterClass
.
McoinExchangeHcoinRsp
proto
=
McoinExchangeHcoinRspOuterClass
.
McoinExchangeHcoinRsp
.
newBuilder
()
.
set
Retcode
(
retCode
)
.
build
();
this
.
setData
(
mcoinExchangeHcoinRsp
);
this
.
setData
(
proto
);
}
}
Prev
1
2
Next
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