Skip to content

Commit 3fd495f

Browse files
committed
chore: bump to rust 1.80 to utilize LazyLock;
fix: bug in modder not initialized
1 parent 92f142c commit 3fd495f

15 files changed

+550
-195
lines changed

Cargo.lock

+96-74
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "majsoul_max_rs"
33
version = "0.4.9"
44
edition = "2021"
5+
rust-version = "1.80"
56

67
[lib]
78

@@ -14,7 +15,6 @@ name = "majsoul_max_rs"
1415
anyhow = "1.0.86"
1516
base64 = "0.22.1"
1617
bytes = "1.6.1"
17-
once_cell = "1.19.0"
1818
prost-reflect = { version = "0.14.0", features = ["serde"] }
1919
reqwest = { version = "0.12.5", features = [
2020
"json",

liqi_config/liqi.desc

+84-12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
��
2+
��
33

44
liqi.protolq"|
55
NotifyCaptcha
@@ -1348,7 +1348,7 @@ finishTime
13481348
open (Ropen#
13491349
public_notice
13501350
( R publicNotice!
1351-
contest_type (R contestType"�
1351+
contest_type (R contestType"�
13521352
CustomizedContestDetail
13531353
unique_id (RuniqueId
13541354

@@ -1375,7 +1375,9 @@ finishTime
13751375
signup_start_time (RsignupStartTime&
13761376
signup_end_time (RsignupEndTime
13771377
signup_type (R
1378-
signupType"�
1378+
signupType
1379+
1380+
auto_match (R autoMatch"�
13791381
CustomizedContestPlayerReport
13801382
rank_rule (RrankRule
13811383
rank (Rrank
@@ -3043,15 +3045,16 @@ resourceId%
30433045
observer_level (RobserverLevel"L
30443046
ReqEnterCustomizedContest
30453047
unique_id (RuniqueId
3046-
lang ( Rlang"�
3048+
lang ( Rlang"�
30473049
ResEnterCustomizedContest
30483050
error ( 2 .lq.ErrorRerror<
30493051
detail_info ( 2.lq.CustomizedContestDetailR
30503052
detailInfoF
30513053
player_report ( 2!.lq.CustomizedContestPlayerReportR playerReport
30523054
is_followed (R
30533055
isFollowed
3054-
state (Rstate"B
3056+
state (Rstate
3057+
is_admin (RisAdmin"B
30553058
#ReqFetchCustomizedContestOnlineInfo
30563059
unique_id (RuniqueId"k
30573060
#ResFetchCustomizedContestOnlineInfo
@@ -3905,14 +3908,28 @@ activityId?
39053908
activity_id (R
39063909
activityId
39073910
bag_id (RbagId
3908-
pos (Rpos"�
3911+
pos (Rpos"�
3912+
ContestSetting>
3913+
level_limit ( 2.lq.ContestSetting.LevelLimitR
3914+
levelLimit
3915+
3916+
game_limit (R gameLimit)
3917+
system_broadcast (RsystemBroadcast6
3918+
3919+
LevelLimit
3920+
type (Rtype
3921+
value (Rvalue"�
39093922
ReqCreateCustomizedContest
39103923
name ( Rname
39113924
open_show (RopenShow8
39123925
game_rule_setting ( 2 .lq.GameModeRgameRuleSetting
39133926

39143927
start_time (R startTime
3915-
end_time (RendTime"Z
3928+
end_time (RendTime
3929+
3930+
auto_match (R autoMatch
3931+
rank_rule (RrankRule;
3932+
contest_setting ( 2.lq.ContestSettingRcontestSetting"Z
39163933
ResCreateCustomizedContest
39173934
error ( 2 .lq.ErrorRerror
39183935
unique_id (RuniqueId":
@@ -3922,7 +3939,7 @@ $ResFetchManagerCustomizedContestList
39223939
error ( 2 .lq.ErrorRerror5
39233940
contests ( 2.lq.CustomizedContestBaseRcontests"?
39243941
ReqFetchManagerCustomizedContest
3925-
unique_id (RuniqueId"�
3942+
unique_id (RuniqueId"�
39263943
ResFetchManagerCustomizedContest
39273944
error ( 2 .lq.ErrorRerror
39283945
name ( Rname
@@ -3937,7 +3954,8 @@ auto_match (R autoMatch
39373954
check_state (R
39383955
checkState#
39393956
checking_name
3940-
( R checkingName"�
3957+
( R checkingName;
3958+
contest_setting ( 2.lq.ContestSettingRcontestSetting"�
39413959
!ReqUpdateManagerCustomizedContest
39423960
name ( Rname
39433961
open_show (RopenShow8
@@ -3948,7 +3966,57 @@ start_time (R startTime
39483966
unique_id (RuniqueId
39493967

39503968
auto_match (R autoMatch
3951-
rank_rule (RrankRule"
3969+
rank_rule (RrankRule;
3970+
contest_setting ( 2.lq.ContestSettingRcontestSetting"f
3971+
ReqFetchContestPlayerRank
3972+
unique_id (RuniqueId
3973+
limit (Rlimit
3974+
offset (Roffset"�
3975+
ResFetchContestPlayerRank
3976+
error ( 2 .lq.ErrorRerror
3977+
total (Rtotal<
3978+
rank ( 2(.lq.ResFetchContestPlayerRank.SeasonRankRrankI
3979+
player_data ( 2(.lq.ResFetchContestPlayerRank.PlayerDataR
3980+
playerData�
3981+
ContestPlayerAccountData(
3982+
total_game_count (RtotalGameCountk
3983+
recent_games ( 2H.lq.ResFetchContestPlayerRank.ContestPlayerAccountData.ContestGameResultR recentGames�
3984+
highest_series_points ( 2N.lq.ResFetchContestPlayerRank.ContestPlayerAccountData.ContestSeriesGameResultRhighestSeriesPointsH
3985+
ContestGameResult
3986+
rank (Rrank
3987+
total_point (R
3988+
totalPoint�
3989+
ContestSeriesGameResult
3990+
key (Rkeyb
3991+
results ( 2H.lq.ResFetchContestPlayerRank.ContestPlayerAccountData.ContestGameResultRresults�
3992+
3993+
SeasonRank
3994+
3995+
account_id (R accountId
3996+
nickname ( RnicknameJ
3997+
data ( 26.lq.ResFetchContestPlayerRank.ContestPlayerAccountDataRdatal
3998+
3999+
PlayerData
4000+
rank (RrankJ
4001+
data ( 26.lq.ResFetchContestPlayerRank.ContestPlayerAccountDataRdata"6
4002+
ReqFetchReadyPlayerList
4003+
unique_id (RuniqueId"�
4004+
ResFetchReadyPlayerList
4005+
error ( 2 .lq.ErrorRerror6
4006+
list ( 2".lq.ResFetchReadyPlayerList.PlayerRlistC
4007+
Player
4008+
4009+
account_id (R accountId
4010+
nickname ( Rnickname"�
4011+
ReqCreateGamePlan
4012+
unique_id (RuniqueId!
4013+
account_list (R accountList&
4014+
game_start_time (RgameStartTime#
4015+
shuffle_seats (R shuffleSeats
4016+
ai_level (RaiLevel"Y
4017+
"ResGenerateContestManagerLoginCode
4018+
error ( 2 .lq.ErrorRerror
4019+
code ( Rcode"
39524020
ActionMJStart"U
39534021
NewRoundOpenedTiles
39544022
seat (Rseat
@@ -4741,7 +4809,7 @@ account_id (R accountId
47414809
NULL
47424810
AUTH
47434811
SYNCING
4744-
READY2�
4812+
READY2�
47454813
Lobby;
47464814
fetchConnectionInfo.lq.ReqCommon.lq.ResConnectionInfo6
47474815
fetchQueueInfo.lq.ReqCommon.lq.ResFetchQueueInfo+
@@ -5073,7 +5141,11 @@ bindOauth2.lq.ReqBindOauth2.lq.ResCommon9
50735141
createCustomizedContest.lq.ReqCreateCustomizedContest.lq.ResCreateCustomizedContestw
50745142
!fetchManagerCustomizedContestList(.lq.ReqFetchmanagerCustomizedContestList(.lq.ResFetchManagerCustomizedContestListk
50755143
fetchManagerCustomizedContest$.lq.ReqFetchManagerCustomizedContest$.lq.ResFetchManagerCustomizedContestV
5076-
updateManagerCustomizedContest%.lq.ReqUpdateManagerCustomizedContest.lq.ResCommon2�
5144+
updateManagerCustomizedContest%.lq.ReqUpdateManagerCustomizedContest.lq.ResCommonV
5145+
fetchContestPlayerRank.lq.ReqFetchContestPlayerRank.lq.ResFetchContestPlayerRankP
5146+
fetchReadyPlayerList.lq.ReqFetchReadyPlayerList.lq.ResFetchReadyPlayerList6
5147+
createGamePlan.lq.ReqCreateGamePlan.lq.ResCommonX
5148+
generateContestManagerLoginCode.lq.ReqCommon&.lq.ResGenerateContestManagerLoginCode2�
50775149
FastTest,
50785150
authGame.lq.ReqAuthGame.lq.ResAuthGame,
50795151
enterGame.lq.ReqCommon.lq.ResEnterGame,

liqi_config/liqi.json

+1-1
Large diffs are not rendered by default.

liqi_config/liqi.proto

+103
Original file line numberDiff line numberDiff line change
@@ -1843,6 +1843,7 @@ message CustomizedContestDetail {
18431843
uint32 signup_start_time = 17;
18441844
uint32 signup_end_time = 18;
18451845
uint32 signup_type = 19;
1846+
uint32 auto_match = 20;
18461847
}
18471848

18481849
message CustomizedContestPlayerReport {
@@ -2759,6 +2760,10 @@ service Lobby {
27592760
rpc fetchManagerCustomizedContestList (ReqFetchmanagerCustomizedContestList) returns (ResFetchManagerCustomizedContestList);
27602761
rpc fetchManagerCustomizedContest (ReqFetchManagerCustomizedContest) returns (ResFetchManagerCustomizedContest);
27612762
rpc updateManagerCustomizedContest (ReqUpdateManagerCustomizedContest) returns (ResCommon);
2763+
rpc fetchContestPlayerRank (ReqFetchContestPlayerRank) returns (ResFetchContestPlayerRank);
2764+
rpc fetchReadyPlayerList (ReqFetchReadyPlayerList) returns (ResFetchReadyPlayerList);
2765+
rpc createGamePlan (ReqCreateGamePlan) returns (ResCommon);
2766+
rpc generateContestManagerLoginCode (ReqCommon) returns (ResGenerateContestManagerLoginCode);
27622767
}
27632768

27642769
message ResConnectionInfo {
@@ -4695,6 +4700,7 @@ message ResEnterCustomizedContest {
46954700
CustomizedContestPlayerReport player_report = 3;
46964701
bool is_followed = 4;
46974702
uint32 state = 5;
4703+
bool is_admin = 6;
46984704
}
46994705

47004706
message ReqFetchCustomizedContestOnlineInfo {
@@ -6033,13 +6039,29 @@ message ReqIslandActivityUnlockBagGrid {
60336039
repeated uint32 pos = 3;
60346040
}
60356041

6042+
message ContestSetting {
6043+
6044+
repeated LevelLimit level_limit = 1;
6045+
uint32 game_limit = 2;
6046+
uint32 system_broadcast = 3;
6047+
6048+
message LevelLimit {
6049+
6050+
uint32 type = 1;
6051+
uint32 value = 2;
6052+
}
6053+
}
6054+
60366055
message ReqCreateCustomizedContest {
60376056

60386057
string name = 1;
60396058
uint32 open_show = 2;
60406059
GameMode game_rule_setting = 3;
60416060
uint32 start_time = 4;
60426061
uint32 end_time = 5;
6062+
uint32 auto_match = 6;
6063+
uint32 rank_rule = 7;
6064+
ContestSetting contest_setting = 8;
60436065
}
60446066

60456067
message ResCreateCustomizedContest {
@@ -6076,6 +6098,7 @@ message ResFetchManagerCustomizedContest {
60766098
uint32 rank_rule = 8;
60776099
uint32 check_state = 9;
60786100
string checking_name = 10;
6101+
ContestSetting contest_setting = 11;
60796102
}
60806103

60816104
message ReqUpdateManagerCustomizedContest {
@@ -6088,6 +6111,86 @@ message ReqUpdateManagerCustomizedContest {
60886111
uint32 unique_id = 6;
60896112
uint32 auto_match = 7;
60906113
uint32 rank_rule = 8;
6114+
ContestSetting contest_setting = 9;
6115+
}
6116+
6117+
message ReqFetchContestPlayerRank {
6118+
6119+
uint32 unique_id = 1;
6120+
uint32 limit = 2;
6121+
uint32 offset = 3;
6122+
}
6123+
6124+
message ResFetchContestPlayerRank {
6125+
6126+
Error error = 1;
6127+
uint32 total = 2;
6128+
repeated SeasonRank rank = 3;
6129+
PlayerData player_data = 4;
6130+
6131+
message ContestPlayerAccountData {
6132+
6133+
uint32 total_game_count = 1;
6134+
repeated ContestGameResult recent_games = 2;
6135+
repeated ContestSeriesGameResult highest_series_points = 3;
6136+
6137+
message ContestGameResult {
6138+
6139+
uint32 rank = 1;
6140+
int32 total_point = 2;
6141+
}
6142+
6143+
message ContestSeriesGameResult {
6144+
6145+
uint32 key = 1;
6146+
repeated ContestGameResult results = 2;
6147+
}
6148+
}
6149+
6150+
message SeasonRank {
6151+
6152+
uint32 account_id = 1;
6153+
string nickname = 2;
6154+
ContestPlayerAccountData data = 3;
6155+
}
6156+
6157+
message PlayerData {
6158+
6159+
uint32 rank = 1;
6160+
ContestPlayerAccountData data = 2;
6161+
}
6162+
}
6163+
6164+
message ReqFetchReadyPlayerList {
6165+
6166+
uint32 unique_id = 1;
6167+
}
6168+
6169+
message ResFetchReadyPlayerList {
6170+
6171+
Error error = 1;
6172+
repeated Player list = 2;
6173+
6174+
message Player {
6175+
6176+
uint32 account_id = 1;
6177+
string nickname = 2;
6178+
}
6179+
}
6180+
6181+
message ReqCreateGamePlan {
6182+
6183+
uint32 unique_id = 1;
6184+
repeated uint32 account_list = 2;
6185+
uint32 game_start_time = 3;
6186+
uint32 shuffle_seats = 4;
6187+
uint32 ai_level = 5;
6188+
}
6189+
6190+
message ResGenerateContestManagerLoginCode {
6191+
6192+
Error error = 1;
6193+
string code = 2;
60916194
}
60926195

60936196
message ActionMJStart {

liqi_config/lqc.lqbin

40 KB
Binary file not shown.

liqi_config/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@
3535
"helperSwitch": 1,
3636
"modSwitch": 0,
3737
"autoUpdate": 1,
38-
"liqiVersion": "v0.11.48.w"
38+
"liqiVersion": "v0.11.58.w"
3939
}

0 commit comments

Comments
 (0)