beatsaber-bot-core 0.2.0-dev.1 → 0.2.0-dev.2
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/package.json +1 -1
- package/lib/api/base/aioRequest.d.ts +0 -6
- package/lib/api/base/aioRequest.js +0 -24
- package/lib/api/base/aioRequest.js.map +0 -1
- package/lib/api/base/blRequset.d.ts +0 -12
- package/lib/api/base/blRequset.js +0 -68
- package/lib/api/base/blRequset.js.map +0 -1
- package/lib/api/base/bsRequest.d.ts +0 -24
- package/lib/api/base/bsRequest.js +0 -64
- package/lib/api/base/bsRequest.js.map +0 -1
- package/lib/api/base/index.d.ts +0 -12
- package/lib/api/base/index.js +0 -21
- package/lib/api/base/index.js.map +0 -1
- package/lib/api/base/scRequest.d.ts +0 -6
- package/lib/api/base/scRequest.js +0 -28
- package/lib/api/base/scRequest.js.map +0 -1
- package/lib/api/composed/aiosaber.d.ts +0 -7
- package/lib/api/composed/aiosaber.js +0 -16
- package/lib/api/composed/aiosaber.js.map +0 -1
- package/lib/api/composed/beatleader.d.ts +0 -27
- package/lib/api/composed/beatleader.js +0 -91
- package/lib/api/composed/beatleader.js.map +0 -1
- package/lib/api/composed/beatsaver.d.ts +0 -12
- package/lib/api/composed/beatsaver.js +0 -18
- package/lib/api/composed/beatsaver.js.map +0 -1
- package/lib/api/composed/scoresaber.d.ts +0 -14
- package/lib/api/composed/scoresaber.js +0 -67
- package/lib/api/composed/scoresaber.js.map +0 -1
- package/lib/api/index.d.ts +0 -31
- package/lib/api/index.js +0 -134
- package/lib/api/index.js.map +0 -1
- package/lib/api/interfaces/aiosaber/index.d.ts +0 -7
- package/lib/api/interfaces/aiosaber/index.js +0 -3
- package/lib/api/interfaces/aiosaber/index.js.map +0 -1
- package/lib/api/interfaces/beatleader/bsor.d.ts +0 -112
- package/lib/api/interfaces/beatleader/bsor.js +0 -3
- package/lib/api/interfaces/beatleader/bsor.js.map +0 -1
- package/lib/api/interfaces/beatleader/index.d.ts +0 -5
- package/lib/api/interfaces/beatleader/index.js +0 -22
- package/lib/api/interfaces/beatleader/index.js.map +0 -1
- package/lib/api/interfaces/beatleader/req.d.ts +0 -19
- package/lib/api/interfaces/beatleader/req.js +0 -3
- package/lib/api/interfaces/beatleader/req.js.map +0 -1
- package/lib/api/interfaces/beatleader/score.d.ts +0 -162
- package/lib/api/interfaces/beatleader/score.js +0 -3
- package/lib/api/interfaces/beatleader/score.js.map +0 -1
- package/lib/api/interfaces/beatleader/user.d.ts +0 -171
- package/lib/api/interfaces/beatleader/user.js +0 -3
- package/lib/api/interfaces/beatleader/user.js.map +0 -1
- package/lib/api/interfaces/beatleader/ws.d.ts +0 -87
- package/lib/api/interfaces/beatleader/ws.js +0 -3
- package/lib/api/interfaces/beatleader/ws.js.map +0 -1
- package/lib/api/interfaces/beatsaver/alert.d.ts +0 -18
- package/lib/api/interfaces/beatsaver/alert.js +0 -3
- package/lib/api/interfaces/beatsaver/alert.js.map +0 -1
- package/lib/api/interfaces/beatsaver/bsmap.d.ts +0 -66
- package/lib/api/interfaces/beatsaver/bsmap.js +0 -3
- package/lib/api/interfaces/beatsaver/bsmap.js.map +0 -1
- package/lib/api/interfaces/beatsaver/index.d.ts +0 -10
- package/lib/api/interfaces/beatsaver/index.js +0 -22
- package/lib/api/interfaces/beatsaver/index.js.map +0 -1
- package/lib/api/interfaces/beatsaver/resp.d.ts +0 -8
- package/lib/api/interfaces/beatsaver/resp.js +0 -3
- package/lib/api/interfaces/beatsaver/resp.js.map +0 -1
- package/lib/api/interfaces/beatsaver/user.d.ts +0 -8
- package/lib/api/interfaces/beatsaver/user.js +0 -3
- package/lib/api/interfaces/beatsaver/user.js.map +0 -1
- package/lib/api/interfaces/beatsaver/ws.d.ts +0 -5
- package/lib/api/interfaces/beatsaver/ws.js +0 -3
- package/lib/api/interfaces/beatsaver/ws.js.map +0 -1
- package/lib/api/interfaces/scoresaber/index.d.ts +0 -3
- package/lib/api/interfaces/scoresaber/index.js +0 -20
- package/lib/api/interfaces/scoresaber/index.js.map +0 -1
- package/lib/api/interfaces/scoresaber/item.d.ts +0 -57
- package/lib/api/interfaces/scoresaber/item.js +0 -3
- package/lib/api/interfaces/scoresaber/item.js.map +0 -1
- package/lib/api/interfaces/scoresaber/resp.d.ts +0 -9
- package/lib/api/interfaces/scoresaber/resp.js +0 -3
- package/lib/api/interfaces/scoresaber/resp.js.map +0 -1
- package/lib/api/interfaces/scoresaber/user.d.ts +0 -33
- package/lib/api/interfaces/scoresaber/user.js +0 -3
- package/lib/api/interfaces/scoresaber/user.js.map +0 -1
- package/lib/api/interfaces/scoresaber/ws.d.ts +0 -78
- package/lib/api/interfaces/scoresaber/ws.js +0 -3
- package/lib/api/interfaces/scoresaber/ws.js.map +0 -1
- package/lib/api/netResult.d.ts +0 -18
- package/lib/api/netResult.js +0 -42
- package/lib/api/netResult.js.map +0 -1
- package/lib/api/sortScore.d.ts +0 -2
- package/lib/api/sortScore.js +0 -31
- package/lib/api/sortScore.js.map +0 -1
- package/lib/cmd/bind/bind-beatleader.d.ts +0 -2
- package/lib/cmd/bind/bind-beatleader.js +0 -53
- package/lib/cmd/bind/bind-beatleader.js.map +0 -1
- package/lib/cmd/bind/bind-beatsaver.d.ts +0 -2
- package/lib/cmd/bind/bind-beatsaver.js +0 -55
- package/lib/cmd/bind/bind-beatsaver.js.map +0 -1
- package/lib/cmd/bind/bind-id-beatleader.d.ts +0 -2
- package/lib/cmd/bind/bind-id-beatleader.js +0 -55
- package/lib/cmd/bind/bind-id-beatleader.js.map +0 -1
- package/lib/cmd/bind/bind-id-beatsaver.d.ts +0 -2
- package/lib/cmd/bind/bind-id-beatsaver.js +0 -55
- package/lib/cmd/bind/bind-id-beatsaver.js.map +0 -1
- package/lib/cmd/bind/bind-scoresaber.d.ts +0 -2
- package/lib/cmd/bind/bind-scoresaber.js +0 -61
- package/lib/cmd/bind/bind-scoresaber.js.map +0 -1
- package/lib/cmd/bind/index.d.ts +0 -11
- package/lib/cmd/bind/index.js +0 -52
- package/lib/cmd/bind/index.js.map +0 -1
- package/lib/cmd/bsmap/id-search.d.ts +0 -9
- package/lib/cmd/bsmap/id-search.js +0 -35
- package/lib/cmd/bsmap/id-search.js.map +0 -1
- package/lib/cmd/bsmap/key-search.d.ts +0 -9
- package/lib/cmd/bsmap/key-search.js +0 -41
- package/lib/cmd/bsmap/key-search.js.map +0 -1
- package/lib/cmd/bsmap/latest.d.ts +0 -9
- package/lib/cmd/bsmap/latest.js +0 -36
- package/lib/cmd/bsmap/latest.js.map +0 -1
- package/lib/cmd/builder.d.ts +0 -27
- package/lib/cmd/builder.js +0 -41
- package/lib/cmd/builder.js.map +0 -1
- package/lib/cmd/decrepeted/cmp.d.ts +0 -9
- package/lib/cmd/decrepeted/cmp.js +0 -15
- package/lib/cmd/decrepeted/cmp.js.map +0 -1
- package/lib/cmd/decrepeted/me.d.ts +0 -13
- package/lib/cmd/decrepeted/me.js +0 -66
- package/lib/cmd/decrepeted/me.js.map +0 -1
- package/lib/cmd/decrepeted/tmp.d.ts +0 -9
- package/lib/cmd/decrepeted/tmp.js +0 -21
- package/lib/cmd/decrepeted/tmp.js.map +0 -1
- package/lib/cmd/decrepeted/whois.d.ts +0 -11
- package/lib/cmd/decrepeted/whois.js +0 -40
- package/lib/cmd/decrepeted/whois.js.map +0 -1
- package/lib/cmd/deprecated/cmp.d.ts +0 -9
- package/lib/cmd/deprecated/cmp.js +0 -15
- package/lib/cmd/deprecated/cmp.js.map +0 -1
- package/lib/cmd/deprecated/me.d.ts +0 -13
- package/lib/cmd/deprecated/me.js +0 -66
- package/lib/cmd/deprecated/me.js.map +0 -1
- package/lib/cmd/deprecated/tmp.d.ts +0 -9
- package/lib/cmd/deprecated/tmp.js +0 -21
- package/lib/cmd/deprecated/tmp.js.map +0 -1
- package/lib/cmd/deprecated/whois.d.ts +0 -11
- package/lib/cmd/deprecated/whois.js +0 -40
- package/lib/cmd/deprecated/whois.js.map +0 -1
- package/lib/cmd/help.d.ts +0 -9
- package/lib/cmd/help.js +0 -14
- package/lib/cmd/help.js.map +0 -1
- package/lib/cmd/index.d.ts +0 -2
- package/lib/cmd/index.js +0 -23
- package/lib/cmd/index.js.map +0 -1
- package/lib/cmd/rank.d.ts +0 -11
- package/lib/cmd/rank.js +0 -53
- package/lib/cmd/rank.js.map +0 -1
- package/lib/cmd/score.d.ts +0 -13
- package/lib/cmd/score.js +0 -43
- package/lib/cmd/score.js.map +0 -1
- package/lib/cmd/subscribe/alert.d.ts +0 -0
- package/lib/cmd/subscribe/alert.js +0 -86
- package/lib/cmd/subscribe/alert.js.map +0 -1
- package/lib/cmd/subscribe/beatleader.d.ts +0 -2
- package/lib/cmd/subscribe/beatleader.js +0 -27
- package/lib/cmd/subscribe/beatleader.js.map +0 -1
- package/lib/cmd/subscribe/beatsaver.d.ts +0 -2
- package/lib/cmd/subscribe/beatsaver.js +0 -27
- package/lib/cmd/subscribe/beatsaver.js.map +0 -1
- package/lib/cmd/subscribe/blfilters.d.ts +0 -0
- package/lib/cmd/subscribe/blfilters.js +0 -49
- package/lib/cmd/subscribe/blfilters.js.map +0 -1
- package/lib/cmd/subscribe/deprecated/alert.d.ts +0 -0
- package/lib/cmd/subscribe/deprecated/alert.js +0 -86
- package/lib/cmd/subscribe/deprecated/alert.js.map +0 -1
- package/lib/cmd/subscribe/deprecated/blfilters.d.ts +0 -0
- package/lib/cmd/subscribe/deprecated/blfilters.js +0 -49
- package/lib/cmd/subscribe/deprecated/blfilters.js.map +0 -1
- package/lib/cmd/subscribe/deprecated/scoresaber.d.ts +0 -0
- package/lib/cmd/subscribe/deprecated/scoresaber.js +0 -43
- package/lib/cmd/subscribe/deprecated/scoresaber.js.map +0 -1
- package/lib/cmd/subscribe/index.d.ts +0 -11
- package/lib/cmd/subscribe/index.js +0 -45
- package/lib/cmd/subscribe/index.js.map +0 -1
- package/lib/cmd/subscribe/scoresaber.d.ts +0 -0
- package/lib/cmd/subscribe/scoresaber.js +0 -43
- package/lib/cmd/subscribe/scoresaber.js.map +0 -1
- package/lib/cmd/subscribe/subjoin.d.ts +0 -11
- package/lib/cmd/subscribe/subjoin.js +0 -42
- package/lib/cmd/subscribe/subjoin.js.map +0 -1
- package/lib/cmd/subscribe/subleave.d.ts +0 -11
- package/lib/cmd/subscribe/subleave.js +0 -35
- package/lib/cmd/subscribe/subleave.js.map +0 -1
- package/lib/cmd/subscribe/unsubscribe.d.ts +0 -11
- package/lib/cmd/subscribe/unsubscribe.js +0 -41
- package/lib/cmd/subscribe/unsubscribe.js.map +0 -1
- package/lib/config.d.ts +0 -23
- package/lib/config.js +0 -3
- package/lib/config.js.map +0 -1
- package/lib/db/index.d.ts +0 -34
- package/lib/db/index.js +0 -3
- package/lib/db/index.js.map +0 -1
- package/lib/errors/index.d.ts +0 -53
- package/lib/errors/index.js +0 -113
- package/lib/errors/index.js.map +0 -1
- package/lib/i18n/index.d.ts +0 -2
- package/lib/i18n/index.js +0 -112
- package/lib/i18n/index.js.map +0 -1
- package/lib/i18n/zh-cn.json +0 -1
- package/lib/img-render/components/base/avatar.d.ts +0 -0
- package/lib/img-render/components/base/avatar.js +0 -1
- package/lib/img-render/components/base/avatar.js.map +0 -1
- package/lib/img-render/components/blScoreItem.d.ts +0 -6
- package/lib/img-render/components/blScoreItem.js +0 -14
- package/lib/img-render/components/blScoreItem.js.map +0 -1
- package/lib/img-render/components/characteristic.d.ts +0 -5
- package/lib/img-render/components/characteristic.js +0 -27
- package/lib/img-render/components/characteristic.js.map +0 -1
- package/lib/img-render/components/flag.d.ts +0 -5
- package/lib/img-render/components/flag.js +0 -39
- package/lib/img-render/components/flag.js.map +0 -1
- package/lib/img-render/components/icons/BeatLeader.d.ts +0 -3
- package/lib/img-render/components/icons/BeatLeader.js +0 -10
- package/lib/img-render/components/icons/BeatLeader.js.map +0 -1
- package/lib/img-render/components/icons/RankIcon.d.ts +0 -4
- package/lib/img-render/components/icons/RankIcon.js +0 -14
- package/lib/img-render/components/icons/RankIcon.js.map +0 -1
- package/lib/img-render/components/icons/ScoreSaberIcon.d.ts +0 -3
- package/lib/img-render/components/icons/ScoreSaberIcon.js +0 -8
- package/lib/img-render/components/icons/ScoreSaberIcon.js.map +0 -1
- package/lib/img-render/components/progressbar.d.ts +0 -4
- package/lib/img-render/components/progressbar.js +0 -9
- package/lib/img-render/components/progressbar.js.map +0 -1
- package/lib/img-render/components/scoreItem.d.ts +0 -4
- package/lib/img-render/components/scoreItem.js +0 -29
- package/lib/img-render/components/scoreItem.js.map +0 -1
- package/lib/img-render/components/scoregraph.d.ts +0 -8
- package/lib/img-render/components/scoregraph.js +0 -300
- package/lib/img-render/components/scoregraph.js.map +0 -1
- package/lib/img-render/components/skill-graph.d.ts +0 -5
- package/lib/img-render/components/skill-graph.js +0 -50
- package/lib/img-render/components/skill-graph.js.map +0 -1
- package/lib/img-render/components/socre-badge.d.ts +0 -5
- package/lib/img-render/components/socre-badge.js +0 -10
- package/lib/img-render/components/socre-badge.js.map +0 -1
- package/lib/img-render/components/ssScoreItem.d.ts +0 -4
- package/lib/img-render/components/ssScoreItem.js +0 -14
- package/lib/img-render/components/ssScoreItem.js.map +0 -1
- package/lib/img-render/index.d.ts +0 -22
- package/lib/img-render/index.js +0 -130
- package/lib/img-render/index.js.map +0 -1
- package/lib/img-render/interfaces.d.ts +0 -17
- package/lib/img-render/interfaces.js +0 -3
- package/lib/img-render/interfaces.js.map +0 -1
- package/lib/img-render/remote/index.d.ts +0 -0
- package/lib/img-render/remote/index.js +0 -56
- package/lib/img-render/remote/index.js.map +0 -1
- package/lib/img-render/render.d.ts +0 -7
- package/lib/img-render/render.js +0 -40
- package/lib/img-render/render.js.map +0 -1
- package/lib/img-render/renderImg.d.ts +0 -0
- package/lib/img-render/renderImg.js +0 -1
- package/lib/img-render/renderImg.js.map +0 -1
- package/lib/img-render/result/bl-player.d.ts +0 -7
- package/lib/img-render/result/bl-player.js +0 -44
- package/lib/img-render/result/bl-player.js.map +0 -1
- package/lib/img-render/result/bl-score.d.ts +0 -11
- package/lib/img-render/result/bl-score.js +0 -18
- package/lib/img-render/result/bl-score.js.map +0 -1
- package/lib/img-render/result/bs-map.d.ts +0 -8
- package/lib/img-render/result/bs-map.js +0 -26
- package/lib/img-render/result/bs-map.js.map +0 -1
- package/lib/img-render/result/index.d.ts +0 -7
- package/lib/img-render/result/index.js +0 -28
- package/lib/img-render/result/index.js.map +0 -1
- package/lib/img-render/result/ss-player.d.ts +0 -8
- package/lib/img-render/result/ss-player.js +0 -39
- package/lib/img-render/result/ss-player.js.map +0 -1
- package/lib/img-render/utils/bl/beatleader.d.ts +0 -13
- package/lib/img-render/utils/bl/beatleader.js +0 -38
- package/lib/img-render/utils/bl/beatleader.js.map +0 -1
- package/lib/img-render/utils/bl/blheadset.d.ts +0 -273
- package/lib/img-render/utils/bl/blheadset.js +0 -281
- package/lib/img-render/utils/bl/blheadset.js.map +0 -1
- package/lib/img-render/utils/bl/bsorDecoder.d.ts +0 -68
- package/lib/img-render/utils/bl/bsorDecoder.js +0 -286
- package/lib/img-render/utils/bl/bsorDecoder.js.map +0 -1
- package/lib/img-render/utils/bl/bsorReplayAcc.d.ts +0 -35
- package/lib/img-render/utils/bl/bsorReplayAcc.js +0 -590
- package/lib/img-render/utils/bl/bsorReplayAcc.js.map +0 -1
- package/lib/img-render/utils/bl/getPart.d.ts +0 -7
- package/lib/img-render/utils/bl/getPart.js +0 -31
- package/lib/img-render/utils/bl/getPart.js.map +0 -1
- package/lib/img-render/utils/bl/stastic.d.ts +0 -2
- package/lib/img-render/utils/bl/stastic.js +0 -53
- package/lib/img-render/utils/bl/stastic.js.map +0 -1
- package/lib/img-render/utils/canvas.d.ts +0 -5
- package/lib/img-render/utils/canvas.js +0 -70
- package/lib/img-render/utils/canvas.js.map +0 -1
- package/lib/img-render/utils/format.d.ts +0 -3
- package/lib/img-render/utils/format.js +0 -42
- package/lib/img-render/utils/format.js.map +0 -1
- package/lib/img-render/utils/getMods.d.ts +0 -2
- package/lib/img-render/utils/getMods.js +0 -22
- package/lib/img-render/utils/getMods.js.map +0 -1
- package/lib/img-render/utils/index.d.ts +0 -3
- package/lib/img-render/utils/index.js +0 -36
- package/lib/img-render/utils/index.js.map +0 -1
- package/lib/img-render/utils/qrcode.d.ts +0 -1
- package/lib/img-render/utils/qrcode.js +0 -43
- package/lib/img-render/utils/qrcode.js.map +0 -1
- package/lib/img-render/utils/sleep.d.ts +0 -1
- package/lib/img-render/utils/sleep.js +0 -10
- package/lib/img-render/utils/sleep.js.map +0 -1
- package/lib/img-render/utils/tag-format.d.ts +0 -1
- package/lib/img-render/utils/tag-format.js +0 -225
- package/lib/img-render/utils/tag-format.js.map +0 -1
- package/lib/img-render/utils/tw-join.d.ts +0 -4
- package/lib/img-render/utils/tw-join.js +0 -36
- package/lib/img-render/utils/tw-join.js.map +0 -1
- package/lib/index.d.ts +0 -8
- package/lib/index.js +0 -25
- package/lib/index.js.map +0 -1
- package/lib/interface/bot.d.ts +0 -20
- package/lib/interface/bot.js +0 -3
- package/lib/interface/bot.js.map +0 -1
- package/lib/interface/cmd.d.ts +0 -36
- package/lib/interface/cmd.js +0 -3
- package/lib/interface/cmd.js.map +0 -1
- package/lib/interface/db.d.ts +0 -35
- package/lib/interface/db.js +0 -3
- package/lib/interface/db.js.map +0 -1
- package/lib/interface/index.d.ts +0 -15
- package/lib/interface/index.js +0 -35
- package/lib/interface/index.js.map +0 -1
- package/lib/interface/logger.d.ts +0 -6
- package/lib/interface/logger.js +0 -3
- package/lib/interface/logger.js.map +0 -1
- package/lib/interface/render.d.ts +0 -21
- package/lib/interface/render.js +0 -3
- package/lib/interface/render.js.map +0 -1
- package/lib/interface/tables.d.ts +0 -0
- package/lib/interface/tables.js +0 -1
- package/lib/interface/tables.js.map +0 -1
- package/lib/schedules/BeatSaverAlertMonitor.d.ts +0 -0
- package/lib/schedules/BeatSaverAlertMonitor.js +0 -231
- package/lib/schedules/BeatSaverAlertMonitor.js.map +0 -1
- package/lib/schedules/index.d.ts +0 -2
- package/lib/schedules/index.js +0 -19
- package/lib/schedules/index.js.map +0 -1
- package/lib/schedules/oauthTokenRefreshTask.d.ts +0 -5
- package/lib/schedules/oauthTokenRefreshTask.js +0 -53
- package/lib/schedules/oauthTokenRefreshTask.js.map +0 -1
- package/lib/schedules/temp.d.ts +0 -5
- package/lib/schedules/temp.js +0 -23
- package/lib/schedules/temp.js.map +0 -1
- package/lib/utils.d.ts +0 -2
- package/lib/utils.js +0 -25
- package/lib/utils.js.map +0 -1
- package/lib/ws/beatleader.d.ts +0 -18
- package/lib/ws/beatleader.js +0 -55
- package/lib/ws/beatleader.js.map +0 -1
- package/lib/ws/beatsaver.d.ts +0 -18
- package/lib/ws/beatsaver.js +0 -56
- package/lib/ws/beatsaver.js.map +0 -1
- package/lib/ws/bl-filter.d.ts +0 -0
- package/lib/ws/bl-filter.js +0 -64
- package/lib/ws/bl-filter.js.map +0 -1
- package/lib/ws/handler.d.ts +0 -6
- package/lib/ws/handler.js +0 -3
- package/lib/ws/handler.js.map +0 -1
- package/lib/ws/index.d.ts +0 -4
- package/lib/ws/index.js +0 -21
- package/lib/ws/index.js.map +0 -1
- package/lib/ws/scoresaber.d.ts +0 -18
- package/lib/ws/scoresaber.js +0 -37
- package/lib/ws/scoresaber.js.map +0 -1
@@ -1,286 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
// export function checkBSOR(file, isLink, completion) {
|
3
|
-
// if (isLink) {
|
4
|
-
// const filename = file.split('?')[0];
|
5
|
-
// if (filename.split('.').pop() == 'bsor' || filename.split('.').pop() == 'bsortemp') {
|
6
|
-
// file = file.replace('https://cdn.discordapp.com/', '/cors/discord-cdn/');
|
7
|
-
// var xhr = new XMLHttpRequest();
|
8
|
-
// xhr.open('GET', file, true);
|
9
|
-
// xhr.responseType = 'blob';
|
10
|
-
//
|
11
|
-
// xhr.onload = function () {
|
12
|
-
// checkBSORFile(xhr.response, completion);
|
13
|
-
// };
|
14
|
-
// xhr.send();
|
15
|
-
// } else {
|
16
|
-
// completion('Error: wrong file format');
|
17
|
-
// }
|
18
|
-
// } else {
|
19
|
-
// checkBSORFile(file, completion);
|
20
|
-
// }
|
21
|
-
// }
|
22
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
23
|
-
exports.DecodeNotes = exports.DecodeInfo = exports.decode = exports.NoteEventType = exports.checkBSORFile = void 0;
|
24
|
-
function checkBSORFile(file, completion) {
|
25
|
-
var reader = new FileReader();
|
26
|
-
// (await fetch("")).arrayBuffer()
|
27
|
-
reader.onload = function (e) {
|
28
|
-
decode(e.target.result, completion);
|
29
|
-
};
|
30
|
-
reader.onerror = function (e) {
|
31
|
-
// error occurred
|
32
|
-
completion('Error: ' + e.type);
|
33
|
-
};
|
34
|
-
reader.readAsArrayBuffer(file);
|
35
|
-
}
|
36
|
-
exports.checkBSORFile = checkBSORFile;
|
37
|
-
const StructType = {
|
38
|
-
info: 0,
|
39
|
-
frames: 1,
|
40
|
-
notes: 2,
|
41
|
-
walls: 3,
|
42
|
-
heights: 4,
|
43
|
-
pauses: 5,
|
44
|
-
};
|
45
|
-
exports.NoteEventType = {
|
46
|
-
good: 0,
|
47
|
-
bad: 1,
|
48
|
-
miss: 2,
|
49
|
-
bomb: 3,
|
50
|
-
};
|
51
|
-
function decode(arrayBuffer, completion) {
|
52
|
-
const dataView = new DataView(arrayBuffer);
|
53
|
-
dataView.pointer = 0;
|
54
|
-
const magic = DecodeInt(dataView);
|
55
|
-
const version = DecodeUint8(dataView);
|
56
|
-
if (version == 1 && magic == 0x442d3d69) {
|
57
|
-
var replay = {};
|
58
|
-
for (var a = 0; a < StructType.pauses + 1; a++) {
|
59
|
-
const type = DecodeUint8(dataView);
|
60
|
-
switch (type) {
|
61
|
-
case StructType.info:
|
62
|
-
replay.info = DecodeInfo(dataView);
|
63
|
-
break;
|
64
|
-
case StructType.frames:
|
65
|
-
replay.frames = DecodeFrames(dataView);
|
66
|
-
break;
|
67
|
-
case StructType.notes:
|
68
|
-
replay.notes = DecodeNotes(dataView);
|
69
|
-
break;
|
70
|
-
case StructType.walls:
|
71
|
-
replay.walls = DecodeWalls(dataView);
|
72
|
-
break;
|
73
|
-
case StructType.heights:
|
74
|
-
replay.heights = DecodeHeight(dataView);
|
75
|
-
break;
|
76
|
-
case StructType.pauses:
|
77
|
-
replay.pauses = DecodePauses(dataView);
|
78
|
-
break;
|
79
|
-
}
|
80
|
-
}
|
81
|
-
completion(replay);
|
82
|
-
}
|
83
|
-
else {
|
84
|
-
completion('Error: failed to decode replay');
|
85
|
-
}
|
86
|
-
}
|
87
|
-
exports.decode = decode;
|
88
|
-
function DecodeInfo(dataView) {
|
89
|
-
var result = {};
|
90
|
-
result.version = DecodeString(dataView);
|
91
|
-
result.gameVersion = DecodeString(dataView);
|
92
|
-
result.timestamp = DecodeString(dataView);
|
93
|
-
result.playerID = DecodeString(dataView);
|
94
|
-
result.playerName = DecodeName(dataView);
|
95
|
-
result.platform = DecodeString(dataView);
|
96
|
-
result.trackingSystem = DecodeString(dataView);
|
97
|
-
result.hmd = DecodeString(dataView);
|
98
|
-
result.controller = DecodeString(dataView);
|
99
|
-
result.hash = DecodeString(dataView);
|
100
|
-
result.songName = DecodeString(dataView);
|
101
|
-
result.mapper = DecodeString(dataView);
|
102
|
-
result.difficulty = DecodeString(dataView);
|
103
|
-
result.score = DecodeInt(dataView);
|
104
|
-
result.mode = DecodeString(dataView);
|
105
|
-
result.environment = DecodeString(dataView);
|
106
|
-
result.modifiers = DecodeString(dataView);
|
107
|
-
result.jumpDistance = DecodeFloat(dataView);
|
108
|
-
result.leftHanded = DecodeBool(dataView);
|
109
|
-
result.height = DecodeFloat(dataView);
|
110
|
-
result.startTime = DecodeFloat(dataView);
|
111
|
-
result.failTime = DecodeFloat(dataView);
|
112
|
-
result.speed = DecodeFloat(dataView);
|
113
|
-
return result;
|
114
|
-
}
|
115
|
-
exports.DecodeInfo = DecodeInfo;
|
116
|
-
function DecodeFrames(dataView) {
|
117
|
-
const length = DecodeInt(dataView);
|
118
|
-
var result = [];
|
119
|
-
for (var i = 0; i < length; i++) {
|
120
|
-
var frame = DecodeFrame(dataView);
|
121
|
-
if (frame.time != 0 &&
|
122
|
-
(result.length == 0 || frame.time != result[result.length - 1].time)) {
|
123
|
-
result.push(frame);
|
124
|
-
}
|
125
|
-
}
|
126
|
-
return result;
|
127
|
-
}
|
128
|
-
function DecodeFrame(dataView) {
|
129
|
-
var result = {};
|
130
|
-
result.time = DecodeFloat(dataView);
|
131
|
-
result.fps = DecodeInt(dataView);
|
132
|
-
result.head = DecodeEuler(dataView);
|
133
|
-
result.left = DecodeEuler(dataView);
|
134
|
-
result.right = DecodeEuler(dataView);
|
135
|
-
return result;
|
136
|
-
}
|
137
|
-
function DecodeNotes(dataView) {
|
138
|
-
const length = DecodeInt(dataView);
|
139
|
-
var result = [];
|
140
|
-
for (var i = 0; i < length; i++) {
|
141
|
-
result.push(DecodeNote(dataView));
|
142
|
-
}
|
143
|
-
return result;
|
144
|
-
}
|
145
|
-
exports.DecodeNotes = DecodeNotes;
|
146
|
-
function DecodeWalls(dataView) {
|
147
|
-
const length = DecodeInt(dataView);
|
148
|
-
var result = [];
|
149
|
-
for (var i = 0; i < length; i++) {
|
150
|
-
var wall = {};
|
151
|
-
wall.wallID = DecodeInt(dataView);
|
152
|
-
wall.energy = DecodeFloat(dataView);
|
153
|
-
wall.time = DecodeFloat(dataView);
|
154
|
-
wall.spawnTime = DecodeFloat(dataView);
|
155
|
-
result.push(wall);
|
156
|
-
}
|
157
|
-
return result;
|
158
|
-
}
|
159
|
-
function DecodeHeight(dataView) {
|
160
|
-
const length = DecodeInt(dataView);
|
161
|
-
var result = [];
|
162
|
-
for (var i = 0; i < length; i++) {
|
163
|
-
var height = {};
|
164
|
-
height.height = DecodeFloat(dataView);
|
165
|
-
height.time = DecodeFloat(dataView);
|
166
|
-
result.push(height);
|
167
|
-
}
|
168
|
-
return result;
|
169
|
-
}
|
170
|
-
function DecodePauses(dataView) {
|
171
|
-
const length = DecodeInt(dataView);
|
172
|
-
var result = [];
|
173
|
-
for (var i = 0; i < length; i++) {
|
174
|
-
var pause = {};
|
175
|
-
pause.duration = DecodeLong(dataView);
|
176
|
-
pause.time = DecodeFloat(dataView);
|
177
|
-
result.push(pause);
|
178
|
-
}
|
179
|
-
return result;
|
180
|
-
}
|
181
|
-
function DecodeNote(dataView) {
|
182
|
-
var result = {};
|
183
|
-
result.noteID = DecodeInt(dataView);
|
184
|
-
result.eventTime = DecodeFloat(dataView);
|
185
|
-
result.spawnTime = DecodeFloat(dataView);
|
186
|
-
result.eventType = DecodeInt(dataView);
|
187
|
-
if (result.eventType == exports.NoteEventType.good ||
|
188
|
-
result.eventType == exports.NoteEventType.bad) {
|
189
|
-
result.noteCutInfo = DecodeCutInfo(dataView);
|
190
|
-
}
|
191
|
-
return result;
|
192
|
-
}
|
193
|
-
function DecodeCutInfo(dataView) {
|
194
|
-
var result = {};
|
195
|
-
result.speedOK = DecodeBool(dataView);
|
196
|
-
result.directionOK = DecodeBool(dataView);
|
197
|
-
result.saberTypeOK = DecodeBool(dataView);
|
198
|
-
result.wasCutTooSoon = DecodeBool(dataView);
|
199
|
-
result.saberSpeed = DecodeFloat(dataView);
|
200
|
-
result.saberDir = DecodeVector3(dataView);
|
201
|
-
result.saberType = DecodeInt(dataView);
|
202
|
-
result.timeDeviation = DecodeFloat(dataView);
|
203
|
-
result.cutDirDeviation = DecodeFloat(dataView);
|
204
|
-
result.cutPoint = DecodeVector3(dataView);
|
205
|
-
result.cutNormal = DecodeVector3(dataView);
|
206
|
-
result.cutDistanceToCenter = DecodeFloat(dataView);
|
207
|
-
result.cutAngle = DecodeFloat(dataView);
|
208
|
-
result.beforeCutRating = DecodeFloat(dataView);
|
209
|
-
result.afterCutRating = DecodeFloat(dataView);
|
210
|
-
return result;
|
211
|
-
}
|
212
|
-
function DecodeEuler(dataView) {
|
213
|
-
var result = {};
|
214
|
-
result.position = DecodeVector3(dataView);
|
215
|
-
result.rotation = DecodeQuaternion(dataView);
|
216
|
-
return result;
|
217
|
-
}
|
218
|
-
function DecodeVector3(dataView) {
|
219
|
-
var result = {};
|
220
|
-
result.x = DecodeFloat(dataView);
|
221
|
-
result.y = DecodeFloat(dataView);
|
222
|
-
result.z = DecodeFloat(dataView);
|
223
|
-
return result;
|
224
|
-
}
|
225
|
-
function DecodeQuaternion(dataView) {
|
226
|
-
var result = {};
|
227
|
-
result.x = DecodeFloat(dataView);
|
228
|
-
result.y = DecodeFloat(dataView);
|
229
|
-
result.z = DecodeFloat(dataView);
|
230
|
-
result.w = DecodeFloat(dataView);
|
231
|
-
return result;
|
232
|
-
}
|
233
|
-
function DecodeLong(dataView) {
|
234
|
-
const result = dataView.getBigInt64(dataView.pointer, true);
|
235
|
-
dataView.pointer += 8;
|
236
|
-
return result;
|
237
|
-
}
|
238
|
-
function DecodeInt(dataView) {
|
239
|
-
const result = dataView.getInt32(dataView.pointer, true);
|
240
|
-
dataView.pointer += 4;
|
241
|
-
return result;
|
242
|
-
}
|
243
|
-
function DecodeUint8(dataView) {
|
244
|
-
const result = dataView.getUint8(dataView.pointer, true);
|
245
|
-
dataView.pointer++;
|
246
|
-
return result;
|
247
|
-
}
|
248
|
-
function DecodeString(dataView) {
|
249
|
-
const length = dataView.getInt32(dataView.pointer, true);
|
250
|
-
if (length < 0 || length > 300) {
|
251
|
-
dataView.pointer += 1;
|
252
|
-
return DecodeString(dataView);
|
253
|
-
}
|
254
|
-
var enc = new TextDecoder('utf-8');
|
255
|
-
const string = enc.decode(new Int8Array(dataView.buffer.slice(dataView.pointer + 4, length + dataView.pointer + 4)));
|
256
|
-
dataView.pointer += length + 4;
|
257
|
-
return string;
|
258
|
-
}
|
259
|
-
function DecodeName(dataView) {
|
260
|
-
const length = dataView.getInt32(dataView.pointer, true);
|
261
|
-
var enc = new TextDecoder('utf-8');
|
262
|
-
let lengthOffset = 0;
|
263
|
-
if (length > 0) {
|
264
|
-
while (dataView.getInt32(length + dataView.pointer + 4 + lengthOffset, true) !=
|
265
|
-
6 &&
|
266
|
-
dataView.getInt32(length + dataView.pointer + 4 + lengthOffset, true) !=
|
267
|
-
5 &&
|
268
|
-
dataView.getInt32(length + dataView.pointer + 4 + lengthOffset, true) != 8) {
|
269
|
-
lengthOffset++;
|
270
|
-
}
|
271
|
-
}
|
272
|
-
const string = enc.decode(new Int8Array(dataView.buffer.slice(dataView.pointer + 4, length + dataView.pointer + 4 + lengthOffset)));
|
273
|
-
dataView.pointer += length + 4 + lengthOffset;
|
274
|
-
return string;
|
275
|
-
}
|
276
|
-
function DecodeFloat(dataView) {
|
277
|
-
const result = dataView.getFloat32(dataView.pointer, true);
|
278
|
-
dataView.pointer += 4;
|
279
|
-
return result;
|
280
|
-
}
|
281
|
-
function DecodeBool(dataView) {
|
282
|
-
const result = dataView.getUint8(dataView.pointer, true) != 0;
|
283
|
-
dataView.pointer++;
|
284
|
-
return result;
|
285
|
-
}
|
286
|
-
//# sourceMappingURL=bsorDecoder.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"bsorDecoder.js","sourceRoot":"","sources":["../../../../src/img-render/utils/bl/bsorDecoder.js"],"names":[],"mappings":";AAAA,wDAAwD;AACxD,iBAAiB;AACjB,yCAAyC;AACzC,0FAA0F;AAC1F,+EAA+E;AAC/E,qCAAqC;AACrC,kCAAkC;AAClC,gCAAgC;AAChC,EAAE;AACF,gCAAgC;AAChC,+CAA+C;AAC/C,QAAQ;AACR,iBAAiB;AACjB,aAAa;AACb,6CAA6C;AAC7C,MAAM;AACN,YAAY;AACZ,qCAAqC;AACrC,KAAK;AACL,IAAI;;;AAEJ,SAAgB,aAAa,CAAC,IAAI,EAAE,UAAU;IAC5C,IAAI,MAAM,GAAG,IAAI,UAAU,EAAE,CAAA;IAC7B,kCAAkC;IAClC,MAAM,CAAC,MAAM,GAAG,UAAU,CAAC;QACzB,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;IACrC,CAAC,CAAA;IACD,MAAM,CAAC,OAAO,GAAG,U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,CAAC;AAED,SAAS,UAAU,CAAC,QAAQ;IAC1B,MAAM,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;IAC7D,QAAQ,CAAC,OAAO,EAAE,CAAA;IAClB,OAAO,MAAM,CAAA;AACf,CAAC"}
|
@@ -1,35 +0,0 @@
|
|
1
|
-
import { BSOR } from "../../../api/interfaces/beatleader";
|
2
|
-
export declare function processAccuracySpread(replay: BSOR): any;
|
3
|
-
export declare function processAccGraphs(replay: BSOR): {
|
4
|
-
times: any[];
|
5
|
-
fullSwingBySaber: any;
|
6
|
-
realScoreBySaber: any;
|
7
|
-
};
|
8
|
-
export declare function processSliceSummary(replay: any): any;
|
9
|
-
export declare function processSliceDetails(replay: any): {
|
10
|
-
mainGrid: any[];
|
11
|
-
summaryGrids: any[];
|
12
|
-
};
|
13
|
-
export declare const NoteCutDirection: {
|
14
|
-
Up: number;
|
15
|
-
Down: number;
|
16
|
-
Left: number;
|
17
|
-
Right: number;
|
18
|
-
UpLeft: number;
|
19
|
-
UpRight: number;
|
20
|
-
DownLeft: number;
|
21
|
-
DownRight: number;
|
22
|
-
Any: number;
|
23
|
-
None: number;
|
24
|
-
};
|
25
|
-
export declare const NoteLineLayer: {
|
26
|
-
Base: number;
|
27
|
-
Upper: number;
|
28
|
-
Top: number;
|
29
|
-
};
|
30
|
-
export declare const ColorType: {
|
31
|
-
None: number;
|
32
|
-
ColorA: number;
|
33
|
-
ColorB: number;
|
34
|
-
};
|
35
|
-
export declare function processUnderswings(replay: any): any;
|