@lf_maple/koishi-plugin-phi-plugin-full 0.1.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/core/.github/ISSUE_TEMPLATE/bug.yaml +133 -0
- package/core/.github/ISSUE_TEMPLATE/config.yml +1 -0
- package/core/.github/ISSUE_TEMPLATE/enhancement.yml +44 -0
- package/core/.vscode/c_cpp_properties.json +18 -0
- package/core/.vscode/launch.json +24 -0
- package/core/.vscode/settings.json +59 -0
- package/core/CHANGELOG.md +184 -0
- package/core/LICENSE +674 -0
- package/core/README.md +330 -0
- package/core/README_en.md +285 -0
- package/core/apps/Dan.js +129 -0
- package/core/apps/RankList.js +322 -0
- package/core/apps/aliasProposal.js +223 -0
- package/core/apps/apiSetting.js +592 -0
- package/core/apps/b19.js +1329 -0
- package/core/apps/botClient.js +64 -0
- package/core/apps/chart.js +692 -0
- package/core/apps/guessGame/guessIll.js +821 -0
- package/core/apps/guessGame/guessLetter.js +831 -0
- package/core/apps/guessGame/guessTips.js +254 -0
- package/core/apps/guessGame/letterGameUtils.js +74 -0
- package/core/apps/guessGame.js +214 -0
- package/core/apps/help.js +117 -0
- package/core/apps/manage.js +288 -0
- package/core/apps/market.js +243 -0
- package/core/apps/money.js +1064 -0
- package/core/apps/phisong.js +1418 -0
- package/core/apps/session.js +664 -0
- package/core/apps/setting.js +468 -0
- package/core/apps/update.js +541 -0
- package/core/apps/user.js +968 -0
- package/core/components/Config.js +249 -0
- package/core/components/Data.js +304 -0
- package/core/components/FileWatcherRegistry.js +102 -0
- package/core/components/Logger.js +11 -0
- package/core/components/ProcessCleanup.js +113 -0
- package/core/components/Version.js +56 -0
- package/core/components/YamlReader.js +157 -0
- package/core/components/baseClass.js +287 -0
- package/core/components/common.js +47 -0
- package/core/components/index.js +13 -0
- package/core/components/platform/index.js +79 -0
- package/core/components/platform/koishi.js +800 -0
- package/core/components/platform/koishiDatabaseRedis.js +391 -0
- package/core/components/platform/memoryRedis.js +209 -0
- package/core/components/platform/types.d.ts +272 -0
- package/core/components/platform/yunzai.js +604 -0
- package/core/components/segment.js +4 -0
- package/core/config/config//350/277/231/351/207/214/346/230/257/351/205/215/347/275/256/346/226/207/344/273/266/347/233/256/345/275/225.txt +0 -0
- package/core/config/default_config/banGroup.yaml +14 -0
- package/core/config/default_config/config.yaml +159 -0
- package/core/config/default_config/nickconfig.yaml +6 -0
- package/core/config/default_config/otherinfo.yaml +51 -0
- package/core/guoba.support.js +597 -0
- package/core/index.js +85 -0
- package/core/lib/AES.js +40 -0
- package/core/lib/Base64.js +22 -0
- package/core/lib/ByteReader.js +168 -0
- package/core/lib/GameProgress.js +37 -0
- package/core/lib/GameRecord.js +47 -0
- package/core/lib/GameSettings.js +24 -0
- package/core/lib/GameUser.js +19 -0
- package/core/lib/Level.js +6 -0
- package/core/lib/LevelRecord.js +9 -0
- package/core/lib/PhigrosUser.js +135 -0
- package/core/lib/SaveManager.js +117 -0
- package/core/lib/Summary.js +47 -0
- package/core/lib/TapTap/CompleteQRCodeData.js +27 -0
- package/core/lib/TapTap/LCHelper.js +81 -0
- package/core/lib/TapTap/TapTapHelper.js +170 -0
- package/core/lib/TapTap/getQRcode.js +61 -0
- package/core/lib/Util.js +30 -0
- package/core/lib/getQRcode.js +73 -0
- package/core/lib/http.js +105 -0
- package/core/model/README.md +3 -0
- package/core/model/api/aliasProposalService.js +151 -0
- package/core/model/api/apiVersion.js +67 -0
- package/core/model/api/autoSeekApi.js +165 -0
- package/core/model/api/botApiAuth.js +208 -0
- package/core/model/api/botSyncService.js +78 -0
- package/core/model/api/gameRecordPayload.js +24 -0
- package/core/model/api/makeRequest.js +1004 -0
- package/core/model/api/makeRequestFnc.js +17 -0
- package/core/model/api/phiApiClient.js +53 -0
- package/core/model/api/phiApiErrors.js +121 -0
- package/core/model/filesystem/getFile.js +256 -0
- package/core/model/filesystem/path.js +84 -0
- package/core/model/game/Chart.js +57 -0
- package/core/model/game/LevelRecordInfo.js +109 -0
- package/core/model/game/SongsInfo.js +46 -0
- package/core/model/game/b30Analysis.js +93 -0
- package/core/model/game/chartParser/Chart.js +23 -0
- package/core/model/game/chartParser/JudgeLine.js +38 -0
- package/core/model/game/chartParser/base/JudgeLineEvent.js +99 -0
- package/core/model/game/chartParser/base/Note.js +44 -0
- package/core/model/game/chartParser/base/SpeedEvent.js +25 -0
- package/core/model/game/chartParser/base/baseType.js +2 -0
- package/core/model/game/constNum.js +215 -0
- package/core/model/game/fCompute.js +711 -0
- package/core/model/game/getChartTag.js +140 -0
- package/core/model/game/getComment.js +132 -0
- package/core/model/game/getInfo.js +1069 -0
- package/core/model/game/getRksRank.js +77 -0
- package/core/model/game/markdown.js +77 -0
- package/core/model/integrations/Vika.js +103 -0
- package/core/model/integrations/getInfoFromTap.js +80 -0
- package/core/model/render/getPic.js +79 -0
- package/core/model/render/picmodle.js +496 -0
- package/core/model/render/progress-bar.js +44 -0
- package/core/model/render/puppeteer.js +431 -0
- package/core/model/render/renderPressureHistory.js +71 -0
- package/core/model/render/send.js +94 -0
- package/core/model/save/Save.js +953 -0
- package/core/model/save/analyzeSaveHistory.js +413 -0
- package/core/model/save/getBackup.js +328 -0
- package/core/model/save/getSave.js +90 -0
- package/core/model/save/getSaveFromApi.js +46 -0
- package/core/model/save/saveHistory.js +586 -0
- package/core/model/save/scoreHistory.js +101 -0
- package/core/model/theme/catalog.js +192 -0
- package/core/model/theme/installGuard.js +275 -0
- package/core/model/theme/installLock.js +174 -0
- package/core/model/theme/installer.js +398 -0
- package/core/model/theme/manager.js +408 -0
- package/core/model/theme/marketClient.js +294 -0
- package/core/model/theme/paths.js +42 -0
- package/core/model/theme/policy.js +54 -0
- package/core/model/theme/recovery.js +167 -0
- package/core/model/theme/useService.js +187 -0
- package/core/model/type/aliasProposal.d.ts +45 -0
- package/core/model/type/type.js +420 -0
- package/core/model/user/apiPermission.js +62 -0
- package/core/model/user/getBanGroup.js +120 -0
- package/core/model/user/getNotes.js +48 -0
- package/core/model/user/pluginData.js +101 -0
- package/core/model/user/userCredentialStore.js +154 -0
- package/core/model/user/userCredentials.js +860 -0
- package/core/package.json +60 -0
- package/core/resources/0608badSave/save.json +1 -0
- package/core/resources/LICENSE +201 -0
- package/core/resources/html/analyzeSaveHistory/analyzeSaveHistory.art +220 -0
- package/core/resources/html/analyzeSaveHistory/analyzeSaveHistory.css +345 -0
- package/core/resources/html/analyzeSaveHistory/analyzeSaveHistory.html +434 -0
- package/core/resources/html/arcgrosB19/arcgros.png +0 -0
- package/core/resources/html/arcgrosB19/arcgrosB19-orz.html +276 -0
- package/core/resources/html/arcgrosB19/arcgrosB19.art +168 -0
- package/core/resources/html/arcgrosB19/arcgrosB19.css +637 -0
- package/core/resources/html/atlas/atlas-orz.html +313 -0
- package/core/resources/html/atlas/atlas.art +194 -0
- package/core/resources/html/atlas/atlas.css +695 -0
- package/core/resources/html/avatar/-SURREALISM-.png +0 -0
- package/core/resources/html/avatar/Alkaid.png +0 -0
- package/core/resources/html/avatar/Aphasia.png +0 -0
- package/core/resources/html/avatar/Artificial Existence.png +0 -0
- package/core/resources/html/avatar/Bonus Time.png +0 -0
- package/core/resources/html/avatar/Burn.png +0 -0
- package/core/resources/html/avatar/Cereris1.png +0 -0
- package/core/resources/html/avatar/Cereris2.png +0 -0
- package/core/resources/html/avatar/Cereris3.png +0 -0
- package/core/resources/html/avatar/Christmas -2019.png +0 -0
- package/core/resources/html/avatar/Cipher1.png +0 -0
- package/core/resources/html/avatar/Class Memories.png +0 -0
- package/core/resources/html/avatar/Credits.png +0 -0
- package/core/resources/html/avatar/Dash.png +0 -0
- package/core/resources/html/avatar/Dlyrotz.png +0 -0
- package/core/resources/html/avatar/Doppelganger1.png +0 -0
- package/core/resources/html/avatar/Doppelganger2.png +0 -0
- package/core/resources/html/avatar/Drop it.png +0 -0
- package/core/resources/html/avatar/Energy Synergy Matrix1.png +0 -0
- package/core/resources/html/avatar/Energy Synergy Matrix2.png +0 -0
- package/core/resources/html/avatar/Energy Synergy Matrix3.png +0 -0
- package/core/resources/html/avatar/Engine x Start!! (melody mix).png +0 -0
- package/core/resources/html/avatar/Engine x Start!! extra 1 -by cycats.png +0 -0
- package/core/resources/html/avatar/Eradication Catastrophe.png +0 -0
- package/core/resources/html/avatar/FULi AUTO SHOOTER extra 1 -by cycats.png +0 -0
- package/core/resources/html/avatar/FULi AUTO SHOOTER.png +0 -0
- package/core/resources/html/avatar/Feast/350/277/234/344/270/234/344/271/213/345/256/264-Special1.png +0 -0
- package/core/resources/html/avatar/Feast/350/277/234/344/270/234/344/271/213/345/256/264-Special2.png +0 -0
- package/core/resources/html/avatar/Feast/350/277/234/344/270/234/344/271/213/345/256/2641.png +0 -0
- package/core/resources/html/avatar/Feast/350/277/234/344/270/234/344/271/213/345/256/2642.png +0 -0
- package/core/resources/html/avatar/Feast/350/277/234/344/270/234/344/271/213/345/256/2643.png +0 -0
- package/core/resources/html/avatar/Feast/350/277/234/344/270/234/344/271/213/345/256/2644.png +0 -0
- package/core/resources/html/avatar/Feast/350/277/234/344/270/234/344/271/213/345/256/2645.png +0 -0
- package/core/resources/html/avatar/Feast/350/277/234/344/270/234/344/271/213/345/256/2646.png +0 -0
- package/core/resources/html/avatar/Feast/350/277/234/344/270/234/344/271/213/345/256/2647.png +0 -0
- package/core/resources/html/avatar/Feast/350/277/234/344/270/234/344/271/213/345/256/2648.png +0 -0
- package/core/resources/html/avatar/Feast/350/277/234/344/270/234/344/271/213/345/256/2649.png +0 -0
- package/core/resources/html/avatar/Find_Me.png +0 -0
- package/core/resources/html/avatar/Geopelia 1 -by cycats.png +0 -0
- package/core/resources/html/avatar/Geopelia 2 -by cycats.png +0 -0
- package/core/resources/html/avatar/Geopelia 3 -by /344/275/225/345/221/265.png +0 -0
- package/core/resources/html/avatar/Geopelia in WEPLAY -by /346/265/267/344/272/247.png +0 -0
- package/core/resources/html/avatar/Gino-AprilFool.png +0 -0
- package/core/resources/html/avatar/Glaciaxion.png +0 -0
- package/core/resources/html/avatar/HumaN.png +0 -0
- package/core/resources/html/avatar/Indelible Scar.png +0 -0
- package/core/resources/html/avatar/Introduction.png +0 -0
- package/core/resources/html/avatar/Khronostasis Katharsis.png +0 -0
- package/core/resources/html/avatar/MARENOL.png +0 -0
- package/core/resources/html/avatar/Marenol extra 1 -by /345/226/265n/350/221/265.png +0 -0
- package/core/resources/html/avatar/Non-Melodic Ragez (MUG Edit).png +0 -0
- package/core/resources/html/avatar/Non-Melodic Ragez extra 1 -by cycats.png +0 -0
- package/core/resources/html/avatar/Oblivion +0 -0
- package/core/resources/html/avatar/OblivionPHIN.png +0 -0
- package/core/resources/html/avatar/Para.png +0 -0
- package/core/resources/html/avatar/Pixel Rebelz1.png +0 -0
- package/core/resources/html/avatar/Pixel Rebelz2.png +0 -0
- package/core/resources/html/avatar/Pixel Rebelz3.png +0 -0
- package/core/resources/html/avatar/RIPPER extra 1 -by cycats.png +0 -0
- package/core/resources/html/avatar/RIPPER extra 2 -by /344/275/225/345/221/265.png +0 -0
- package/core/resources/html/avatar/Sein.png +0 -0
- package/core/resources/html/avatar/ShineAfter-/346/260/264/351/235/222-Special.png +0 -0
- package/core/resources/html/avatar/ShineAfter-/346/260/264/351/235/222-Special2.png +0 -0
- package/core/resources/html/avatar/ShineAfter-/346/260/264/351/235/222-/346/231/256/351/200/232.png +0 -0
- package/core/resources/html/avatar/ShineAfter-/346/260/264/351/235/222-/346/233/262/347/273/230Ver.png +0 -0
- package/core/resources/html/avatar/ShineAfter-/351/270/240-Special.png +0 -0
- package/core/resources/html/avatar/ShineAfter-/351/270/240-/346/231/256/351/200/232.png +0 -0
- package/core/resources/html/avatar/ShineAfter-/351/270/240-/346/233/262/347/273/230Ver.png +0 -0
- package/core/resources/html/avatar/ShineAfter-/351/270/240/345/222/214/346/260/264/351/235/222-Special.png +0 -0
- package/core/resources/html/avatar/Snow Desert.png +0 -0
- package/core/resources/html/avatar/Sparkle New Life.png +0 -0
- package/core/resources/html/avatar/Sultan Rage.png +0 -0
- package/core/resources/html/avatar/Winter /342/206/221cube/342/206/223.png +0 -0
- package/core/resources/html/avatar/Xenolith.png +0 -0
- package/core/resources/html/avatar/[PRAW].png +0 -0
- package/core/resources/html/avatar/dB doll.png +0 -0
- package/core/resources/html/avatar/ripper.png +0 -0
- package/core/resources/html/avatar//343/202/202/343/201/272/343/202/202/343/201/2721.png +0 -0
- package/core/resources/html/avatar//343/202/202/343/201/272/343/202/202/343/201/2722.png +0 -0
- package/core/resources/html/avatar//344/270/207/345/220/250/345/214/277/345/220/215/344/277/241.png +0 -0
- package/core/resources/html/avatar//344/272/221/345/245/263/345/255/251 extra 1 -by /345/276/241/345/235/202/346/236/234/345/255/220.png +0 -0
- package/core/resources/html/avatar//344/272/221/345/245/263/345/255/251.png +0 -0
- package/core/resources/html/avatar//345/205/211.png +0 -0
- package/core/resources/html/avatar//345/274/200/345/277/203/347/227/2051.png +0 -0
- package/core/resources/html/avatar//345/274/200/345/277/203/347/227/2052.png +0 -0
- package/core/resources/html/avatar//346/260/264/351/235/222-/344/270/200/345/221/250/345/271/264/347/233/270/350/201/232.png +0 -0
- package/core/resources/html/avatar//346/267/267/344/271/261-Confusion.png +0 -0
- package/core/resources/html/avatar//347/213/202/345/226/234/350/230/255/350/210/2361.png +0 -0
- package/core/resources/html/avatar//347/213/202/345/226/234/350/230/255/350/210/2362.png +0 -0
- package/core/resources/html/avatar//347/223/267/345/262/201-Special.png +0 -0
- package/core/resources/html/avatar//347/223/267/345/262/2011.png +0 -0
- package/core/resources/html/avatar//347/223/267/345/262/2012.png +0 -0
- package/core/resources/html/avatar//347/223/267/345/262/2013.png +0 -0
- package/core/resources/html/avatar//347/223/267/345/262/2014.png +0 -0
- package/core/resources/html/avatar//347/223/267/345/262/2015.png +0 -0
- package/core/resources/html/avatar//347/223/267/345/262/2016.png +0 -0
- package/core/resources/html/avatar//347/223/267/345/262/2017.png +0 -0
- package/core/resources/html/avatar//347/233/217/350/214/227-Special.png +0 -0
- package/core/resources/html/avatar//347/233/217/350/214/2271.png +0 -0
- package/core/resources/html/avatar//347/233/217/350/214/2272.png +0 -0
- package/core/resources/html/avatar//347/233/217/350/214/2273.png +0 -0
- package/core/resources/html/avatar//350/217/257/347/201/257/347/210/2611.png +0 -0
- package/core/resources/html/avatar//350/217/257/347/201/257/347/210/2612.png +0 -0
- package/core/resources/html/avatar//350/220/244/347/201/253/350/231/253/343/201/256/346/200/2501.png +0 -0
- package/core/resources/html/avatar//350/220/244/347/201/253/350/231/253/343/201/256/346/200/2502.png +0 -0
- package/core/resources/html/avatar//351/235/222/350/212/275-Special.png +0 -0
- package/core/resources/html/avatar//351/235/222/350/212/275.png +0 -0
- package/core/resources/html/avatar//351/243/216/345/261/277.png +0 -0
- package/core/resources/html/avatar//351/270/240-AprilFool.png +0 -0
- package/core/resources/html/avatar//351/270/240-/344/270/200/345/221/250/345/271/264/347/233/270/350/201/232.png +0 -0
- package/core/resources/html/b19/b19.art +490 -0
- package/core/resources/html/b19/b19.css +1261 -0
- package/core/resources/html/b19/b19666.art +350 -0
- package/core/resources/html/b19/b19666.css +1409 -0
- package/core/resources/html/b19/b19666.html +481 -0
- package/core/resources/html/b19/b19title.css +120 -0
- package/core/resources/html/b19/best19.html +853 -0
- package/core/resources/html/b19/dss2-orz.html +428 -0
- package/core/resources/html/b19/dss2.art +298 -0
- package/core/resources/html/b19/dss2.css +776 -0
- package/core/resources/html/b19/res/666.jpeg +0 -0
- package/core/resources/html/chap/chap-orz.html +93 -0
- package/core/resources/html/chap/chap.art +87 -0
- package/core/resources/html/chap/chap.css +365 -0
- package/core/resources/html/chartImg/chartImg.art +169 -0
- package/core/resources/html/chartImg/chartImg.css +439 -0
- package/core/resources/html/chartImg/echarts-wordcloud.min.js +3 -0
- package/core/resources/html/chartImg/echarts.js +85796 -0
- package/core/resources/html/chartImg/img/Drag.png +0 -0
- package/core/resources/html/chartImg/img/DragHL.png +0 -0
- package/core/resources/html/chartImg/img/Flick.png +0 -0
- package/core/resources/html/chartImg/img/FlickHL.png +0 -0
- package/core/resources/html/chartImg/img/Hold.png +0 -0
- package/core/resources/html/chartImg/img/HoldHL.png +0 -0
- package/core/resources/html/chartImg/img/Hold_End.png +0 -0
- package/core/resources/html/chartImg/img/Hold_Head.png +0 -0
- package/core/resources/html/chartImg/img/Hold_HeadHL.png +0 -0
- package/core/resources/html/chartImg/img/Tap.png +0 -0
- package/core/resources/html/chartImg/img/TapHL.png +0 -0
- package/core/resources/html/chartInfo/chartInfo-orz.html +250 -0
- package/core/resources/html/chartInfo/chartInfo.art +222 -0
- package/core/resources/html/chartInfo/chartInfo.css +265 -0
- package/core/resources/html/chartInfo/echarts-wordcloud.min.js +3 -0
- package/core/resources/html/chartInfo/echarts.js +85796 -0
- package/core/resources/html/clg/clg-orz.html +218 -0
- package/core/resources/html/clg/clg.art +88 -0
- package/core/resources/html/clg/clg.css +230 -0
- package/core/resources/html/clg/demo.jpg +0 -0
- package/core/resources/html/common/common.css +319 -0
- package/core/resources/html/common/css/playerInfo.css +136 -0
- package/core/resources/html/common/font/Aldrich-Regular.ttf +0 -0
- package/core/resources/html/common/font/HIMALAYA.TTF +0 -0
- package/core/resources/html/common/font/NotoColorEmoji-Regular.ttf +0 -0
- package/core/resources/html/common/font/NotoSans-Regular.ttf +0 -0
- package/core/resources/html/common/font/NotoSansArabic.ttf +0 -0
- package/core/resources/html/common/font/NotoSansCanadianAboriginal.ttf +0 -0
- package/core/resources/html/common/font/NotoSansJP.ttf +0 -0
- package/core/resources/html/common/font/NotoSansKannada.ttf +0 -0
- package/core/resources/html/common/font/NotoSansMath-Regular.ttf +0 -0
- package/core/resources/html/common/font/NotoSansSymbols2.ttf +0 -0
- package/core/resources/html/common/font/phi.ttf +0 -0
- package/core/resources/html/common/font//345/220/236/345/274/245/346/201/260/344/277/212.ttf +0 -0
- package/core/resources/html/common/layout/default.art +324 -0
- package/core/resources/html/common/layout/elem.art +21 -0
- package/core/resources/html/common/theme/snow/snow.css +17 -0
- package/core/resources/html/common/theme/snow/snow.js +19 -0
- package/core/resources/html/common/theme/star/star.js +201 -0
- package/core/resources/html/common/theme/topText/topText.css +15 -0
- package/core/resources/html/common/theme/topText/topText.js +30 -0
- package/core/resources/html/difficultyHistory/difficultyHistory-orz.html +361 -0
- package/core/resources/html/difficultyHistory/difficultyHistory.art +102 -0
- package/core/resources/html/difficultyHistory/difficultyHistory.css +205 -0
- package/core/resources/html/guess/guess-orz.html +50 -0
- package/core/resources/html/guess/guess.art +51 -0
- package/core/resources/html/guess/guess.css +33 -0
- package/core/resources/html/help/help-orz.html +73 -0
- package/core/resources/html/help/help.art +84 -0
- package/core/resources/html/help/help.css +266 -0
- package/core/resources/html/historyB30/historyB30-orz.html +168 -0
- package/core/resources/html/historyB30/historyB30.art +143 -0
- package/core/resources/html/historyB30/historyB30.css +270 -0
- package/core/resources/html/ill/ill-orz.html +21 -0
- package/core/resources/html/ill/ill.art +23 -0
- package/core/resources/html/ill/ill.css +79 -0
- package/core/resources/html/jrrp/ShineAfter.removebg.png +0 -0
- package/core/resources/html/jrrp/jrrp-orz.html +68 -0
- package/core/resources/html/jrrp/jrrp.art +58 -0
- package/core/resources/html/jrrp/jrrp.css +251 -0
- package/core/resources/html/list/list-orz.html +35 -0
- package/core/resources/html/list/list.art +67 -0
- package/core/resources/html/list/list.css +259 -0
- package/core/resources/html/lvsco/demo.jpg +0 -0
- package/core/resources/html/lvsco/lvsco-orz.html +334 -0
- package/core/resources/html/lvsco/lvsco.art +314 -0
- package/core/resources/html/lvsco/lvsco.css +706 -0
- package/core/resources/html/market/detail.art +44 -0
- package/core/resources/html/market/market.art +86 -0
- package/core/resources/html/market/market.css +64 -0
- package/core/resources/html/newSong/newSong.art +34 -0
- package/core/resources/html/newSong/newSong.css +48 -0
- package/core/resources/html/newSong/newSong.html +23 -0
- package/core/resources/html/newnotice/newnotice.art +47 -0
- package/core/resources/html/newnotice/newnotice.css +83 -0
- package/core/resources/html/otherimg/0.png +0 -0
- package/core/resources/html/otherimg/1.png +0 -0
- package/core/resources/html/otherimg/2.png +0 -0
- package/core/resources/html/otherimg/3.png +0 -0
- package/core/resources/html/otherimg/4.png +0 -0
- package/core/resources/html/otherimg/5.png +0 -0
- package/core/resources/html/otherimg/A.png +0 -0
- package/core/resources/html/otherimg/B.png +0 -0
- package/core/resources/html/otherimg/C.png +0 -0
- package/core/resources/html/otherimg/F.png +0 -0
- package/core/resources/html/otherimg/FC.png +0 -0
- package/core/resources/html/otherimg/NEW.png +0 -0
- package/core/resources/html/otherimg/Phigros_Icon_3.0.0.png +0 -0
- package/core/resources/html/otherimg/S.png +0 -0
- package/core/resources/html/otherimg/Star1.png +0 -0
- package/core/resources/html/otherimg/Star2.png +0 -0
- package/core/resources/html/otherimg/V.png +0 -0
- package/core/resources/html/otherimg/callback.png +0 -0
- package/core/resources/html/otherimg/chapHelp.png +0 -0
- package/core/resources/html/otherimg/dan_code.png +0 -0
- package/core/resources/html/otherimg/data.png +0 -0
- package/core/resources/html/otherimg/helpDoc.png +0 -0
- package/core/resources/html/otherimg/nickSuggest.png +0 -0
- package/core/resources/html/otherimg/phi.png +0 -0
- package/core/resources/html/otherimg/phigros.png +0 -0
- package/core/resources/html/otherimg/snow1.png +0 -0
- package/core/resources/html/otherimg/snow2.png +0 -0
- package/core/resources/html/otherimg/snow3.png +0 -0
- package/core/resources/html/otherimg/snow4.png +0 -0
- package/core/resources/html/otherimg/title.png +0 -0
- package/core/resources/html/rand/rand-orz.html +62 -0
- package/core/resources/html/rand/rand.art +59 -0
- package/core/resources/html/rand/rand.css +257 -0
- package/core/resources/html/rankingList/rankingList-orz.html +456 -0
- package/core/resources/html/rankingList/rankingList.art +171 -0
- package/core/resources/html/rankingList/rankingList.css +570 -0
- package/core/resources/html/rankingList-old/rankingList-orz.html +300 -0
- package/core/resources/html/rankingList-old/rankingList.art +89 -0
- package/core/resources/html/rankingList-old/rankingList.css +265 -0
- package/core/resources/html/score/score-orz.html +625 -0
- package/core/resources/html/score/score.art +249 -0
- package/core/resources/html/score/score.css +435 -0
- package/core/resources/html/score/scoreOld-orz.html +128 -0
- package/core/resources/html/score/scoreOld.art +230 -0
- package/core/resources/html/score/scoreOld.css +475 -0
- package/core/resources/html/score/scoreRankList-orz.html +613 -0
- package/core/resources/html/score/scoreRankList.art +231 -0
- package/core/resources/html/score/scoreRankList.css +197 -0
- package/core/resources/html/setting/setting-orz.html +123 -0
- package/core/resources/html/setting/setting.art +72 -0
- package/core/resources/html/setting/setting.css +170 -0
- package/core/resources/html/setting/userSetting-orz.html +132 -0
- package/core/resources/html/setting/userSetting.art +48 -0
- package/core/resources/html/setting/userSetting.css +160 -0
- package/core/resources/html/sign/sign-orz.html +262 -0
- package/core/resources/html/sign/sign.art +163 -0
- package/core/resources/html/sign/sign.css +706 -0
- package/core/resources/html/suggest/suggest.art +271 -0
- package/core/resources/html/suggest/suggest.css +300 -0
- package/core/resources/html/table/table-orz.html +228 -0
- package/core/resources/html/table/table.art +163 -0
- package/core/resources/html/table/table.css +401 -0
- package/core/resources/html/tasks/tasks-orz.html +83 -0
- package/core/resources/html/tasks/tasks.art +118 -0
- package/core/resources/html/tasks/tasks.css +334 -0
- package/core/resources/html/update/update-orz.html +735 -0
- package/core/resources/html/update/update.art +259 -0
- package/core/resources/html/update/update.css +676 -0
- package/core/resources/html/userinfo/userinfo-old-orz.html +408 -0
- package/core/resources/html/userinfo/userinfo-old.art +233 -0
- package/core/resources/html/userinfo/userinfo-old.css +466 -0
- package/core/resources/html/userinfo/userinfo-orz.html +543 -0
- package/core/resources/html/userinfo/userinfo.art +288 -0
- package/core/resources/html/userinfo/userinfo.css +757 -0
- package/core/resources/info/DLC/arc.json +412 -0
- package/core/resources/info/DLC/chunithm.json +1172 -0
- package/core/resources/info/DLC/dynamix.json +455 -0
- package/core/resources/info/DLC/fanshi.json +132 -0
- package/core/resources/info/DLC/lanota.json +412 -0
- package/core/resources/info/DLC/maimai.json +1110 -0
- package/core/resources/info/DLC/orz.json +158 -0
- package/core/resources/info/DLC/rizline.json +40 -0
- package/core/resources/info/DLC/rotaeno.json +159 -0
- package/core/resources/info/DLC/ryceam.json +53 -0
- package/core/resources/info/avatar.txt +109 -0
- package/core/resources/info/chaplist.yaml +102 -0
- package/core/resources/info/help/api.json +83 -0
- package/core/resources/info/help.json +436 -0
- package/core/resources/info/info.csv +315 -0
- package/core/resources/info/infolist.json +1758 -0
- package/core/resources/info/jrrp.json +92 -0
- package/core/resources/info/nicklist.yaml +2373 -0
- package/core/resources/info/notesInfo.json +1 -0
- package/core/resources/info/notice.json +11 -0
- package/core/resources/info/oldInfo/100/change.csv +218 -0
- package/core/resources/info/oldInfo/100/info.json +7 -0
- package/core/resources/info/oldInfo/101/change.csv +218 -0
- package/core/resources/info/oldInfo/101/info.json +7 -0
- package/core/resources/info/oldInfo/102/change.csv +223 -0
- package/core/resources/info/oldInfo/102/info.json +7 -0
- package/core/resources/info/oldInfo/103/change.csv +224 -0
- package/core/resources/info/oldInfo/103/info.json +7 -0
- package/core/resources/info/oldInfo/104/change.csv +225 -0
- package/core/resources/info/oldInfo/104/info.json +7 -0
- package/core/resources/info/oldInfo/105/change.csv +228 -0
- package/core/resources/info/oldInfo/105/info.json +7 -0
- package/core/resources/info/oldInfo/106/change.csv +229 -0
- package/core/resources/info/oldInfo/106/info.json +7 -0
- package/core/resources/info/oldInfo/108/change.csv +233 -0
- package/core/resources/info/oldInfo/108/info.json +7 -0
- package/core/resources/info/oldInfo/109/change.csv +235 -0
- package/core/resources/info/oldInfo/109/info.json +7 -0
- package/core/resources/info/oldInfo/110/change.csv +235 -0
- package/core/resources/info/oldInfo/110/info.json +7 -0
- package/core/resources/info/oldInfo/111/change.csv +242 -0
- package/core/resources/info/oldInfo/111/info.json +7 -0
- package/core/resources/info/oldInfo/112/change.csv +242 -0
- package/core/resources/info/oldInfo/112/info.json +7 -0
- package/core/resources/info/oldInfo/113/change.csv +244 -0
- package/core/resources/info/oldInfo/113/info.json +7 -0
- package/core/resources/info/oldInfo/115/change.csv +247 -0
- package/core/resources/info/oldInfo/115/info.json +7 -0
- package/core/resources/info/oldInfo/116/change.csv +249 -0
- package/core/resources/info/oldInfo/116/info.json +7 -0
- package/core/resources/info/oldInfo/118/change.csv +252 -0
- package/core/resources/info/oldInfo/118/info.json +7 -0
- package/core/resources/info/oldInfo/119/change.csv +255 -0
- package/core/resources/info/oldInfo/119/info.json +7 -0
- package/core/resources/info/oldInfo/120/change.csv +255 -0
- package/core/resources/info/oldInfo/120/info.json +7 -0
- package/core/resources/info/oldInfo/121/change.csv +257 -0
- package/core/resources/info/oldInfo/121/info.json +7 -0
- package/core/resources/info/oldInfo/122/change.csv +260 -0
- package/core/resources/info/oldInfo/122/info.json +7 -0
- package/core/resources/info/oldInfo/123/change.csv +260 -0
- package/core/resources/info/oldInfo/123/info.json +7 -0
- package/core/resources/info/oldInfo/124/change.csv +262 -0
- package/core/resources/info/oldInfo/124/info.json +7 -0
- package/core/resources/info/oldInfo/125/change.csv +266 -0
- package/core/resources/info/oldInfo/125/info.json +7 -0
- package/core/resources/info/oldInfo/126/change.csv +269 -0
- package/core/resources/info/oldInfo/126/info.json +7 -0
- package/core/resources/info/oldInfo/127/change.csv +270 -0
- package/core/resources/info/oldInfo/127/info.json +7 -0
- package/core/resources/info/oldInfo/128/change.csv +273 -0
- package/core/resources/info/oldInfo/128/info.json +7 -0
- package/core/resources/info/oldInfo/129/change.csv +274 -0
- package/core/resources/info/oldInfo/129/info.json +7 -0
- package/core/resources/info/oldInfo/130/change.csv +275 -0
- package/core/resources/info/oldInfo/130/info.json +7 -0
- package/core/resources/info/oldInfo/131/change.csv +278 -0
- package/core/resources/info/oldInfo/131/info.json +7 -0
- package/core/resources/info/oldInfo/132/change.csv +280 -0
- package/core/resources/info/oldInfo/132/info.json +7 -0
- package/core/resources/info/oldInfo/133/change.csv +284 -0
- package/core/resources/info/oldInfo/133/info.json +7 -0
- package/core/resources/info/oldInfo/134/change.csv +286 -0
- package/core/resources/info/oldInfo/134/info.json +7 -0
- package/core/resources/info/oldInfo/135/change.csv +290 -0
- package/core/resources/info/oldInfo/135/info.json +7 -0
- package/core/resources/info/oldInfo/136/change.csv +290 -0
- package/core/resources/info/oldInfo/136/info.json +7 -0
- package/core/resources/info/oldInfo/137/change.csv +293 -0
- package/core/resources/info/oldInfo/137/info.json +7 -0
- package/core/resources/info/oldInfo/138/change.csv +295 -0
- package/core/resources/info/oldInfo/138/info.json +7 -0
- package/core/resources/info/oldInfo/139/change.csv +295 -0
- package/core/resources/info/oldInfo/139/info.json +7 -0
- package/core/resources/info/oldInfo/140/change.csv +298 -0
- package/core/resources/info/oldInfo/140/info.json +7 -0
- package/core/resources/info/oldInfo/141/change.csv +300 -0
- package/core/resources/info/oldInfo/141/info.json +7 -0
- package/core/resources/info/oldInfo/142/change.csv +302 -0
- package/core/resources/info/oldInfo/142/info.json +7 -0
- package/core/resources/info/oldInfo/143/change.csv +303 -0
- package/core/resources/info/oldInfo/143/info.json +7 -0
- package/core/resources/info/oldInfo/144/change.csv +303 -0
- package/core/resources/info/oldInfo/144/info.json +7 -0
- package/core/resources/info/oldInfo/145/change.csv +305 -0
- package/core/resources/info/oldInfo/145/info.json +7 -0
- package/core/resources/info/oldInfo/146/change.csv +305 -0
- package/core/resources/info/oldInfo/146/info.json +7 -0
- package/core/resources/info/oldInfo/148/change.csv +307 -0
- package/core/resources/info/oldInfo/148/info.json +7 -0
- package/core/resources/info/oldInfo/149/change.csv +307 -0
- package/core/resources/info/oldInfo/149/info.json +7 -0
- package/core/resources/info/oldInfo/151/change.csv +309 -0
- package/core/resources/info/oldInfo/151/info.json +7 -0
- package/core/resources/info/oldInfo/152/change.csv +312 -0
- package/core/resources/info/oldInfo/152/info.json +7 -0
- package/core/resources/info/oldInfo/153/change.csv +313 -0
- package/core/resources/info/oldInfo/153/info.json +7 -0
- package/core/resources/info/oldInfo/154/change.csv +315 -0
- package/core/resources/info/oldInfo/154/info.json +7 -0
- package/core/resources/info/oldInfo/92/change.csv +204 -0
- package/core/resources/info/oldInfo/92/info.json +7 -0
- package/core/resources/info/oldInfo/93/change.csv +206 -0
- package/core/resources/info/oldInfo/93/info.json +7 -0
- package/core/resources/info/oldInfo/94/change.csv +209 -0
- package/core/resources/info/oldInfo/94/info.json +7 -0
- package/core/resources/info/oldInfo/95/change.csv +211 -0
- package/core/resources/info/oldInfo/95/info.json +7 -0
- package/core/resources/info/oldInfo/96/change.csv +216 -0
- package/core/resources/info/oldInfo/96/info.json +7 -0
- package/core/resources/info/oldInfo/98/change.csv +216 -0
- package/core/resources/info/oldInfo/98/info.json +7 -0
- package/core/resources/info/oldInfo/99/change.csv +217 -0
- package/core/resources/info/oldInfo/99/info.json +7 -0
- package/core/resources/info/oldNotesInfo.json +1 -0
- package/core/resources/info/sentences.json +1 -0
- package/core/resources/info/spinfo.json +362 -0
- package/core/resources/info/tips.txt +278 -0
- package/core/resources/otherill//351/233/252/351/231/215SP.png +0 -0
- package/core/resources/song-select.html +535 -0
- package/core/resources/themes/README.md +24 -0
- package/core/resources/themes/milthm/A.png +0 -0
- package/core/resources/themes/milthm/B.png +0 -0
- package/core/resources/themes/milthm/C.png +0 -0
- package/core/resources/themes/milthm/F.png +0 -0
- package/core/resources/themes/milthm/FC.png +0 -0
- package/core/resources/themes/milthm/S.png +0 -0
- package/core/resources/themes/milthm/V.png +0 -0
- package/core/resources/themes/milthm/arcgrosB19.css +36 -0
- package/core/resources/themes/milthm/b19.art +464 -0
- package/core/resources/themes/milthm/b19.css +1314 -0
- package/core/resources/themes/milthm/bg.png +0 -0
- package/core/resources/themes/milthm/clg.css +37 -0
- package/core/resources/themes/milthm/difficultyHistory.css +42 -0
- package/core/resources/themes/milthm/font.ttf +0 -0
- package/core/resources/themes/milthm/help.css +36 -0
- package/core/resources/themes/milthm/historyB30.css +48 -0
- package/core/resources/themes/milthm/info.yaml +45 -0
- package/core/resources/themes/milthm/list.css +39 -0
- package/core/resources/themes/milthm/phi.png +0 -0
- package/core/resources/themes/milthm/setting.css +37 -0
- package/core/resources/themes/milthm/sign.css +81 -0
- package/core/resources/themes/milthm/suggest.css +40 -0
- package/core/resources/themes/milthm/table.css +54 -0
- package/core/resources/themes/milthm/update.css +68 -0
- package/core/tests/aliasProposalService.test.js +82 -0
- package/core/tests/apiAccountDeletion.test.js +125 -0
- package/core/tests/apiPermission.test.js +44 -0
- package/core/tests/apiVersion.test.js +55 -0
- package/core/tests/b30Analysis.test.js +38 -0
- package/core/tests/backgroundIllustration.test.js +21 -0
- package/core/tests/botApiAuthRecovery.test.js +148 -0
- package/core/tests/botSyncService.test.js +42 -0
- package/core/tests/fileWatcherRegistry.test.js +44 -0
- package/core/tests/gameRecordPayload.test.js +34 -0
- package/core/tests/guessLetter.test.js +79 -0
- package/core/tests/makeRequestHandling.test.js +118 -0
- package/core/tests/marketOverflow.test.js +31 -0
- package/core/tests/platformTemplateCache.test.js +92 -0
- package/core/tests/pluginDataThemePreference.test.js +36 -0
- package/core/tests/processCleanup.test.js +58 -0
- package/core/tests/puppeteerShutdown.test.js +17 -0
- package/core/tests/renderPressureHistory.test.js +59 -0
- package/core/tests/saveStats.test.js +26 -0
- package/core/tests/themeInstallGuard.test.js +289 -0
- package/core/tests/themeManager.test.js +625 -0
- package/core/tests/themeManagerInit.test.js +11 -0
- package/core/tests/themeMarket.test.js +855 -0
- package/core/tests/themePageRouting.test.js +431 -0
- package/core/tests/themePolicy.test.js +28 -0
- package/core/tests/themeStorageRecovery.test.js +192 -0
- package/core/tests/userCredentialModuleBoundaries.test.js +41 -0
- package/core/tests/userCredentials.test.js +285 -0
- package/core/tsconfig.json +32 -0
- package/core/types/vendor.d.ts +14 -0
- package/lib/index.cjs +358 -0
- package/lib/index.d.cts +182 -0
- package/lib/index.d.ts +182 -0
- package/lib/index.js +320 -0
- package/package.json +74 -0
- package/readme.md +3 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import fCompute from './fCompute.js';
|
|
2
|
+
import getInfo from './getInfo.js';
|
|
3
|
+
import { LevelNum } from './constNum.js';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @typedef {object} LevelRecordInfoWithoutInfo 曲目成绩信息
|
|
8
|
+
* @property {boolean} fc 是否满分
|
|
9
|
+
* @property {number} score 分数
|
|
10
|
+
* @property {number} acc 准确率
|
|
11
|
+
* @property {idString} id 曲目id
|
|
12
|
+
* @property {allLevelKind} rank 难度
|
|
13
|
+
* @property {ratingKind} Rating 评级
|
|
14
|
+
* @property {number} rks 等效rks
|
|
15
|
+
* @property {number} difficulty 难度
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @typedef {LevelRecordInfoWithoutInfo & {
|
|
20
|
+
* song: songString,
|
|
21
|
+
* illustration: string
|
|
22
|
+
* }} LevelRecordInfoWithInfo 曲目成绩信息
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**@type {LevelRecordInfoWithoutInfo | LevelRecordInfoWithInfo} */
|
|
26
|
+
export default class LevelRecordInfo {
|
|
27
|
+
/**
|
|
28
|
+
* @param {{fc:boolean | number, score:number, acc: number}} data 原始数据
|
|
29
|
+
* @param {idString} id 曲目id
|
|
30
|
+
* @param {number} rank 难度
|
|
31
|
+
* @param {string} [ver] 版本号
|
|
32
|
+
*/
|
|
33
|
+
constructor(data, id, rank, ver) {
|
|
34
|
+
this.fc = Boolean(data.fc);
|
|
35
|
+
this.score = data.score;
|
|
36
|
+
this.acc = data.acc;
|
|
37
|
+
/** @type {idString} */
|
|
38
|
+
this.id = id;
|
|
39
|
+
|
|
40
|
+
let info = getInfo.info(id, true)
|
|
41
|
+
|
|
42
|
+
/** @type {allLevelKind} */
|
|
43
|
+
this.rank = getInfo.allLevel[rank] //AT IN HD EZ LEGACY
|
|
44
|
+
|
|
45
|
+
/** @type {ratingKind} */
|
|
46
|
+
this.Rating = Rating(this.score, this.fc) //V S A
|
|
47
|
+
|
|
48
|
+
if (!info) {
|
|
49
|
+
this.id = id;
|
|
50
|
+
this.difficulty = 0;
|
|
51
|
+
this.rks = 0;
|
|
52
|
+
return
|
|
53
|
+
}
|
|
54
|
+
/** @type {songString} */
|
|
55
|
+
this.song = info.song //曲名
|
|
56
|
+
this.illustration = getInfo.getill(id) //曲绘链接
|
|
57
|
+
|
|
58
|
+
if (!ver || this.rank == 'LEGACY') {
|
|
59
|
+
//未指定版本或难度为LGC,使用当前版本信息
|
|
60
|
+
const difficulty = info?.chart?.[this.rank]?.difficulty
|
|
61
|
+
if (difficulty) {
|
|
62
|
+
this.difficulty = difficulty //难度
|
|
63
|
+
this.rks = fCompute.rks(this.acc, this.difficulty) //等效rks
|
|
64
|
+
} else {
|
|
65
|
+
this.difficulty = 0
|
|
66
|
+
this.rks = 0
|
|
67
|
+
}
|
|
68
|
+
} else {
|
|
69
|
+
//使用指定版本信息
|
|
70
|
+
const difficulty = getInfo.historyDifficultyBySongId[id]?.[ver]?.[this.rank]
|
|
71
|
+
if (difficulty) {
|
|
72
|
+
this.difficulty = difficulty //难度
|
|
73
|
+
this.rks = fCompute.rks(this.acc, this.difficulty) //等效rks
|
|
74
|
+
} else {
|
|
75
|
+
this.difficulty = 0
|
|
76
|
+
this.rks = 0
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @param {number} score
|
|
87
|
+
* @param {boolean| number} fc
|
|
88
|
+
* @returns {ratingKind} 评级
|
|
89
|
+
*/
|
|
90
|
+
function Rating(score, fc) {
|
|
91
|
+
if (score >= 1000000)
|
|
92
|
+
return 'phi'
|
|
93
|
+
else if (fc)
|
|
94
|
+
return 'FC'
|
|
95
|
+
else if (!score)
|
|
96
|
+
return 'NEW'
|
|
97
|
+
else if (score < 700000)
|
|
98
|
+
return 'F'
|
|
99
|
+
else if (score < 820000)
|
|
100
|
+
return 'C'
|
|
101
|
+
else if (score < 880000)
|
|
102
|
+
return 'B'
|
|
103
|
+
else if (score < 920000)
|
|
104
|
+
return 'A'
|
|
105
|
+
else if (score < 960000)
|
|
106
|
+
return 'S'
|
|
107
|
+
else
|
|
108
|
+
return 'V'
|
|
109
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import getInfo from "./getInfo.js"
|
|
2
|
+
import Chart from "./Chart.js"
|
|
3
|
+
|
|
4
|
+
export default class SongsInfo {
|
|
5
|
+
/**
|
|
6
|
+
* @param {any} data 原始数据
|
|
7
|
+
*/
|
|
8
|
+
constructor(data) {
|
|
9
|
+
if (!data) {
|
|
10
|
+
//@ts-ignore
|
|
11
|
+
return {}
|
|
12
|
+
}
|
|
13
|
+
/** @type {idString} id */
|
|
14
|
+
this.id = data.id
|
|
15
|
+
/** @type {songString} 曲目 */
|
|
16
|
+
this.song = data.song
|
|
17
|
+
/** @type {string} 曲绘 */
|
|
18
|
+
this.illustration = getInfo.getill(data.id)
|
|
19
|
+
/** @type {boolean} 是否不参与猜字母 */
|
|
20
|
+
this.can_t_be_letter = data.can_t_be_letter || false
|
|
21
|
+
/** @type {boolean} 是否不参与猜曲绘 */
|
|
22
|
+
this.can_t_be_guessill = data.can_t_be_guessill || false
|
|
23
|
+
/** @type {string} 章节 */
|
|
24
|
+
this.chapter = data.chapter
|
|
25
|
+
/** @type {string} bpm */
|
|
26
|
+
this.bpm = data.bpm
|
|
27
|
+
/** @type {string} 作曲 */
|
|
28
|
+
this.composer = data.composer
|
|
29
|
+
/** @type {string} 时长 */
|
|
30
|
+
this.length = data.length
|
|
31
|
+
/** @type {string} 画师 */
|
|
32
|
+
this.illustrator = data.illustrator
|
|
33
|
+
/** @type {string} 特殊信息 */
|
|
34
|
+
this.spinfo = data.spinfo
|
|
35
|
+
/** @type {boolean} 独占曲标记 */
|
|
36
|
+
this.isOriginal = data.isOriginal
|
|
37
|
+
/**
|
|
38
|
+
* 谱面详情
|
|
39
|
+
* @type {Partial<Record<allLevelKind, Chart>>}
|
|
40
|
+
*/
|
|
41
|
+
this.chart = data.chart
|
|
42
|
+
/** @type {boolean} 是否是特殊谱面 */
|
|
43
|
+
this.sp_vis = data.sp_vis
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {object} B30AnalysisRecord
|
|
3
|
+
* @property {idString} id
|
|
4
|
+
* @property {allLevelKind} rank
|
|
5
|
+
* @property {number} rks
|
|
6
|
+
* @property {'phi'|'best'} kind
|
|
7
|
+
* @property {string} slot
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* 取得实际参与 RKS 计算的 P3 + B27 槽位。
|
|
12
|
+
* @param {{phi?: any[], b19_list?: any[]}} b30
|
|
13
|
+
* @returns {B30AnalysisRecord[]}
|
|
14
|
+
*/
|
|
15
|
+
export function getB30AnalysisRecords(b30) {
|
|
16
|
+
const phi = (b30.phi || []).slice(0, 3).map((record, index) => record && ({
|
|
17
|
+
id: record.id,
|
|
18
|
+
rank: record.rank,
|
|
19
|
+
rks: Number(record.rks),
|
|
20
|
+
kind: 'phi',
|
|
21
|
+
slot: `P${index + 1}`,
|
|
22
|
+
})).filter(Boolean)
|
|
23
|
+
const best = (b30.b19_list || []).slice(0, 27).map((record, index) => record && ({
|
|
24
|
+
id: record.id,
|
|
25
|
+
rank: record.rank,
|
|
26
|
+
rks: Number(record.rks),
|
|
27
|
+
kind: 'best',
|
|
28
|
+
slot: `B${index + 1}`,
|
|
29
|
+
})).filter(Boolean)
|
|
30
|
+
return /** @type {B30AnalysisRecord[]} */ ([...phi, ...best].filter(record =>
|
|
31
|
+
record.id && ['EZ', 'HD', 'IN', 'AT', 'LEGACY'].includes(record.rank) && Number.isFinite(record.rks)
|
|
32
|
+
))
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @param {number} value
|
|
37
|
+
*/
|
|
38
|
+
function niceAxisStep(value) {
|
|
39
|
+
const candidates = [0.02, 0.05, 0.1, 0.2, 0.25, 0.5, 1]
|
|
40
|
+
return candidates.find(candidate => candidate >= value) || Math.ceil(value)
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* 按 P1-P3、B1-B27 槽位生成等效单曲 RKS 直方图。
|
|
45
|
+
* @param {B30AnalysisRecord[]} records
|
|
46
|
+
* @param {number} [targetTickCount]
|
|
47
|
+
*/
|
|
48
|
+
export function buildRksHistogram(records, targetTickCount = 4) {
|
|
49
|
+
const valid = records.filter(record => Number.isFinite(record.rks))
|
|
50
|
+
if (!valid.length) return { slots: [], ticks: [], average: 0, averagePosition: 0, count: 0 }
|
|
51
|
+
|
|
52
|
+
const values = valid.map(record => record.rks)
|
|
53
|
+
const minimum = Math.min(...values)
|
|
54
|
+
const maximum = Math.max(...values)
|
|
55
|
+
const step = niceAxisStep(Math.max(maximum - minimum, 0.2) / targetTickCount)
|
|
56
|
+
const domainMin = Math.floor((minimum - step * 0.1) / step) * step
|
|
57
|
+
let domainMax = Math.ceil((maximum + step * 0.1) / step) * step
|
|
58
|
+
if (domainMax <= domainMin) domainMax = domainMin + step
|
|
59
|
+
const domainRange = domainMax - domainMin
|
|
60
|
+
|
|
61
|
+
const ticks = []
|
|
62
|
+
const tickCount = Math.round(domainRange / step)
|
|
63
|
+
for (let index = 0; index <= tickCount; index++) {
|
|
64
|
+
const value = domainMin + index * step
|
|
65
|
+
ticks.push({
|
|
66
|
+
value,
|
|
67
|
+
label: value.toFixed(2),
|
|
68
|
+
position: index / tickCount * 100,
|
|
69
|
+
})
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const slotCounters = { phi: 0, best: 0 }
|
|
73
|
+
const slots = valid.map(record => {
|
|
74
|
+
slotCounters[record.kind] += 1
|
|
75
|
+
return {
|
|
76
|
+
label: record.slot || `${record.kind === 'phi' ? 'P' : 'B'}${slotCounters[record.kind]}`,
|
|
77
|
+
rks: record.rks,
|
|
78
|
+
kind: record.kind,
|
|
79
|
+
height: Math.min(100, Math.max(0, (record.rks - domainMin) / domainRange * 100)),
|
|
80
|
+
}
|
|
81
|
+
})
|
|
82
|
+
|
|
83
|
+
const average = values.reduce((sum, value) => sum + value, 0) / values.length
|
|
84
|
+
return {
|
|
85
|
+
slots,
|
|
86
|
+
ticks,
|
|
87
|
+
average,
|
|
88
|
+
averagePosition: Math.min(100, Math.max(0, (average - domainMin) / domainRange * 100)),
|
|
89
|
+
count: valid.length,
|
|
90
|
+
domainMin,
|
|
91
|
+
domainMax,
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import JudgeLine from "./JudgeLine.js"
|
|
2
|
+
|
|
3
|
+
export default class Chart {
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param {any} data
|
|
7
|
+
*/
|
|
8
|
+
constructor(data) {
|
|
9
|
+
this.formatVersion = data.formatVersion
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 谱面偏移(单位:秒)
|
|
13
|
+
* @type {number}
|
|
14
|
+
*/
|
|
15
|
+
this.offset = data.offset
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* 判定线列表
|
|
19
|
+
* @type {JudgeLine[]}
|
|
20
|
+
*/
|
|
21
|
+
this.judgeLineList = data.judgeLineList.map(/** @param {any} e */(e) => new JudgeLine(e));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import Note from "./base/Note.js";
|
|
2
|
+
import SpeedEvent from "./base/SpeedEvent.js";
|
|
3
|
+
import { judgeLineDisappearEvent, judgeLineMoveEvent, judgeLineRotateEvent } from "./base/JudgeLineEvent.js";
|
|
4
|
+
|
|
5
|
+
export default class JudgeLine {
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* @param {any} data
|
|
9
|
+
*/
|
|
10
|
+
constructor(data) {
|
|
11
|
+
/** @type {number} BPM */
|
|
12
|
+
this.bpm = data.bpm;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* 判定线上方的音符
|
|
16
|
+
* @type {Note[]}
|
|
17
|
+
*/
|
|
18
|
+
this.notesAbove = data.notesAbove.map(/** @param {any} e */(e) => new Note(e));
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* 判定线下方的音符
|
|
22
|
+
* @type {Note[]}
|
|
23
|
+
*/
|
|
24
|
+
this.notesBelow = data.notesBelow.map(/** @param {any} e */(e) => new Note(e));
|
|
25
|
+
|
|
26
|
+
/** @type {SpeedEvent[]} 速度事件 */
|
|
27
|
+
this.speedEvents = data.speedEvents.map(/** @param {any} e */(e) => new SpeedEvent(e));
|
|
28
|
+
|
|
29
|
+
/** @type {judgeLineMoveEvent[]} 移动事件 */
|
|
30
|
+
this.judgeLineMoveEvents = data.judgeLineMoveEvents.map(/** @param {any} e */(e) => new judgeLineMoveEvent(e));
|
|
31
|
+
|
|
32
|
+
/** @type {judgeLineRotateEvent[]} 角度事件 */
|
|
33
|
+
this.judgeLineRotateEvents = data.judgeLineRotateEvents.map(/** @param {any} e */(e) => new judgeLineRotateEvent(e));
|
|
34
|
+
|
|
35
|
+
/** @type {judgeLineDisappearEvent[]} 透明度事件 */
|
|
36
|
+
this.judgeLineDisappearEvents = data.judgeLineDisappearEvents.map(/** @param {any} e */(e) => new judgeLineDisappearEvent(e));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
export class JudgeLineEvent {
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @param {any} data
|
|
5
|
+
*/
|
|
6
|
+
constructor(data) {
|
|
7
|
+
/**
|
|
8
|
+
* 事件开始时刻
|
|
9
|
+
* @type {chartTick}
|
|
10
|
+
*/
|
|
11
|
+
this.startTime = data.startTime;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* 事件结束时刻
|
|
15
|
+
* @type {chartTick}
|
|
16
|
+
*/
|
|
17
|
+
this.endTime = data.endTime;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export class judgeLineMoveEvent extends JudgeLineEvent {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @param {any} data
|
|
25
|
+
*/
|
|
26
|
+
constructor(data) {
|
|
27
|
+
super(data);
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* 事件开始时刻的水平位置 0-1W
|
|
31
|
+
* @type {number}
|
|
32
|
+
*/
|
|
33
|
+
this.start = data.start;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* 事件结束时刻的水平位置 0-1W
|
|
37
|
+
* @type {number}
|
|
38
|
+
*/
|
|
39
|
+
this.end = data.end;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* 事件开始时刻的垂直位置 0-1H
|
|
43
|
+
* @type {number}
|
|
44
|
+
*/
|
|
45
|
+
this.start2 = data.start2;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* 事件结束时刻的垂直位置 0-1H
|
|
49
|
+
* @type {number}
|
|
50
|
+
*/
|
|
51
|
+
this.end2 = data.end2;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export class judgeLineRotateEvent extends JudgeLineEvent {
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @param {any} data
|
|
59
|
+
*/
|
|
60
|
+
constructor(data) {
|
|
61
|
+
super(data);
|
|
62
|
+
|
|
63
|
+
/** @typedef {number} Rotate 值表示逆时针旋转的角度(单位:度) */
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* 事件开始时刻的旋转角度
|
|
67
|
+
* @type {Rotate}
|
|
68
|
+
*/
|
|
69
|
+
this.start = data.start;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* 事件结束时刻的旋转角度
|
|
73
|
+
* @type {Rotate}
|
|
74
|
+
*/
|
|
75
|
+
this.end = data.end;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export class judgeLineDisappearEvent extends JudgeLineEvent {
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @param {any} data
|
|
83
|
+
*/
|
|
84
|
+
constructor(data) {
|
|
85
|
+
super(data);
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* 事件开始时刻的不透明度 0-1
|
|
89
|
+
* @type {number}
|
|
90
|
+
*/
|
|
91
|
+
this.start = data.start;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* 事件结束时刻的不透明度 0-1
|
|
95
|
+
* @type {number}
|
|
96
|
+
*/
|
|
97
|
+
this.end = data.end;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export default class Note {
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @param {any} data
|
|
5
|
+
*/
|
|
6
|
+
constructor(data) {
|
|
7
|
+
/** 1: tap,
|
|
8
|
+
* 2: drag,
|
|
9
|
+
* 3: hold,
|
|
10
|
+
* 4: flick
|
|
11
|
+
* @type {1|2|3|4} */
|
|
12
|
+
this.type = data.type;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* 1 / 32 拍
|
|
16
|
+
* @type {chartTick}
|
|
17
|
+
*/
|
|
18
|
+
this.time = data.time;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* X坐标
|
|
22
|
+
* @type {chartX}
|
|
23
|
+
*/
|
|
24
|
+
this.positionX = data.positionX;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* 长条时间 1 / 32 拍
|
|
28
|
+
* @type {chartTick}
|
|
29
|
+
*/
|
|
30
|
+
this.holdTime = data.holdTime;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 流速倍率
|
|
34
|
+
* @type {number}
|
|
35
|
+
*/
|
|
36
|
+
this.speed = data.speed;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* 音符距离判定线中心的初始垂直位置
|
|
40
|
+
* @type {number}
|
|
41
|
+
*/
|
|
42
|
+
this.floorPosition = data.floorPosition;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export default class SpeedEvent {
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @param {any} data
|
|
5
|
+
*/
|
|
6
|
+
constructor(data) {
|
|
7
|
+
/**
|
|
8
|
+
* 事件开始时刻
|
|
9
|
+
* @type {chartTick}
|
|
10
|
+
*/
|
|
11
|
+
this.startTime = data.startTime
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* 事件结束时刻
|
|
15
|
+
* @type {chartTick}
|
|
16
|
+
*/
|
|
17
|
+
this.endTime = data.endTime
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* 事件的速度
|
|
21
|
+
* @type {number}
|
|
22
|
+
*/
|
|
23
|
+
this.value = data.value
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* 难度映射
|
|
4
|
+
* @type {allLevelKind[]}
|
|
5
|
+
*/
|
|
6
|
+
export const allLevel = ['EZ', 'HD', 'IN', 'AT', 'LEGACY']
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* 难度映射
|
|
10
|
+
* @type {levelKind[]}
|
|
11
|
+
*/
|
|
12
|
+
export const Level = ['EZ', 'HD', 'IN', 'AT']
|
|
13
|
+
|
|
14
|
+
export const LevelNum = {
|
|
15
|
+
EZ: 0,
|
|
16
|
+
HD: 1,
|
|
17
|
+
IN: 2,
|
|
18
|
+
AT: 3,
|
|
19
|
+
LEGACY: 4,
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**redis路径前缀 */
|
|
23
|
+
export const redisPath = "phiPlugin"
|
|
24
|
+
|
|
25
|
+
/**最大难度 */
|
|
26
|
+
export const MAX_DIFFICULTY = 17.6
|
|
27
|
+
|
|
28
|
+
export const APII18NCN = {
|
|
29
|
+
userNotFound: `未找到对应 用户`
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export const APIBASEURL = "https://phib19.top:8080"
|
|
33
|
+
// export const APIBASEURL = "http://localhost:8081"
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* 用户个性化设置项标题与解释
|
|
37
|
+
*/
|
|
38
|
+
export const USER_SETTING_META = {
|
|
39
|
+
theme: {
|
|
40
|
+
title: '主题风格',
|
|
41
|
+
description: '使用/myset theme <序号>修改,控制图片页面的整体视觉风格,仅影响你的个人渲染结果。'
|
|
42
|
+
},
|
|
43
|
+
b30AvgKind: {
|
|
44
|
+
title: 'B30统计数据展示',
|
|
45
|
+
description: '使用/myset avgkind <序号>修改,控制 B30 均值条展示的数据,可按全部平均数、仅 B30平均数 或 百分比绝对位置。'
|
|
46
|
+
},
|
|
47
|
+
b30AvgColor: {
|
|
48
|
+
title: 'B30均值条配色',
|
|
49
|
+
description: '使用/myset avgcolor <序号>修改,控制 B30 均值条的主色,用于快速区分你的展示偏好。'
|
|
50
|
+
},
|
|
51
|
+
allowApiUsage: {
|
|
52
|
+
title: 'API功能开关',
|
|
53
|
+
description: '使用/myset api <序号>修改,关闭后将不再使用在线查分平台相关功能。'
|
|
54
|
+
},
|
|
55
|
+
showB30Analysis: {
|
|
56
|
+
title: 'B30统计分析',
|
|
57
|
+
description: '使用/myset B30分析 <序号>修改,控制 B30 图片末尾的谱面标签能力与等效 RKS 直方图。'
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* 用户个性化设置可选项标题与解释
|
|
63
|
+
*/
|
|
64
|
+
export const USER_SETTING_OPTIONS = {
|
|
65
|
+
theme: {
|
|
66
|
+
default: {
|
|
67
|
+
title: '[0]默认',
|
|
68
|
+
description: '使用插件基础主题,使用随机曲绘作为背景。'
|
|
69
|
+
},
|
|
70
|
+
snow: {
|
|
71
|
+
title: '[1]寒冬',
|
|
72
|
+
description: '在默认的基础上加入飘落雪花元素。'
|
|
73
|
+
},
|
|
74
|
+
star: {
|
|
75
|
+
title: '[2]使一颗心免于哀伤',
|
|
76
|
+
description: '飞萤之火自无梦的长夜亮起,绽放在终竟的明天。'
|
|
77
|
+
},
|
|
78
|
+
dss2: {
|
|
79
|
+
title: '[3]大师赛2',
|
|
80
|
+
description: 'Phigros 大师赛第二赛季主题配色'
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
b30AvgKind: {
|
|
84
|
+
all: {
|
|
85
|
+
title: '[0]全部统计',
|
|
86
|
+
description: '展示在相近rks的玩家中全部成绩的平均值统计,信息最完整。将使用全部四种颜色区分不同的相对位置关系。'
|
|
87
|
+
},
|
|
88
|
+
b30: {
|
|
89
|
+
title: '[1]仅 B30',
|
|
90
|
+
description: '展示在相近rks的玩家中只按 B30 成绩平均值统计,关注B30健康度。将使用前两个或后两个颜色,下个选项选择任意一个颜色时将同时使用与其对应的颜色'
|
|
91
|
+
},
|
|
92
|
+
top: {
|
|
93
|
+
title: '[2]仅 Top',
|
|
94
|
+
description: '展示玩家成绩在相近rks的玩家中所有成绩和仅考虑B30成绩中的排名百分比,展示格式:[Top: 全体 / B30]。将全部使用下个选项选择的颜色进行展示'
|
|
95
|
+
},
|
|
96
|
+
none: {
|
|
97
|
+
title: '[3]隐藏',
|
|
98
|
+
description: '不展示B30均值相关信息,界面更简洁。'
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
b30AvgColor: {
|
|
102
|
+
red: {
|
|
103
|
+
title: '[0]红',
|
|
104
|
+
description: '高对比暖色,视觉冲击更强。'
|
|
105
|
+
},
|
|
106
|
+
gold: {
|
|
107
|
+
title: '[1]金',
|
|
108
|
+
description: '偏亮金色,强调成就感和层级感。'
|
|
109
|
+
},
|
|
110
|
+
blue: {
|
|
111
|
+
title: '[2]蓝',
|
|
112
|
+
description: '冷色调方案,信息阅读更平稳。'
|
|
113
|
+
},
|
|
114
|
+
green: {
|
|
115
|
+
title: '[3]绿',
|
|
116
|
+
description: '中性偏亮配色,整体观感更清新。'
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
allowApiUsage: {
|
|
120
|
+
true: {
|
|
121
|
+
title: '[0]启用',
|
|
122
|
+
description: '允许插件使用在线查分平台相关能力。'
|
|
123
|
+
},
|
|
124
|
+
false: {
|
|
125
|
+
title: '[1]禁用',
|
|
126
|
+
description: '禁用在线查分平台能力,仅使用本地数据。'
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
showB30Analysis: {
|
|
130
|
+
true: {
|
|
131
|
+
title: '[0]显示',
|
|
132
|
+
description: '在 B30 图片末尾显示谱面标签能力和等效 RKS 直方图。'
|
|
133
|
+
},
|
|
134
|
+
false: {
|
|
135
|
+
title: '[1]隐藏',
|
|
136
|
+
description: '隐藏完整的 B30 统计分析区域。'
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export const USER_API_SETTING_META = {
|
|
142
|
+
allowDataCollection: {
|
|
143
|
+
title: '数据收集同意',
|
|
144
|
+
description: '控制是否同意插件收集你的游戏数据(如成绩、游玩时间等)用于统计分析和功能优化,帮助我们改进插件性能和用户体验。关闭后将同步禁用下方所有选项。'
|
|
145
|
+
},
|
|
146
|
+
allowLeaderboard: {
|
|
147
|
+
title: '排行榜展示',
|
|
148
|
+
description: '同意将你的成绩展示在在线排行榜中,供其他玩家查看和比较。'
|
|
149
|
+
},
|
|
150
|
+
allowDataAggregation: {
|
|
151
|
+
title: '数据聚合',
|
|
152
|
+
description: '同意将你的成绩数据匿名化后用于整体统计分析,分析结果将用于推分建议以及谱面分析、定位等功能。'
|
|
153
|
+
},
|
|
154
|
+
allowPlayerIdSearch: {
|
|
155
|
+
title: '玩家ID搜索',
|
|
156
|
+
description: '同意其他玩家通过你游戏中的的玩家ID搜索到你的成绩信息,便于社交互动和成绩比较。'
|
|
157
|
+
},
|
|
158
|
+
allowUserIdSearch: {
|
|
159
|
+
title: '用户ID搜索',
|
|
160
|
+
description: '控制是否同意使用用户ID进行绑定,其他玩家可以通过用户id获取到你的成绩信息'
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export const USER_API_SETTING_OPTIONS = {
|
|
165
|
+
allowDataCollection: {
|
|
166
|
+
true: {
|
|
167
|
+
title: '[1]同意',
|
|
168
|
+
description: ''
|
|
169
|
+
},
|
|
170
|
+
false: {
|
|
171
|
+
title: '[0]拒绝',
|
|
172
|
+
description: '插件将仅使用本地数据,不会上传任何信息。'
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
allowLeaderboard: {
|
|
176
|
+
true: {
|
|
177
|
+
title: '[1]同意',
|
|
178
|
+
description: ''
|
|
179
|
+
},
|
|
180
|
+
false: {
|
|
181
|
+
title: '[0]拒绝',
|
|
182
|
+
description: '你的成绩将不会在排行榜中展示。'
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
allowDataAggregation: {
|
|
186
|
+
true: {
|
|
187
|
+
title: '[1]同意',
|
|
188
|
+
description: ''
|
|
189
|
+
},
|
|
190
|
+
false: {
|
|
191
|
+
title: '[0]拒绝',
|
|
192
|
+
description: '拒绝将你的成绩数据用于统计分析,插件将不会使用你的数据进行任何形式的分析或报告。'
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
allowPlayerIdSearch: {
|
|
196
|
+
true: {
|
|
197
|
+
title: '[1]同意',
|
|
198
|
+
description: ''
|
|
199
|
+
},
|
|
200
|
+
false: {
|
|
201
|
+
title: '[0]拒绝',
|
|
202
|
+
description: '其他人将无法通过你的游戏ID搜索到你的成绩信息。'
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
allowUserIdSearch: {
|
|
206
|
+
true: {
|
|
207
|
+
title: '[1]同意',
|
|
208
|
+
description: ''
|
|
209
|
+
},
|
|
210
|
+
false: {
|
|
211
|
+
title: '[0]拒绝',
|
|
212
|
+
description: '禁止使用用户ID获取存档,将禁用用户ID绑定功能。'
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|