fix(proto): wrong names
This commit is contained in:
1 parent
dfe7292a14
commit
326768621e
5 files changed
+7
-9
No files matched your search
@@ -17188,7 +17188,7 @@ message MarkPresetLineupCsReq {
|
|||||||
bool _is_favourite = 8;
|
bool _is_favourite = 8;
|
||||||
uint32 index = 10;
|
uint32 index = 10;
|
||||||
}
|
}
|
||||||
message SetTeamFavourite {
|
message MarkPresetLineupScRsp {
|
||||||
bool _is_favourite = 2;
|
bool _is_favourite = 2;
|
||||||
uint32 index = 9;
|
uint32 index = 9;
|
||||||
uint32 retcode = 14;
|
uint32 retcode = 14;
|
||||||
|
|||||||
+1
-1
@@ -221,7 +221,7 @@ SyncAllPresetLineupNotify = 767
|
|||||||
SwapLineupScRsp = 770
|
SwapLineupScRsp = 770
|
||||||
JoinLineupScRsp = 771
|
JoinLineupScRsp = 771
|
||||||
SwitchLineupIndexScRsp = 775
|
SwitchLineupIndexScRsp = 775
|
||||||
SetTeamFavourite = 780
|
MarkPresetLineupScRsp = 780
|
||||||
ReplaceLineupCsReq = 782
|
ReplaceLineupCsReq = 782
|
||||||
GetCurLineupDataScRsp = 787
|
GetCurLineupDataScRsp = 787
|
||||||
SetLineupNameScRsp = 792
|
SetLineupNameScRsp = 792
|
||||||
|
|||||||
+1
-1
@@ -117,7 +117,7 @@ GetLineupAvatarDataScRsp
|
|||||||
RecoverAllLineupCsReq
|
RecoverAllLineupCsReq
|
||||||
RecoverAllLineupScRsp
|
RecoverAllLineupScRsp
|
||||||
MarkPresetLineupCsReq
|
MarkPresetLineupCsReq
|
||||||
SetTeamFavourite
|
MarkPresetLineupScRsp
|
||||||
SyncLineupNotify
|
SyncLineupNotify
|
||||||
|
|
||||||
# ---- scene ----
|
# ---- scene ----
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ void onMarkPresetLineup(net::Session& session, const proto::MarkPresetLineupCsRe
|
|||||||
Player* player = playerOf(session, "MarkPresetLineup");
|
Player* player = playerOf(session, "MarkPresetLineup");
|
||||||
if (player == nullptr) return;
|
if (player == nullptr) return;
|
||||||
|
|
||||||
proto::SetTeamFavourite rsp;
|
proto::MarkPresetLineupScRsp rsp;
|
||||||
rsp.index = req.index;
|
rsp.index = req.index;
|
||||||
rsp._is_favourite = req._is_favourite;
|
rsp._is_favourite = req._is_favourite;
|
||||||
if (req.index >= kSquadCount) {
|
if (req.index >= kSquadCount) {
|
||||||
@@ -199,9 +199,7 @@ void onMarkPresetLineup(net::Session& session, const proto::MarkPresetLineupCsRe
|
|||||||
player->saveNow();
|
player->saveNow();
|
||||||
rsp.retcode = 0;
|
rsp.retcode = 0;
|
||||||
}
|
}
|
||||||
// The dump never names a MarkPresetLineupScRsp; 773 is it, under the name the
|
session.send(cmd::MarkPresetLineupScRsp, rsp);
|
||||||
// client's own symbols use.
|
|
||||||
session.send(cmd::SetTeamFavourite, rsp);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|||||||
+2
-2
@@ -979,8 +979,8 @@ void runFlowTests() {
|
|||||||
mark.index = 0;
|
mark.index = 0;
|
||||||
mark._is_favourite = true;
|
mark._is_favourite = true;
|
||||||
client.send(cmd::MarkPresetLineupCsReq, mark);
|
client.send(cmd::MarkPresetLineupCsReq, mark);
|
||||||
check(client.await(cmd::SetTeamFavourite, packet), "marking a preset answers on 773");
|
check(client.await(cmd::MarkPresetLineupScRsp, packet), "marking a preset answers on 780");
|
||||||
proto::SetTeamFavourite markRsp;
|
proto::MarkPresetLineupScRsp markRsp;
|
||||||
check(parseBody(packet, markRsp), "the mark parses");
|
check(parseBody(packet, markRsp), "the mark parses");
|
||||||
check(markRsp.retcode == 0 && markRsp._is_favourite, "the squad is now a favourite");
|
check(markRsp.retcode == 0 && markRsp._is_favourite, "the squad is now a favourite");
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user