mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
Compare commits
252
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f6f8e2b4df | ||
|
|
a4fca4085e | ||
|
|
26f71df9f9 | ||
|
|
d32b8cc3f5 | ||
|
|
72e358f034 | ||
|
|
625d8d1595 | ||
|
|
fc9050e7fe | ||
|
|
654887dd66 | ||
|
|
b540ab7814 | ||
|
|
0ee9c99a28 | ||
|
|
ab9149a11f | ||
|
|
924c130516 | ||
|
|
33366a8f79 | ||
|
|
342497563f | ||
|
|
a495a5f208 | ||
|
|
007d4e9540 | ||
|
|
273fea1599 | ||
|
|
7df53d845d | ||
|
|
1b5c79c2b8 | ||
|
|
51900f4c80 | ||
|
|
b9388cc544 | ||
|
|
05648ea040 | ||
|
|
73080fd60a | ||
|
|
14be326c41 | ||
|
|
8132f2d91e | ||
|
|
1258cd1fa2 | ||
|
|
989e3d395a | ||
|
|
d8925a47b5 | ||
|
|
60f482d820 | ||
|
|
c2fd81c98e | ||
|
|
0fbc868738 | ||
|
|
ff0cfbaf0a | ||
|
|
4642b74bca | ||
|
|
88d49bd5a3 | ||
|
|
6fd2423445 | ||
|
|
a0dba52649 | ||
|
|
80d76e3729 | ||
|
|
7915b39d9d | ||
|
|
c94a84222d | ||
|
|
1bca762781 | ||
|
|
7f7d0cc499 | ||
|
|
0c91ee3600 | ||
|
|
1988ecff92 | ||
|
|
ff03f8ffb2 | ||
|
|
d050776628 | ||
|
|
78bff2cdd2 | ||
|
|
072174ad45 | ||
|
|
03f2bcdc1a | ||
|
|
b6ae34dafa | ||
|
|
2e10052732 | ||
|
|
9a95306b37 | ||
|
|
fbc4355984 | ||
|
|
24026a95ee | ||
|
|
8f4a43fc8a | ||
|
|
646d6fa7d5 | ||
|
|
37fae7477d | ||
|
|
12ff9a90eb | ||
|
|
5ad5c701c9 | ||
|
|
a365fa5e50 | ||
|
|
57d77bf2b4 | ||
|
|
940c3c537b | ||
|
|
fbdfa2c063 | ||
|
|
7234c39ad8 | ||
|
|
c292adac41 | ||
|
|
1af104d4d6 | ||
|
|
7b7513f227 | ||
|
|
02f5cc0686 | ||
|
|
6f1d653d54 | ||
|
|
92c8b90bb3 | ||
|
|
1b807e6d0e | ||
|
|
0e7b020d60 | ||
|
|
eda5d10290 | ||
|
|
85e93cd827 | ||
|
|
bc2dd8c7b7 | ||
|
|
904d50f4c3 | ||
|
|
112472762d | ||
|
|
f6e5fabb65 | ||
|
|
e19d0d5895 | ||
|
|
aa6268a86b | ||
|
|
0f878485b3 | ||
|
|
0e119b6ba8 | ||
|
|
3397e7f67b | ||
|
|
de03a2ab95 | ||
|
|
d4e649804e | ||
|
|
c31d5705eb | ||
|
|
16be5faae6 | ||
|
|
e1b079ca02 | ||
|
|
00149a3d9d | ||
|
|
e3e94e2b49 | ||
|
|
5ce927be4e | ||
|
|
c70fae8162 | ||
|
|
d79e0ddb5d | ||
|
|
541da65bfc | ||
|
|
e4e92d76b4 | ||
|
|
273881c460 | ||
|
|
3aefe7d985 | ||
|
|
bfe31053a9 | ||
|
|
a5eac5572e | ||
|
|
116c30be88 | ||
|
|
e0ba100e91 | ||
|
|
60a92fbfdf | ||
|
|
643e1dd352 | ||
|
|
5ba62d2952 | ||
|
|
91f2b7afd0 | ||
|
|
1bdd8bab9e | ||
|
|
bded8a4da5 | ||
|
|
95d6d8a1ae | ||
|
|
5f61bac375 | ||
|
|
c310e8475e | ||
|
|
e090aee984 | ||
|
|
f3a8f2faab | ||
|
|
0539d69c7f | ||
|
|
ccbb572999 | ||
|
|
89b8f25918 | ||
|
|
fee2c8212d | ||
|
|
9a659845f5 | ||
|
|
ebdb8577da | ||
|
|
b880b8cdbd | ||
|
|
dd11efd481 | ||
|
|
6be4ff97f3 | ||
|
|
784c3e58c1 | ||
|
|
8b03784be5 | ||
|
|
d9f29cd0c9 | ||
|
|
86e7ace3f0 | ||
|
|
fbba0bf13b | ||
|
|
c2c586c2e7 | ||
|
|
aaf0e52be4 | ||
|
|
067c9cb267 | ||
|
|
8d5ef29771 | ||
|
|
a5637c9f07 | ||
|
|
d7e06a2b46 | ||
|
|
551183a65b | ||
|
|
46bd8f6316 | ||
|
|
f8aa9e75d5 | ||
|
|
6907e5fb7a | ||
|
|
e5e2f2505c | ||
|
|
b4770c1497 | ||
|
|
cef393473f | ||
|
|
6fb14d5544 | ||
|
|
2e46ba79cf | ||
|
|
6153beced6 | ||
|
|
90006dfd2a | ||
|
|
98b555fa7e | ||
|
|
0bdb66742b | ||
|
|
f3e8cdd5e0 | ||
|
|
962c3c78d0 | ||
|
|
04805675dd | ||
|
|
4028df0886 | ||
|
|
126e91411a | ||
|
|
24ffd70394 | ||
|
|
8c8b36f0d5 | ||
|
|
38c595ebce | ||
|
|
66a6aece7c | ||
|
|
35ce79a421 | ||
|
|
8e8da15254 | ||
|
|
eea358c4e1 | ||
|
|
ecfd50f05b | ||
|
|
7458cf51dc | ||
|
|
3b0af110d2 | ||
|
|
576b4f7c73 | ||
|
|
91da72e8b4 | ||
|
|
6319d6fbd0 | ||
|
|
a5321ebde3 | ||
|
|
74ca01f978 | ||
|
|
b7ac038ace | ||
|
|
1a2caf120b | ||
|
|
377bbabb02 | ||
|
|
a4c6f0a1e2 | ||
|
|
802f04bbe6 | ||
|
|
f7db1280cf | ||
|
|
0477887d68 | ||
|
|
0941c23a3c | ||
|
|
d44c184025 | ||
|
|
73975a5d83 | ||
|
|
7f9ee1f907 | ||
|
|
9537349664 | ||
|
|
8793c9a9c9 | ||
|
|
4d57b43912 | ||
|
|
ee146b8ed9 | ||
|
|
85b8c7057d | ||
|
|
763ecf22b0 | ||
|
|
281e4abec7 | ||
|
|
2beb084b67 | ||
|
|
f7ca622906 | ||
|
|
424d9944ad | ||
|
|
8af41b91b5 | ||
|
|
347efa75fe | ||
|
|
9e38815475 | ||
|
|
88643d366d | ||
|
|
84f950ade4 | ||
|
|
a0111d8b69 | ||
|
|
f355cb9f76 | ||
|
|
e42576b005 | ||
|
|
f68198475e | ||
|
|
896ae20dce | ||
|
|
b8fdc5424d | ||
|
|
204c3eacc1 | ||
|
|
4d0f21e10b | ||
|
|
d3202e8607 | ||
|
|
a438eb704f | ||
|
|
1569de4475 | ||
|
|
0f022f8295 | ||
|
|
75c21a5129 | ||
|
|
5092d43e8e | ||
|
|
56d5d5e956 | ||
|
|
70eca3293b | ||
|
|
4f7ee54ef7 | ||
|
|
269df9586d | ||
|
|
3152c18840 | ||
|
|
52630596b8 | ||
|
|
7e184b8be0 | ||
|
|
877ba9408d | ||
|
|
8dc9a6b46d | ||
|
|
b3e439669b | ||
|
|
08c909fbe2 | ||
|
|
a44e2e9866 | ||
|
|
bae2f253bc | ||
|
|
d485a463dd | ||
|
|
3da1ed4d6c | ||
|
|
051e9ec74a | ||
|
|
486171f4db | ||
|
|
72de42a9ab | ||
|
|
404e6625c0 | ||
|
|
32e4bf3fd2 | ||
|
|
0d1088fefb | ||
|
|
1a17d607fb | ||
|
|
dcda627518 | ||
|
|
c130da7f0e | ||
|
|
e2df4d35b8 | ||
|
|
7739dbd0a3 | ||
|
|
9b7aa13d61 | ||
|
|
84ecaec5d3 | ||
|
|
01a5f1bd47 | ||
|
|
de0433ca02 | ||
|
|
cf76ae7136 | ||
|
|
ea21636c4e | ||
|
|
dafa834d28 | ||
|
|
f1a1c78588 | ||
|
|
14d16e5daf | ||
|
|
b52c1fc2d9 | ||
|
|
f45b24f7ab | ||
|
|
6ae175e5e0 | ||
|
|
0df27c38a1 | ||
|
|
e27cc3f6ed | ||
|
|
968c3957d0 | ||
|
|
577d2323a8 | ||
|
|
625c6cc649 | ||
|
|
9bc753b512 | ||
|
|
fb34e6ce2f | ||
|
|
f882ea29e2 | ||
|
|
62f68f1f10 | ||
|
|
8c9a41d72b |
No files matched your search
@@ -0,0 +1,38 @@
|
|||||||
|
name: 🐞 Bug Report
|
||||||
|
description: BlitzKit is not behaving as expected.
|
||||||
|
labels: ["bug"]
|
||||||
|
type: bug
|
||||||
|
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: Thank you so much for reporting an issue! Please fill out the form below in its entirety and we'll address your issue as soon as possible.
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
attributes:
|
||||||
|
label: What happened?
|
||||||
|
description: What about BlitzKit's behavior did you find unexpected?
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: How do you reproduce the issue?
|
||||||
|
description: What steps one must follow to recreate your issue?
|
||||||
|
|
||||||
|
- type: dropdown
|
||||||
|
attributes:
|
||||||
|
label: Branch
|
||||||
|
description: What branch of BlitzKit were you using? Please see the "Branch" section of the footer at the very bottom of any page.
|
||||||
|
options:
|
||||||
|
- Production
|
||||||
|
- Preview
|
||||||
|
- OpenTest
|
||||||
|
default: 0
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
attributes:
|
||||||
|
label: Discord username
|
||||||
|
description: Do you have a Discord account that we can reach out to for further information?
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
blank_issues_enabled: false
|
||||||
|
|
||||||
|
contact_links:
|
||||||
|
- name: 🎮 Discord Server
|
||||||
|
about: Got questions? We answer better on Discord!
|
||||||
|
url: https://discord.gg/nDt7AjGJQH
|
||||||
|
|
||||||
|
- name: ✉️ Email
|
||||||
|
about: Reach out to BlitzKit formally through email.
|
||||||
|
url: https://blitzkit.app/contact
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
name: 💡 Feature Request
|
||||||
|
description: BlitzKit could use a new idea.
|
||||||
|
labels: ["enhancement"]
|
||||||
|
type: feature
|
||||||
|
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: Thank you so much for pitching in an idea!
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
attributes:
|
||||||
|
label: What's your idea?
|
||||||
|
description: Please be descriptive and feel free to add drawings/screenshots if needed.
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "bun"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "daily"
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
name: Discover IDs
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: production
|
||||||
|
|
||||||
|
schedule:
|
||||||
|
- cron: 0 */6 * * *
|
||||||
|
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
discover:
|
||||||
|
name: Discover IDs
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
ref: production
|
||||||
|
submodules: recursive
|
||||||
|
token: ${{ secrets.GH_TOKEN }}
|
||||||
|
|
||||||
|
- name: Setup bun
|
||||||
|
uses: oven-sh/setup-bun@v2
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: bun install
|
||||||
|
|
||||||
|
- name: Setup Git
|
||||||
|
run: |
|
||||||
|
git config --global user.name "github-actions[bot]"
|
||||||
|
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
|
|
||||||
|
- name: Discover IDs
|
||||||
|
run: bun run discover-ids
|
||||||
|
env:
|
||||||
|
PUBLIC_WARGAMING_APPLICATION_ID: ${{ secrets.PUBLIC_WARGAMING_APPLICATION_ID }}
|
||||||
|
GH_TOKEN: ${{ secrets.IDS_TOKEN }}
|
||||||
@@ -3,18 +3,30 @@ name: Website
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
||||||
|
pull_request:
|
||||||
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 4 * * *"
|
- cron: "0 4 * * *"
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
branch:
|
||||||
|
description: Branch
|
||||||
|
|
||||||
|
type: choice
|
||||||
|
required: true
|
||||||
|
default: production
|
||||||
|
|
||||||
|
options:
|
||||||
|
- production
|
||||||
|
- main
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
description: Environment
|
description: Environment
|
||||||
|
|
||||||
required: true
|
|
||||||
# default: production
|
|
||||||
default: beta
|
|
||||||
type: choice
|
type: choice
|
||||||
|
required: true
|
||||||
|
default: production
|
||||||
|
|
||||||
options:
|
options:
|
||||||
- development
|
- development
|
||||||
@@ -23,16 +35,42 @@ on:
|
|||||||
- preview
|
- preview
|
||||||
- opentest
|
- opentest
|
||||||
|
|
||||||
|
client_provider:
|
||||||
|
description: Client provider
|
||||||
|
|
||||||
|
type: choice
|
||||||
|
required: true
|
||||||
|
default: steam
|
||||||
|
|
||||||
|
options:
|
||||||
|
- steam
|
||||||
|
- zip
|
||||||
|
- wgpkg
|
||||||
|
|
||||||
|
client_source:
|
||||||
|
description: Client source
|
||||||
|
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
default: 444200/windows
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ inputs.environment || github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
# client
|
||||||
|
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
|
||||||
|
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}
|
||||||
|
CLIENT_PROVIDER: ${{ inputs.client_provider || 'steam' }}
|
||||||
|
CLIENT_SOURCE: ${{ inputs.client_source || '444200/windows' }}
|
||||||
|
CLIENT_DIR: ../../temp/game
|
||||||
|
|
||||||
# blitzkit
|
# blitzkit
|
||||||
PUBLIC_ENVIRONMENT: ${{ inputs.environment || 'beta' }}
|
PUBLIC_ENVIRONMENT: ${{ inputs.environment || 'production' }}
|
||||||
PUBLIC_PROMOTE_OPENTEST: false
|
PUBLIC_PROMOTE_OPENTEST: false
|
||||||
PUBLIC_STATIC_ASSET_BASE: https://assets.blitzkit.app
|
PUBLIC_STATIC_ASSET_BASE: https://assets.blitzkit.app
|
||||||
PUBLIC_GUIDE_WEBSITE: https://guidesblitz.com
|
PUBLIC_GUIDE_WEBSITE: https://guidesblitz.com
|
||||||
@@ -41,7 +79,6 @@ env:
|
|||||||
WOTB_GLOSSARY: ${{ secrets.WOTB_GLOSSARY }}
|
WOTB_GLOSSARY: ${{ secrets.WOTB_GLOSSARY }}
|
||||||
WOTB_GLOSSARY_DOMAIN: ${{ secrets.WOTB_GLOSSARY_DOMAIN }}
|
WOTB_GLOSSARY_DOMAIN: ${{ secrets.WOTB_GLOSSARY_DOMAIN }}
|
||||||
WOTB_GLOSSARY_PATH: ${{ secrets.WOTB_GLOSSARY_PATH }}
|
WOTB_GLOSSARY_PATH: ${{ secrets.WOTB_GLOSSARY_PATH }}
|
||||||
GAME_DIR: ../../temp/game
|
|
||||||
|
|
||||||
# google
|
# google
|
||||||
PUBLIC_GOOGLE_TAG_MANAGER_ID: ${{ secrets.PUBLIC_GOOGLE_TAG_MANAGER_ID }}
|
PUBLIC_GOOGLE_TAG_MANAGER_ID: ${{ secrets.PUBLIC_GOOGLE_TAG_MANAGER_ID }}
|
||||||
@@ -49,12 +86,6 @@ env:
|
|||||||
# wargaming
|
# wargaming
|
||||||
PUBLIC_WARGAMING_APPLICATION_ID: ${{ secrets.PUBLIC_WARGAMING_APPLICATION_ID }}
|
PUBLIC_WARGAMING_APPLICATION_ID: ${{ secrets.PUBLIC_WARGAMING_APPLICATION_ID }}
|
||||||
|
|
||||||
# steam
|
|
||||||
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
|
|
||||||
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}
|
|
||||||
STEAM_APP: 444200
|
|
||||||
STEAM_OS: windows
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build website
|
name: Build website
|
||||||
@@ -62,9 +93,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
chunk: [default, api]
|
chunk: [default, api, models_tanks, models_legendary, models_maps]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Free disk space
|
- name: Free disk space
|
||||||
@@ -73,6 +104,8 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
|
# the PR's ref, or the manual input, or production (selected when cron)
|
||||||
|
ref: ${{ github.event.pull_request.head.sha || inputs.branch || 'production' }}
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
token: ${{ secrets.GH_TOKEN }}
|
token: ${{ secrets.GH_TOKEN }}
|
||||||
|
|
||||||
@@ -84,44 +117,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GH_TOKEN }}
|
repo-token: ${{ secrets.GH_TOKEN }}
|
||||||
|
|
||||||
- name: Configure pages
|
- name: Setup CLIs
|
||||||
uses: actions/configure-pages@v6
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y aria2 libarchive-tools
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install
|
run: bun install
|
||||||
|
|
||||||
- name: Setup DepotDownloader
|
- name: Download Client
|
||||||
run: |
|
run: bun run download-client
|
||||||
REPO_USER="SteamRE"
|
|
||||||
REPO_NAME="DepotDownloader"
|
|
||||||
TEMP="temp"
|
|
||||||
|
|
||||||
OUT="$TEMP/$REPO_NAME"
|
|
||||||
ZIP="$TEMP/$REPO_NAME.zip"
|
|
||||||
|
|
||||||
URL=$(
|
|
||||||
curl -s "https://api.github.com/repos/$REPO_USER/$REPO_NAME/releases/latest" \
|
|
||||||
| jq -r '.assets[]
|
|
||||||
| select(.name | contains("linux-x64"))
|
|
||||||
| .browser_download_url' \
|
|
||||||
| head -n 1
|
|
||||||
)
|
|
||||||
|
|
||||||
mkdir -p "$TEMP"
|
|
||||||
curl -L "$URL" -o "$ZIP"
|
|
||||||
unzip -p "$ZIP" "$REPO_NAME" > "$OUT"
|
|
||||||
rm "$ZIP"
|
|
||||||
|
|
||||||
chmod +x "$OUT"
|
|
||||||
|
|
||||||
- name: Download game
|
|
||||||
run: |
|
|
||||||
TEMP="temp"
|
|
||||||
|
|
||||||
DEPOT_DOWNLOADER="$TEMP/DepotDownloader"
|
|
||||||
GAME="$TEMP/game"
|
|
||||||
|
|
||||||
$DEPOT_DOWNLOADER -os $STEAM_OS -app $STEAM_APP -username $STEAM_USERNAME -password $STEAM_PASSWORD -dir $GAME -max-downloads 256
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: bun run --bun build
|
run: bun run --bun build
|
||||||
@@ -137,7 +142,16 @@ jobs:
|
|||||||
|
|
||||||
- name: Trigger deployment
|
- name: Trigger deployment
|
||||||
|
|
||||||
if: github.ref_name == 'production' || github.ref_name == 'infrastructure'
|
# workflow should trigger if:
|
||||||
|
# - is by cron and is on main: triggering to production
|
||||||
|
# - is by push and is on production: triggering to production
|
||||||
|
# - is by manual and is on anything: triggering to anything
|
||||||
|
if: >-
|
||||||
|
${{
|
||||||
|
(github.event_name == 'schedule' && github.ref == 'refs/heads/main')
|
||||||
|
|| (github.event_name == 'push' && github.ref == 'refs/heads/production')
|
||||||
|
|| (github.event_name == 'workflow_dispatch')
|
||||||
|
}}
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TOKEN: ${{ secrets.GH_NODE_DEPLOY_TOKEN }}
|
TOKEN: ${{ secrets.GH_NODE_DEPLOY_TOKEN }}
|
||||||
@@ -0,0 +1,661 @@
|
|||||||
|
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 19 November 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU Affero General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works, specifically designed to ensure
|
||||||
|
cooperation with the community in the case of network server software.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
our General Public Licenses are intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
Developers that use our General Public Licenses protect your rights
|
||||||
|
with two steps: (1) assert copyright on the software, and (2) offer
|
||||||
|
you this License which gives you legal permission to copy, distribute
|
||||||
|
and/or modify the software.
|
||||||
|
|
||||||
|
A secondary benefit of defending all users' freedom is that
|
||||||
|
improvements made in alternate versions of the program, if they
|
||||||
|
receive widespread use, become available for other developers to
|
||||||
|
incorporate. Many developers of free software are heartened and
|
||||||
|
encouraged by the resulting cooperation. However, in the case of
|
||||||
|
software used on network servers, this result may fail to come about.
|
||||||
|
The GNU General Public License permits making a modified version and
|
||||||
|
letting the public access it on a server without ever releasing its
|
||||||
|
source code to the public.
|
||||||
|
|
||||||
|
The GNU Affero General Public License is designed specifically to
|
||||||
|
ensure that, in such cases, the modified source code becomes available
|
||||||
|
to the community. It requires the operator of a network server to
|
||||||
|
provide the source code of the modified version running there to the
|
||||||
|
users of that server. Therefore, public use of a modified version, on
|
||||||
|
a publicly accessible server, gives the public access to the source
|
||||||
|
code of the modified version.
|
||||||
|
|
||||||
|
An older license, called the Affero General Public License and
|
||||||
|
published by Affero, was designed to accomplish similar goals. This is
|
||||||
|
a different license, not a version of the Affero GPL, but Affero has
|
||||||
|
released a new version of the Affero GPL which permits relicensing under
|
||||||
|
this license.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU Affero General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Remote Network Interaction; Use with the GNU General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, if you modify the
|
||||||
|
Program, your modified version must prominently offer all users
|
||||||
|
interacting with it remotely through a computer network (if your version
|
||||||
|
supports such interaction) an opportunity to receive the Corresponding
|
||||||
|
Source of your version by providing access to the Corresponding Source
|
||||||
|
from a network server at no charge, through some standard or customary
|
||||||
|
means of facilitating copying of software. This Corresponding Source
|
||||||
|
shall include the Corresponding Source for any work covered by version 3
|
||||||
|
of the GNU General Public License that is incorporated pursuant to the
|
||||||
|
following paragraph.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the work with which it is combined will remain governed by version
|
||||||
|
3 of the GNU General Public License.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU Affero General Public License from time to time. Such new versions
|
||||||
|
will be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU Affero General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU Affero General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU Affero General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU Affero General Public License as published
|
||||||
|
by the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU Affero General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Affero General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If your software can interact with users remotely through a computer
|
||||||
|
network, you should also make sure that it provides a way for users to
|
||||||
|
get its source. For example, if your program is a web application, its
|
||||||
|
interface could display a "Source" link that leads users to an archive
|
||||||
|
of the code. There are many ways you could offer source, and different
|
||||||
|
solutions will be better for different programs; see section 13 for the
|
||||||
|
specific requirements.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU AGPL, see
|
||||||
|
<https://www.gnu.org/licenses/>.
|
||||||
-50
@@ -1,50 +0,0 @@
|
|||||||
# BlitzKit License
|
|
||||||
|
|
||||||
Version 1.1, August 5th, 2025. Copyright (c) TrèsAbhi.
|
|
||||||
|
|
||||||
Permission is hereby granted to anyone to:
|
|
||||||
|
|
||||||
- Fork, clone, and download the contents of this repository.
|
|
||||||
- Modify the code locally in private.
|
|
||||||
- Use and run the code **only for personal, non-public testing, or educational purposes**.
|
|
||||||
|
|
||||||
The following restrictions apply:
|
|
||||||
|
|
||||||
- You may **not** deploy, host, or make this project or any derivative publicly accessible.
|
|
||||||
- You may **not** share screenshots, recordings, or any form of media from this project unless you intend to merge your changes back into BlitzKit.
|
|
||||||
- You may **not** use this project or its contents in any public or commercial product.
|
|
||||||
- You may **not** redistribute modified or unmodified versions of this project.
|
|
||||||
|
|
||||||
Contributions:
|
|
||||||
|
|
||||||
- You are encouraged to propose changes or improvements via pull requests to the original BlitzKit repository.
|
|
||||||
- Any such contributions will be considered under the same license terms unless explicitly stated otherwise.
|
|
||||||
|
|
||||||
Violations of this license may result in revocation of usage rights and takedown requests.
|
|
||||||
|
|
||||||
For questions or licensing inquiries, contact support@blitzkit.app.
|
|
||||||
|
|
||||||
## Notes on Existing Forks
|
|
||||||
|
|
||||||
All forks fall under these categories:
|
|
||||||
|
|
||||||
- If your fork was made from commit `8462901` (Apr 17, 2023) or between commits `2958124` (Jul 3, 2023) and `85e483e` (Jul 13, 2024), your fork falls under the **MIT license**.
|
|
||||||
- If your fork was made from commits between `5646093` (Jul 13, 2024) and `e3f131c` (Aug 5, 2025), your fork falls under the **AGPL-3.0 license**.
|
|
||||||
- If your fork was made between commit `f7c356d` (Apr 17, 2023) and `2958124` (Jul 3, 2023), your fork falls under **a default exclusive copyright**.
|
|
||||||
- If your fork was made from commits between `e3f131c` (Aug 5, 2025) and today, your fork falls under **this license**.
|
|
||||||
|
|
||||||
MIT and AGPL-3.0 licensed fork owners:
|
|
||||||
|
|
||||||
- You may continue to use your fork of BlitzKit under the corresponding license.
|
|
||||||
- You may upgrade your fork up to commit `5cab394` (Aug 4, 2025) and keep the AGPL-3.0 license.
|
|
||||||
- You may upgrade to commit `e3f131c` (Aug 5, 2025) or beyond but have to **switch to this license** where all rules apply.
|
|
||||||
- If you upgrade to commit `e3f131c` (Aug 5, 2025) or beyond, you must retract all public deployments of BlitzKit.
|
|
||||||
- Existing screenshots, recordings, or any form of media can remain.
|
|
||||||
|
|
||||||
Default exclusive copyright fork owners:
|
|
||||||
|
|
||||||
- You may continue to use their forks under the AGPL-3.0 license as no license was applied to BlitzKit at the time of forking.
|
|
||||||
|
|
||||||
BlitzKit licensed fork owners:
|
|
||||||
|
|
||||||
- You may continue to upgrade to the latest commits only under the conditions of this license.
|
|
||||||
@@ -1,42 +1,75 @@
|
|||||||
# BlitzKit
|
# BlitzKit
|
||||||
|
|
||||||
Tools for everything and anything, World of Tanks Blitz.
|
Your Blitz experience, elevated. https://blitzkit.app/.
|
||||||
|
|
||||||
This GitHub repository contains the code for BlitzKit and all its services. If you are here, looking to use BlitzKit, go to https://blitzkit.app/.
|
## Developing: Prerequisites
|
||||||
|
|
||||||
If you intend to contribute to the code, note that you may need to check out sensitive, closed-source submodules to locally develop certain aspects of BlitzKit. Communicate with `@tresabhi` on Discord to get started or discuss sensitive content, such as environment variables or submodules.
|
There's a few things you'll need to get started. If this is your first time working with BlitzKit, it's completely safe to ignore all optional prerequisites below to get things running as quickly as possible.
|
||||||
|
|
||||||
## Packages
|
### Bun
|
||||||
|
|
||||||
| Package | Title | Source | Memo |
|
[Bun](https://bun.sh/) is the package manager and runtime that BlitzKit uses.
|
||||||
| ------------------------------------ | -------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
|
|
||||||
| [packages/core](packages/core) | | | Mutual internal code shared between all other packages. |
|
|
||||||
| [packages/i18n](packages/i18n) | | [Crowdin](https://crowdin.com/project/blitzkrieg) | Translations served as JSON shared across all other packages, including some utility code. |
|
|
||||||
| [packages/scripts](packages/scripts) | | | CLI utilities for the development and deployment of BlitzKit services. |
|
|
||||||
| [packages/varuna](packages/varuna) | Varuna | [NPM](https://www.npmjs.com/package/varuna) | React and Astro-oriented state management library, awaiting separation from BlitzKit. Unavailable from NPM at this time. |
|
|
||||||
| [packages/website](packages/website) | BlitzKit | https://blitzkit.app | The BlitzKit website provides a wide range of tools, APIs, and interconnects all other services. |
|
|
||||||
|
|
||||||
## Submodules
|
Ideally, you should also uninstall Node.js if you have it installed to avoid any cases where Node.js is used to run code instead of Bun which happens in some cases. But, this is not required and is unlikely to cause issues.
|
||||||
|
|
||||||
| Submodule | Title | Source | Memo |
|
### Protocol Buffer
|
||||||
| ------------------------------------------------------ | --------- | ----------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
||||||
| [submodules/blitzkit-closed](packages/blitzkit-closed) | ClosedKit | [blitzkit/closed](https://github.com/blitzkit/closed) | Closed source, sensitive code hidden from the public to prevent bad actors from abusing the game. Discuss with `@tresabhi` on Discord for **special permission** to access. |
|
|
||||||
|
|
||||||
## Environment Variables
|
BlitzKit uses [Protocol Buffer's protoc CLI](https://protobuf.dev/installation/) to generate efficiently packed data structures to serve data to clients in place of JSON.
|
||||||
|
|
||||||
| Name | Source | BlitzKit Default | Memo |
|
### World of Tanks Blitz
|
||||||
| ------------------------------------------------------------- | -------------------------------------------------------------------------------- | ----------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
|
|
||||||
| `PUBLIC_WARGAMING_APPLICATION_ID` | [Wargaming Developer's Room](https://developers.wargaming.net/) | | Application ID needed to communicate with Wargaming APIs. |
|
You will need a local installation of [World of Tanks Blitz](https://wotblitz.com/) for BlitzKit to build off.
|
||||||
| `PUBLIC_PROMOTE_OPENTEST` | | `false` | Optional boolean dictating whether the website advertises [the opentest subdomain of BlitzKit](https://opentest.blitzkit.app/). |
|
|
||||||
| `ALLOW_ROBOTS` | | `true` | Toggles between `Allow: /` and `Disallow: /` in the website's `/robots.txt`. This is usually `false` for all BlitzKit's subdomains. |
|
### aria2 (Optional)
|
||||||
| `WOTB_GLOSSARY`, `WOTB_GLOSSARY_DOMAIN`, `WOTB_GLOSSARY_PATH` | | | |
|
|
||||||
| `PUBLIC_GOOGLE_TAG_MANAGER_ID` | [Google Tag Manager](https://tagmanager.google.com/) | `G-GL2JVHCGPQ` | Google Tag Manager's unique identifier for analytical purposes. |
|
If you plan to use BlitzKit's client-management CLI for BlitzKit Previews, you will need to [get aria2](https://aria2.github.io/) to speed up your downloads.
|
||||||
| `PUBLIC_GOOGLE_ANALYTICS_PROPERTY_ID` | [Google Analytics](https://analytics.google.com/) | `430711767` | Google Analytics' unique property ID for [BlitzKit's apex domain](https://blitzkit.app/) and subdomains. |
|
|
||||||
| `GOOGLE_APPLICATION_CREDENTIALS` | [Google Cloud](https://cloud.google.com/) | | Google Cloud's API key, primarily used for ranking popular tanks and finding relevant tank review videos in Tankopedia. |
|
### libarchive (Optional)
|
||||||
| `PUBLIC_DISCORD_SERVER_ID` | [BlitzKit Discord Server](https://discord.gg/nDt7AjGJQH) | `734786591205359697` | BlitzKit Discord Server's id. |
|
|
||||||
| `PUBLIC_ASSET_BASE` | [blitzkit/assets](https://github.com/blitzkit/assets) | `https://blitzkit.github.io/assets` | The root domain and path that serves the external assets like tank models and icons. |
|
If you plan to use BlitzKit's client-management CLI for BlitzKit OpenTests, you will need to [get libarchive](https://www.libarchive.org/) to keep your downloads completely in-memory.
|
||||||
| `PUBLIC_GUIDE_WEBSITE` | [GuidesBlitz](https://guidesblitz.com/) | `https://guidesblitz.com` | The website that serves the encyclopedia-like content in BlitzKit. |
|
|
||||||
| `SERVICING` | | `false` | Wether the website is down for servicing. |
|
### Linux (Optional)
|
||||||
| `GH_TOKEN` | [GitHub Fine-Grained Tokens](https://github.com/settings/personal-access-tokens) | | The GitHub API key used for checking out private submodules and pushing content to the asset repository. |
|
|
||||||
| `DATABASE_URL` | [CockroachDB](https://www.cockroachlabs.com/) | | The CockroachDB-SQL database URL used to link Wargaming and Discord users. |
|
All work on BlitzKit is done on Linux and macOS. It is theoretically possible to work on Windows; please feel free to try and share your discoveries with us!
|
||||||
| `WOTB_DLC_CDN` | | | |
|
|
||||||
|
## Developing: Setting Up
|
||||||
|
|
||||||
|
Start by cloning the repository and changing directories.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/blitzkit/blitzkit.git
|
||||||
|
cd blitzkit
|
||||||
|
```
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> There is a closed source submodule under `packages/closed` that you can safely ignore. This sole purpose of this submodule is to provide `dvp.ts`, a proprietary Wargaming game asset tree compression tool. You will not need this at any point.
|
||||||
|
|
||||||
|
Then, download the dependencies with Bun.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
bun install
|
||||||
|
```
|
||||||
|
|
||||||
|
Finally, compile the proto files into TypeScript.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
build build-protos
|
||||||
|
```
|
||||||
|
|
||||||
|
## Developing: Environment
|
||||||
|
|
||||||
|
Go through the different packages in the `packages` directory and clone their respective `template.env`'s to `.env` files. Follow the instructions in the `.env` files to fill them out as much as you can.
|
||||||
|
|
||||||
|
## Developing: Running
|
||||||
|
|
||||||
|
Launching the website is as easy as running the `dev` script.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
bun dev
|
||||||
|
```
|
||||||
|
|
||||||
|
If you ever make a change to any proto file, make sure to rebuild them.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
build build-protos
|
||||||
|
```
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
"@octokit/plugin-throttling": "^11.0.1",
|
"@octokit/plugin-throttling": "^11.0.1",
|
||||||
"@octokit/rest": "^22.0.0",
|
"@octokit/rest": "^22.0.0",
|
||||||
"@types/adm-zip": "^0.5.7",
|
"@types/adm-zip": "^0.5.7",
|
||||||
"@types/bun": "^1.3.1",
|
"@types/bun": "^1.3.14",
|
||||||
"@types/lodash-es": "^4.17.12",
|
"@types/lodash-es": "^4.17.12",
|
||||||
"@types/lz4js": "^0.2.1",
|
"@types/lz4js": "^0.2.1",
|
||||||
"@types/three": "^0.180.0",
|
"@types/three": "^0.180.0",
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"words": [
|
"words": [
|
||||||
"gamemodes",
|
"gamemodes",
|
||||||
"Tankopedia"
|
"Tankopedia"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,47 +0,0 @@
|
|||||||
# BlitzKit Credits
|
|
||||||
|
|
||||||
BlitzKit is a one man band **TrèsAbhi** but I am far from solo. Helpers, in the order of contribution over time:
|
|
||||||
|
|
||||||
### S0AP
|
|
||||||
|
|
||||||
BlitzKit Discord bot verification, testing, advertisement, and the initial encouragement to create BlitzKit.
|
|
||||||
|
|
||||||
### Prince_NA
|
|
||||||
|
|
||||||
BlitzKit Discord bot and website testing and general advise.
|
|
||||||
|
|
||||||
### Vovko
|
|
||||||
|
|
||||||
BlitzKit Discord bot and website rendering pipeline.
|
|
||||||
|
|
||||||
### Maddox
|
|
||||||
|
|
||||||
Game file decompression.
|
|
||||||
|
|
||||||
### Pyogenics
|
|
||||||
|
|
||||||
Game 3D model parsing.
|
|
||||||
|
|
||||||
### Aeson
|
|
||||||
|
|
||||||
Game file layout, general advise, advertisement, and Tankopedia pre-release testing.
|
|
||||||
|
|
||||||
### Minitelrose, ChickenMan7777
|
|
||||||
|
|
||||||
3-caliber rule edge cases.
|
|
||||||
|
|
||||||
### HisRoyalFatness, Synx
|
|
||||||
|
|
||||||
Embed UX.
|
|
||||||
|
|
||||||
### [OPTML] clan, \_34, xkdkw, Droodles Blitz
|
|
||||||
|
|
||||||
Tankopedia pre-release testing.
|
|
||||||
|
|
||||||
### GonnaHetzMe
|
|
||||||
|
|
||||||
Redacted by request.
|
|
||||||
|
|
||||||
### Mark Greene
|
|
||||||
|
|
||||||
GitHub contributor on bug fixes and feature additions.
|
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
# BlitzKit 1.29.10
|
# BlitzKit 1.29.10
|
||||||
|
|
||||||
Thank you to [Mark Greene](https://github.com/Hitjack007) for your contributions this update.
|
Thank you to [HitJack](https://github.com/Hitjack007) for your contributions this update.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Combined game mode passive and active abilities into a single dropdown
|
- Combined game mode passive and active abilities into a single dropdown
|
||||||
- [Mark Greene] Added tier filters to the Guess game
|
- Added tier filters to the Guess game [HitJack]
|
||||||
- Changing tiers will break your streak
|
- Changing tiers will break your streak
|
||||||
|
|
||||||
## Fixes
|
## Fixes
|
||||||
|
|
||||||
- [Mark Greene] module damage is now properly shown when sorting with it in the tank search
|
- module damage is now properly shown when sorting with it in the tank search [HitJack]
|
||||||
- Duplicate abilities in the tank filters are now removed
|
- Duplicate abilities in the tank filters are now removed
|
||||||
@@ -4,7 +4,7 @@ Thank you to [GonnaHetzMe](https://github.com/karelpak1) for your contributions
|
|||||||
|
|
||||||
## Fixes
|
## Fixes
|
||||||
|
|
||||||
- [GonnaHetzMe] The turret for Centurion I is no longer offset from the body
|
- The turret for Centurion I is no longer offset from the body [GonnaHetzMe]
|
||||||
- Please allow up to 24 hours for the model to update
|
- Please allow up to 24 hours for the model to update
|
||||||
- Vertical Stabilizers now give the correct 12% buff instead of 15%
|
- Vertical Stabilizers now give the correct 12% buff instead of 15%
|
||||||
- Re-ordering tanks in Compare now works once again
|
- Re-ordering tanks in Compare now works once again
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# BlitzKit 1.29.8
|
# BlitzKit 1.29.8
|
||||||
|
|
||||||
Thank you to [Mark Greene](https://github.com/Hitjack007) for your contributions this update.
|
Thank you to [HitJack](https://github.com/Hitjack007) for your contributions this update.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
@@ -15,5 +15,5 @@ Thank you to [Mark Greene](https://github.com/Hitjack007) for your contributions
|
|||||||
## Fixes
|
## Fixes
|
||||||
|
|
||||||
- The Tankopedia now smoothly resizes when enlarging on interaction
|
- The Tankopedia now smoothly resizes when enlarging on interaction
|
||||||
- [Mark Greene] Stock turrets now correctly mount the corresponding stock gun
|
- Stock turrets now correctly mount the corresponding stock gun [HitJack]
|
||||||
- The consumable and provision buttons in Compare are no longer tiny
|
- The consumable and provision buttons in Compare are no longer tiny
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
# BlitzKit 1.29.9
|
# BlitzKit 1.29.9
|
||||||
|
|
||||||
Thank you to [Mark Greene](https://github.com/Hitjack007) for your contributions this update.
|
Thank you to [HitJack](https://github.com/Hitjack007) for your contributions this update.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Reworked tank search filters to be far more compact to make way for new filters
|
- Reworked tank search filters to be far more compact to make way for new filters
|
||||||
- [Mark Greene] Added the ability to filter tanks by consumables
|
- Added the ability to filter tanks by consumables [HitJack]
|
||||||
- Added the ability to filter tanks by provisions and game-mode abilities and powers
|
- Added the ability to filter tanks by provisions and game-mode abilities and powers
|
||||||
|
|
||||||
## Fixes
|
## Fixes
|
||||||
|
|
||||||
- Consumable and provision icons in Compare are now properly sized
|
- Consumable and provision icons in Compare are now properly sized
|
||||||
- [Mark Greene] Provisions now properly affect terrain resistances
|
- Provisions now properly affect terrain resistances [HitJack]
|
||||||
@@ -13,11 +13,11 @@ Thank you to [GonnaHetzMe](https://github.com/karelpak1) for your contributions
|
|||||||
|
|
||||||
## Technical Features
|
## Technical Features
|
||||||
|
|
||||||
- [GonnaHetzMe] Enabling dev mode now displays the tank's non-numerical id
|
- Enabling dev mode now displays the tank's non-numerical id [GonnaHetzMe]
|
||||||
- [GonnaHetzMe] The dev id and the new dev name are now copyable on click
|
- The dev id and the new dev name are now copyable on click [GonnaHetzMe]
|
||||||
|
|
||||||
## Fixes
|
## Fixes
|
||||||
|
|
||||||
- [GonnaHetzMe] Tech trees that start at tiers higher than tier 1 like the Blitz Nation ones now properly render their trees in Tankopedia
|
- Tech trees that start at tiers higher than tier 1 like the Blitz Nation ones now properly render their trees in Tankopedia [GonnaHetzMe]
|
||||||
- [GonnaHetzMe] The tank pitch/yaw inputs in the Tank Sandbox now initialize with the correct values instead of 0
|
- The tank pitch/yaw inputs in the Tank Sandbox now initialize with the correct values instead of 0 [GonnaHetzMe]
|
||||||
- [GonnaHetzMe] Large Repair Kits once again use the correct modern icon
|
- Large Repair Kits once again use the correct modern icon [GonnaHetzMe]
|
||||||
@@ -4,5 +4,5 @@ Thank you to [GonnaHetzMe](https://github.com/karelpak1) for your contributions
|
|||||||
|
|
||||||
## Fixes
|
## Fixes
|
||||||
|
|
||||||
- [GonnaHetzMe] Tank hit points in Equalizer mode is now accurate to the game
|
- Tank hit points in Equalizer mode is now accurate to the game [GonnaHetzMe]
|
||||||
- Armor highlighting now reflects the actual thicknesses of tanks in Equalizer mode
|
- Armor highlighting now reflects the actual thicknesses of tanks in Equalizer mode
|
||||||
@@ -4,9 +4,9 @@ Thank you to [GonnaHetzMe](https://github.com/karelpak1) for your contributions
|
|||||||
|
|
||||||
## Fixes
|
## Fixes
|
||||||
|
|
||||||
- [GonnaHetzMe] Tungsten shells are now properly cropped
|
- Tungsten shells are now properly cropped [GonnaHetzMe]
|
||||||
- Equalizer no longer gives insanely high penetration values
|
- Equalizer no longer gives insanely high penetration values
|
||||||
- The tank reveal animation no longer repeats when you scroll away and back to the tank sandbox
|
- The tank reveal animation no longer repeats when you scroll away and back to the tank sandbox
|
||||||
- [GonnaHetzMe] The RHM. Pzw.'s turret no longer has the floating plate
|
- The RHM. Pzw.'s turret no longer has the floating plate [GonnaHetzMe]
|
||||||
- Please give BlitzKit up to 1 hour to update the model
|
- Please give BlitzKit up to 1 hour to update the model
|
||||||
- [GonnaHetzMe] Tanks with inclined turret rings like the Minotauro now display the correct pitch in the tank sandbox inputs
|
- Tanks with inclined turret rings like the Minotauro now display the correct pitch in the tank sandbox inputs [GonnaHetzMe]
|
||||||
@@ -4,7 +4,7 @@ Thank you to [GonnaHetzMe](https://github.com/karelpak1) for your contributions
|
|||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- [GonnaHetzMe] Added tooltips to the module selector in Tankopedia
|
- Added tooltips to the module selector in Tankopedia [GonnaHetzMe]
|
||||||
|
|
||||||
## Fixes
|
## Fixes
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ Thank you to [GonnaHetzMe](https://github.com/karelpak1) for your contributions
|
|||||||
- Removed tank visual and collision model caching
|
- Removed tank visual and collision model caching
|
||||||
- Guesser once again breaks streaks if not all tiers are selected
|
- Guesser once again breaks streaks if not all tiers are selected
|
||||||
- BlitzKit now properly unloads tank models from memory when visually hidden in Guesser
|
- BlitzKit now properly unloads tank models from memory when visually hidden in Guesser
|
||||||
- [GonnaHetzMe] Tanks with complex transparency like the Herdbreaker once again handle opacity correctly
|
- Tanks with complex transparency like the Herdbreaker once again handle opacity correctly [GonnaHetzMe]
|
||||||
- [GonnaHetzMe] Pieces of tank models that have transparency now handle culling properly (they're visible from both sides)
|
- Pieces of tank models that have transparency now handle culling properly (they're visible from both sides) [GonnaHetzMe]
|
||||||
- [GonnaHetzMe] Tanks with "cardboard" textures have been fixed, thanks to better PVR file parsing
|
- Tanks with "cardboard" textures have been fixed, thanks to better PVR file parsing [GonnaHetzMe]
|
||||||
- [GonnaHetzMe] Tank icons are now scaled correctly so small tanks are now properly zoomed out in contrast to bigger ones
|
- Tank icons are now scaled correctly so small tanks are now properly zoomed out in contrast to bigger ones [GonnaHetzMe]
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# BlitzKit 1.30.7
|
# BlitzKit 1.30.7
|
||||||
|
|
||||||
Thank you to [Mark Greene](https://github.com/Hitjack007) for your contributions this update.
|
Thank you to [HitJack](https://github.com/Hitjack007) for your contributions this update.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
@@ -8,13 +8,13 @@ Thank you to [Mark Greene](https://github.com/Hitjack007) for your contributions
|
|||||||
|
|
||||||
## Fixes
|
## Fixes
|
||||||
|
|
||||||
- [Mark Greene] Clicking on the armor multiple times with HE no longer crashes BlitzKit
|
- Clicking on the armor multiple times with HE no longer crashes BlitzKit [HitJack]
|
||||||
- [Mark Greene] Ricochets that later intersect with external modules no longer falsely claim a successful damaging penetration
|
- Ricochets that later intersect with external modules no longer falsely claim a successful damaging penetration [HitJack]
|
||||||
- The lighting animation no longer stops prematurely when BlitzKit is unfocused
|
- The lighting animation no longer stops prematurely when BlitzKit is unfocused
|
||||||
- The spot light angle has been increased to more evenly light up larger tanks
|
- The spot light angle has been increased to more evenly light up larger tanks
|
||||||
- BlitzKit once again uses soft shadows, reducing the pixelated shadows
|
- BlitzKit once again uses soft shadows, reducing the pixelated shadows
|
||||||
- Fixed the weird patterns that formed on the tracks of tanks under self-shadows
|
- Fixed the weird patterns that formed on the tracks of tanks under self-shadows
|
||||||
- Increased the floor size and light decay to create the illusion that the floor is infinite
|
- Increased the floor size and light decay to create the illusion that the floor is infinite
|
||||||
- [Mark Greene] Safari no longer crashes when unloading textures for unloaded tanks
|
- Safari no longer crashes when unloading textures for unloaded tanks [HitJack]
|
||||||
- The gun depression transition between two constraints (like often behind tanks) now uses a gentler zoned and can never be 0
|
- The gun depression transition between two constraints (like often behind tanks) now uses a gentler zoned and can never be 0
|
||||||
- [Mark Greene] Armor plate names in Static Armor are now properly capitalized in English and translated to other languages
|
- Armor plate names in Static Armor are now properly capitalized in English and translated to other languages [HitJack]
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
# BlitzKit 1.31.0
|
||||||
|
|
||||||
|
This update massively upgrades BlitzKit's graphical fidelity (while making it faster) and updates the way BlitzKit deploys updates, speeding up future versions.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Improved the performance of the Tank Sandbox in Tankopedia
|
||||||
|
- Reduced the number of lights by 25%
|
||||||
|
- Reduced the resolution of shadows by 50%
|
||||||
|
- Improved the graphical fidelity of tanks in the Tankopedia
|
||||||
|
- Added soft contact shadows below tanks
|
||||||
|
- Added sky and ground reflected lighting to the top and bottom of tanks
|
||||||
|
- Removed the fog that used to darken tanks when zoomed far away
|
||||||
|
- Made BlitzKitLand™ fade out circularly to hide the sharp edges
|
||||||
|
- Pointed the lights 1.5m above the ground
|
||||||
|
- This genuinely makes BlitzKit almost photo-realistic in my opinion
|
||||||
|
- Non-PBR tanks are now lit up brighter to accommodate for their dark textures
|
||||||
|
|
||||||
|
## Fixes
|
||||||
|
|
||||||
|
- Fixed a bug where the ambient occlusion map (a measure of how dark a part of a tank gets due to low light bounces) was applied to the color of the tank directly, making many tanks appear dark even in direct light
|
||||||
|
- Tanks with chinese characters now generate urls through transliteration
|
||||||
|
|
||||||
|
## Known Issues
|
||||||
|
|
||||||
|
- The flags found behind the selected tank in the tech tree section of the Tankopedia is offset incorrectly
|
||||||
|
|
||||||
|
## Technical Features
|
||||||
|
|
||||||
|
- BlitzKit can now calculate and store performance statistics and account details for up 10,000,000,000 players
|
||||||
|
- This will help make the BlitzKit Performance tool more accurate, and play well with an upcoming, unannounced major feature
|
||||||
|
|
||||||
|
## Technical Changes
|
||||||
|
|
||||||
|
- The `production` branch now deploys updates to `blitzkit.app` instead of the `main` branch
|
||||||
|
- `robots.txt` now disables indexing of BlitzKit variants based on the environment
|
||||||
|
- The website is now compiled in "chunks" of which the `api` chunk now takes on the task of mangling what was previously stored in `assets3`
|
||||||
|
- `assets3` will be removed in `1.31.1`, please migrate to the new `api` if you use any BlitzKit assets
|
||||||
|
- Removed the `bot` and `app` packages
|
||||||
|
- Removed Prisma
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# BlitzKit 1.31.1
|
||||||
|
|
||||||
|
This update adds capabilities to release BlitzKit OpenTest and Preview.
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# BlitzKit 1.31.2
|
||||||
|
|
||||||
|
This update fixes an issue that occurred with Wargaming chose to declare the class of a tank in the game code with a tag that isn't the first in the list.
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# BlitzKit 1.31.3
|
||||||
|
|
||||||
|
This update updates BlitzKit to work with the game's new ID system for game modes.
|
||||||
@@ -0,0 +1,98 @@
|
|||||||
|
# BlitzKit 1.32.0
|
||||||
|
|
||||||
|
Thank you to [HitJack](https://github.com/Hitjack007) for your contributions this update.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### Tankopedia & Armor
|
||||||
|
|
||||||
|
- Added a spall liner button to the Tankopedia beside the other equipment [HitJack]
|
||||||
|
- Listed track repair times in the Tankopedia [HitJack]
|
||||||
|
- The penetration chance is now displayed when penetration testing armor [HitJack]
|
||||||
|
- Added a new setting to disable automatically loading tanks in Tankopedia [HitJack]
|
||||||
|
|
||||||
|
### Tank Performance & Mechanics
|
||||||
|
|
||||||
|
- Added Peekaboo DPM [HitJack]
|
||||||
|
- Your Peekaboo DPM is lower than your normal DPM if your reload is faster than 10s as you'll have to wait for the remaining 10s for you to get unspotted before you can poke and shoot
|
||||||
|
|
||||||
|
### Tank Filters
|
||||||
|
|
||||||
|
- The test and owned tank filters are now more intuitive as clicking on them now turns the clicked option on instead of off [HitJack]
|
||||||
|
|
||||||
|
### Game Compatibility
|
||||||
|
|
||||||
|
- Added compatibility for tier XI tanks [HitJack]
|
||||||
|
|
||||||
|
## Fixes
|
||||||
|
|
||||||
|
### Tankopedia & Armor
|
||||||
|
|
||||||
|
- The armor no longer disappears when you turn on Dynamic Armor System [HitJack]
|
||||||
|
- Camouflage values in Tankopedia are now more descriptive when shooting [HitJack]
|
||||||
|
- The penetration chance is now displayed when penetration testing armor [HitJack]
|
||||||
|
- Listed track repair times in the Tankopedia [HitJack]
|
||||||
|
- Added a spall liner button to the Tankopedia beside the other equipment [HitJack]
|
||||||
|
- The flags in the Tankopedia tech tree are no longer offset to the top left [HitJack]
|
||||||
|
- The loading bar below the name of the tanks in Tankopedia is now sufficiently spaced below [HitJack]
|
||||||
|
- Removed the vertical sliver of pixels found to the right of the Equalizer toggle in Tankopedia
|
||||||
|
|
||||||
|
### Tank Search & Filters
|
||||||
|
|
||||||
|
- The search bar no longer redirects to a seemingly random tank when clicking enter when searching [HitJack]
|
||||||
|
- Tank search now properly handles the full names of tanks like the Super Pershing [HitJack]
|
||||||
|
- The tank search now remains consistent in order even when an added filter does not add/remove tanks from the list [HitJack]
|
||||||
|
- The test and owned tank filters are now more intuitive as clicking on them now turns the clicked option on instead of off [HitJack]
|
||||||
|
|
||||||
|
### Visuals & UI
|
||||||
|
|
||||||
|
- Removed the Beta badge from the Equalizer button [HitJack]
|
||||||
|
- Updated the background image for the Equalizer button to the actual banner of the new game mode
|
||||||
|
- The contact shadows on the ground no longer grow & darken when switching between tabs [HitJack]
|
||||||
|
- Additionally, the contact shadows stays visible at low angles [HitJack]
|
||||||
|
- The "Help Translate BlitzKit" text on the home page is now properly centered vertically
|
||||||
|
- The footer now says "Branch" instead of "CDN" [HitJack]
|
||||||
|
- The game version in the footer now displays a shorthand version instead of the entire version number [HitJack]
|
||||||
|
- The reload visualizer now displays just 1 decimal place [HitJack]
|
||||||
|
- Plot controls for the Static armor tab no longer pokes in from the right on non-Static armor tabs in some languages [HitJack]
|
||||||
|
- Mixer's controllers now scale better on smaller screens [HitJack]
|
||||||
|
- The list of available tanks in the Playlist is no longer excessively wide [HitJack]
|
||||||
|
|
||||||
|
### Tank Mechanics & Models
|
||||||
|
|
||||||
|
- The gun depression visualizer now properly handles the inherent tilt of tanks like the Minotauro [HitJack]
|
||||||
|
- When moving the tracks of tanks, the textures no longer move at different rates [HitJack]
|
||||||
|
|
||||||
|
### Localization
|
||||||
|
|
||||||
|
- Users with a preference on a language are once again redirected to the correct localized pages [HitJack]
|
||||||
|
|
||||||
|
### Session & Game Compatibility
|
||||||
|
|
||||||
|
- BlitzKit Session now properly handles tanks removed from the game [HitJack]
|
||||||
|
|
||||||
|
## Technical Fixes
|
||||||
|
|
||||||
|
- BlitzKit now handles the new ID system for game-modes in WoTB
|
||||||
|
- The directory which preview versions of the game are downloaded to are now created properly
|
||||||
|
- This was the last bug standing in the way of BlitzKit Previews
|
||||||
|
- Welcome back, BlitzKit Previews!
|
||||||
|
- Removed some dead code from the BlitzKit model mangler
|
||||||
|
- The player discovery loop now persists for longer than 1 iteration [HitJack]
|
||||||
|
- Bun is now forced to run scripts with the `--bun` flag
|
||||||
|
|
||||||
|
## Technical Features
|
||||||
|
|
||||||
|
- Added documentation to the README on setting up and developing BlitzKit locally
|
||||||
|
- Added bug report and feature request forms to GitHub
|
||||||
|
- Switched to the GNU AGPLv3 license
|
||||||
|
|
||||||
|
## Technical Fixes
|
||||||
|
|
||||||
|
- BlitzKit now handles the new ID system for game-modes in WoTB
|
||||||
|
- The directory which preview versions of the game are downloaded to are now created properly
|
||||||
|
- This was the last bug standing in the way of BlitzKit Previews
|
||||||
|
- Welcome back, BlitzKit Previews!
|
||||||
|
- Removed some dead code from the BlitzKit model mangler
|
||||||
|
- The player discovery loop now persists for longer than 1 iteration [HitJack]
|
||||||
|
- Bun is now forced to run scripts with the `--bun` flag
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# Timezones
|
|
||||||
|
|
||||||
What is considered a "day's worth of games" is determined by the reset time. The reset time is generally at midnight everyday after which newer games are counted towards the next day. Reset times vary from region to region:
|
|
||||||
|
|
||||||
- North America: `UTC-5:00` (Central North American Time midnight)
|
|
||||||
- Europe: `UTC+1:00` (Central European Time midnight)
|
|
||||||
- Asia: `UTC+7:00` (Central Asia Standard Time midnight)
|
|
||||||
|
|
||||||
**Reset times are different from Blitz Stars** (Blitz Stars resets at 5:00 am locally relative to the user opening their website). Inconsistencies with Blitz Stars only occur with sleep-deprived players and players who play in the wrong region.
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
# Blitzkit Rating Leaderboard
|
|
||||||
|
|
||||||
A straightforward way of storing the entire World of Tanks Blitz rating leaderboard to disk.
|
|
||||||
|
|
||||||
```cpp
|
|
||||||
primary BlitzkitRatingLeaderboard {
|
|
||||||
utf8"BKRL" magic;
|
|
||||||
Header header;
|
|
||||||
primary Body<header> body;
|
|
||||||
}
|
|
||||||
|
|
||||||
Header {
|
|
||||||
uint16 version; // always 1
|
|
||||||
Format format;
|
|
||||||
uint32 count;
|
|
||||||
}
|
|
||||||
|
|
||||||
Format enum<uint8> {
|
|
||||||
Base,
|
|
||||||
Superset1,
|
|
||||||
}
|
|
||||||
|
|
||||||
Body<Header header> match<header.format> {
|
|
||||||
Base {
|
|
||||||
primary {
|
|
||||||
uint32 id;
|
|
||||||
uint16 score;
|
|
||||||
}[header.count] entries;
|
|
||||||
};
|
|
||||||
|
|
||||||
Superset1 {
|
|
||||||
primary {
|
|
||||||
uint32 id;
|
|
||||||
uint16 score;
|
|
||||||
|
|
||||||
uint32 battles;
|
|
||||||
uint32 wins;
|
|
||||||
uint32 survived;
|
|
||||||
|
|
||||||
uint32 damage;
|
|
||||||
uint32 kills;
|
|
||||||
}[header.count] entries;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
```
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
# Discovered Ids
|
|
||||||
|
|
||||||
```c
|
|
||||||
primary DiscoveredIds {
|
|
||||||
utf8"DIDS" magic;
|
|
||||||
Header header;
|
|
||||||
primary Body body;
|
|
||||||
}
|
|
||||||
|
|
||||||
Header {
|
|
||||||
uint16 version; // always 1
|
|
||||||
}
|
|
||||||
|
|
||||||
Body {
|
|
||||||
uint32 count;
|
|
||||||
uint32[count] ids;
|
|
||||||
}
|
|
||||||
```
|
|
||||||
+1
-170
@@ -1,172 +1,3 @@
|
|||||||
# KitScore
|
# KitScore
|
||||||
|
|
||||||
## Memo
|
Remind me to write out the linearized model!
|
||||||
|
|
||||||
KitScore is a performance metric that makes sense. This metric can be applied to any game, virtual or real. Specific pieces of information relating directly to World of Tanks Blitz will be provided within parentheses and with a "WoTB:" prefix.
|
|
||||||
|
|
||||||
## Consumption of Observations
|
|
||||||
|
|
||||||
KitScore is driven solely by the behavior of other players and finding meaning of a new observation within a pool of condensed data based on previously observed data. Generally, we will be provided with a number of statistics (the $x_i$ of an observation) per player (WoTB: $x_\text{frags}$, $x_\text{xp}$, $x_\text{spots}$, etc.) including a target statistic (the $x_j$ of an observation) that all other statistics try to maximize (WoTB: "winrate" which we will defined later as $x_j$).
|
|
||||||
|
|
||||||
If the statistics are cumulative, they will have to be normalized (WoTB: statistics fetched from Wargaming are indeed cumulative even for a single player; $x_\text{frags}=\frac{\Sigma x_\text{frags}}{\Sigma x_\text{battles}}$, $x_\text{spots}=\frac{\Sigma x_\text{spots}}{\Sigma x_\text{battles}}$, $x_j=\frac{\Sigma x_\text{wins}}{\Sigma x_\text{battles}}$, etc.). Each player will have such average statistics, giving us many points of data to work with. If the statistics are not cumulative, then you will be dealing with multiple observations per player which will only help improve accuracy.
|
|
||||||
|
|
||||||
## It's Impossible to "Find What Makes the Metric Tick"
|
|
||||||
|
|
||||||
WN8, a widely adopted metric in the World of Tanks and World of Tanks Blitz communities is plagued with problems. One of them being that people often find and exploit "what makes the metric tick." In other words, people easily exploit the rudimentary nature of WN8 to score undeservedly high.
|
|
||||||
|
|
||||||
In WN8, the gains of some rewarding categories overshadow the losses of others though that may not necessarily be in the best interest in maximizing winrate. KitScore makes this nearly impossible as it punishes a player for scoring well solely high in a certain category. You will never exploit KitScore. Period.
|
|
||||||
|
|
||||||
## Generating Reasonable Values
|
|
||||||
|
|
||||||
TODO: there's like no runaway cases
|
|
||||||
|
|
||||||
## Symbol Interpretation
|
|
||||||
|
|
||||||
| Symbol | Interpretation |
|
|
||||||
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
||||||
| $A_\text{human}$ | The human readable version of the raw score $A$. |
|
|
||||||
| $A$ | The raw KitScore. |
|
|
||||||
| $C$ | An arbitrary coefficient. |
|
|
||||||
| $I$ | The number of statistics including the target statistic. This means that there are $I-1$ entries for $x_i$ and $1$ entry for $y$ for each observation. |
|
|
||||||
| $i$ | The statistic index of where there are $I$ entries. |
|
|
||||||
| $j$ | A discriminator for the target statistic. There may never be more than $1$ entries for $j$. |
|
|
||||||
| $m$ | The degree of the polynomial regression. |
|
|
||||||
| $n$ | The number of observations. |
|
|
||||||
| $a$ | An "atomic" score which is a function of the $i$th statistic. |
|
|
||||||
| $w$ | The weight of the $i$th atomic statistic. |
|
|
||||||
|
|
||||||
## Computing the Score
|
|
||||||
|
|
||||||
The final metric $A_\text{human}$ is an arbitrarily scaled value of the raw score $A$ where $C$ is any coefficient of your liking. BlitzKit uses $C=10^3$.
|
|
||||||
|
|
||||||
$$
|
|
||||||
A_\text{human}=CA
|
|
||||||
$$
|
|
||||||
|
|
||||||
The final metric $A$ is the weighted average of individual scores $a$ which are functions of the $i$th statistic excluding the target statistic $j$ itself.
|
|
||||||
|
|
||||||
$$
|
|
||||||
A=\frac{\sum_{i \neq j} w_{i}a_{i}}{\sum_{i \neq j} w_{i}}
|
|
||||||
$$
|
|
||||||
|
|
||||||
The "atomic" score $a$ is the difference between the predicted target statistic $P_{i \leftrightarrow j}(x_i)$ acquired using a polynomial regression of degree $m$ and the actual newly observed $x_j$.
|
|
||||||
|
|
||||||
$$
|
|
||||||
a_i=x_j-P_{i \leftrightarrow j}(x_i)
|
|
||||||
$$
|
|
||||||
|
|
||||||
The polynomial regression of $m$th degree can be written as follows:
|
|
||||||
|
|
||||||
$$
|
|
||||||
P(x)=\beta_0x^0+\beta_1x^1+\beta_2x^2+\dots+\beta_mx^m
|
|
||||||
$$
|
|
||||||
|
|
||||||
Polynomial regression coefficients $\beta$ can be acquired through basic linear algebra where an $m \times m$ of constants is multiplied with $m \times 1$ of unknowns which equals another $m \times 1$ of constants.
|
|
||||||
|
|
||||||
```math
|
|
||||||
\begin{bmatrix}
|
|
||||||
\sum_{k=1}^n x_i^0 & \sum_{k=1}^n x_i^1 & \sum_{k=1}^n x_i^2 & \dots & \sum_{k=1}^n x_i^m \\
|
|
||||||
\sum_{k=1}^n x_i^1 & \sum_{k=1}^n x_i^2 & \sum_{k=1}^n x_i^3 & \dots & \sum_{k=1}^n x_i^{m+1} \\
|
|
||||||
\sum_{k=1}^n x_i^2 & \sum_{k=1}^n x_i^3 & \sum_{k=1}^n x_i^4 & \dots & \sum_{k=1}^n x_i^{m+2} \\
|
|
||||||
\vdots & \vdots & \vdots & \ddots & \vdots \\
|
|
||||||
\sum_{k=1}^n x_i^m & \sum_{k=1}^n x_i^{m+1} & \sum_{k=1}^n x_i^{m+1} & \dots & \sum_{k=1}^n x_i^{2m} \\
|
|
||||||
\end{bmatrix}
|
|
||||||
|
|
||||||
\begin{bmatrix}
|
|
||||||
\beta_0 \\
|
|
||||||
\beta_1 \\
|
|
||||||
\beta_2 \\
|
|
||||||
\vdots \\
|
|
||||||
\beta_m
|
|
||||||
\end{bmatrix}
|
|
||||||
|
|
||||||
=
|
|
||||||
|
|
||||||
\begin{bmatrix}
|
|
||||||
\sum_{k=1}^n x_jx_i^0 \\
|
|
||||||
\sum_{k=1}^n x_jx_i^1 \\
|
|
||||||
\sum_{k=1}^n x_jx_i^2 \\
|
|
||||||
\vdots \\
|
|
||||||
\sum_{k=1}^n x_jx_i^m
|
|
||||||
\end{bmatrix}
|
|
||||||
```
|
|
||||||
|
|
||||||
The weight $w$ is a slice of the Pearson corelation matrix. The numerator is the corelation between the $i$th statistic and the target statistic $j$ while the denominator the sum of the corelations between the $i$th statistic and all statistics but the target statistic $j$.
|
|
||||||
|
|
||||||
$$
|
|
||||||
w_{i}=\frac{r_{i\leftrightarrow j}^2}{\sum_{i_{k}\neq j}r_{i\leftrightarrow i_{k}}^2}
|
|
||||||
$$
|
|
||||||
|
|
||||||
## Understanding the Corelation Matrix
|
|
||||||
|
|
||||||
Forming the corelation matrix will create an $I \times I$ matrix where. This matrix is best represented as a table. The example below illustrates a matrix/table for $I=4$ which includes $3$ entries for $i$ statistics and $1$ entry for the $j$ target statistic.
|
|
||||||
|
|
||||||
| | $x_1$ | $x_2$ | $x_3$ | $x_j$ |
|
|
||||||
| ----- | --------------------------- | --------------------------- | --------------------------- | --------------------------- |
|
|
||||||
| $x_1$ | $1$ | $r_{1 \leftrightarrow 2}^2$ | $r_{1 \leftrightarrow 3}^2$ | $r_{1 \leftrightarrow j}^2$ |
|
|
||||||
| $x_2$ | $r_{1 \leftrightarrow 2}^2$ | $1$ | $r_{2 \leftrightarrow 3}^2$ | $r_{2 \leftrightarrow j}^2$ |
|
|
||||||
| $x_3$ | $r_{1 \leftrightarrow 3}^2$ | $r_{2 \leftrightarrow 3}^2$ | $1$ | $r_{3 \leftrightarrow j}^2$ |
|
|
||||||
| $x_j$ | $r_{1 \leftrightarrow j}^2$ | $r_{2 \leftrightarrow j}^2$ | $r_{3 \leftrightarrow j}^2$ | $1$ |
|
|
||||||
|
|
||||||
It should not be a surprise to find $r_{i \leftrightarrow i}^2=1$ which forms a neat diagonal across the table. Note that there are many duplicates within the $I^2$ entries. The "bottom-right triangle" can be eliminated to remove redundancies leaving us with only $\frac{I(I+1)}{2}$ fields occupied.
|
|
||||||
|
|
||||||
| | $x_1$ | $x_2$ | $x_3$ | $x_j$ |
|
|
||||||
| ----- | ----- | --------------------------- | --------------------------- | --------------------------- |
|
|
||||||
| $x_1$ | $1$ | $r_{1 \leftrightarrow 2}^2$ | $r_{1 \leftrightarrow 3}^2$ | $r_{1 \leftrightarrow j}^2$ |
|
|
||||||
| $x_2$ | | $1$ | $r_{2 \leftrightarrow 3}^2$ | $r_{2 \leftrightarrow j}^2$ |
|
|
||||||
| $x_3$ | | | $1$ | $r_{3 \leftrightarrow j}^2$ |
|
|
||||||
| $x_j$ | | | | $1$ |
|
|
||||||
|
|
||||||
When programming this matrix into an array, $r_{i \leftrightarrow i}^2=1$ will be redundant. I recommend condensing the matrix into an array of size $\frac{I(I+1)}{2}+I=\frac{I(I-1)}{2}$ to avoid all redundant entries. For $I=4$, the array will look something like the one illustrated below (here, $j=4$).
|
|
||||||
|
|
||||||
$$
|
|
||||||
[r_{1 \leftrightarrow 2}^2, r_{1 \leftrightarrow 3}^2, r_{1 \leftrightarrow 4}^2, r_{2 \leftrightarrow 3}^2, r_{2 \leftrightarrow 4}^2, r_{3 \leftrightarrow 4}^2]
|
|
||||||
$$
|
|
||||||
|
|
||||||
## Understanding the Weights
|
|
||||||
|
|
||||||
Some may find the weight equation arbitrary; it evidently isn't. The goal of $w$ is to eliminate over-rewarding the same behavior represented in multiple statistics. It makes all atomic statistics concurrent by leveraging the Pearson corelation matrix.
|
|
||||||
|
|
||||||
A simplified example will clarify the idea. First, we compute a Pearson corelation matrix for $I=3$ statistics. We have $x_1$ and $x_2$, the statistics that are trying to maximize $x_j$. Reminder: a Pearson corelation matrix finds the $r$ value not only between $x_i$ and $x_j$ but also between all combinations of $x_i$ and themselves. Here, $r^2$ is calculated using polynomial regression corelation analysis to the $m$th degree.
|
|
||||||
|
|
||||||
| | $x_1$ | $x_2$ | $x_3$ | $x_j$ |
|
|
||||||
| ----- | ----- | ----------- | ----- | ----- |
|
|
||||||
| $x_1$ | $1$ | $\boxed{0}$ | $0$ | $1$ |
|
|
||||||
| $x_2$ | | $1$ | $0$ | $1$ |
|
|
||||||
| $x_3$ | | | $1$ | $1$ |
|
|
||||||
| $x_j$ | | | | $1$ |
|
|
||||||
|
|
||||||
In the case above, $r^2_{1 \leftrightarrow 2}=0$ meaning that both statistics have absolutely nothing to do with each other. Hence, the player will be awarded for optimizing both individually. And since $r^2_{1 \leftrightarrow j}=r^2_{2 \leftrightarrow j}$, they should both be rewarded equally; in other words, they should have equal weights.
|
|
||||||
|
|
||||||
$$
|
|
||||||
w_{1}=\frac{1}{1 + 0 + 0}=1
|
|
||||||
$$
|
|
||||||
|
|
||||||
$$
|
|
||||||
w_{2}=\frac{1}{0 + 1 + 0}=1
|
|
||||||
$$
|
|
||||||
|
|
||||||
$$
|
|
||||||
w_{3}=\frac{1}{0 + 0 + 1}=1
|
|
||||||
$$
|
|
||||||
|
|
||||||
Now consider a case where $x_1$ and $x_2$ are fully correlated. It would be a bad idea to reward them equally; hence, their weights suffer.
|
|
||||||
|
|
||||||
| | $x_1$ | $x_2$ | $x_3$ | $x_j$ |
|
|
||||||
| ----- | ----- | ----------- | ----- | ----- |
|
|
||||||
| $x_1$ | $1$ | $\boxed{1}$ | $0$ | $1$ |
|
|
||||||
| $x_2$ | | $1$ | $0$ | $1$ |
|
|
||||||
| $x_3$ | | | $1$ | $1$ |
|
|
||||||
| $x_j$ | | | | $1$ |
|
|
||||||
|
|
||||||
$$
|
|
||||||
w_{1}=\frac{1}{1 + 1 + 0}=0.5
|
|
||||||
$$
|
|
||||||
|
|
||||||
$$
|
|
||||||
w_{2}=\frac{1}{1 + 1 + 0}=0.5
|
|
||||||
$$
|
|
||||||
|
|
||||||
$$
|
|
||||||
w_{3}=\frac{1}{0 + 0 + 1}=1
|
|
||||||
$$
|
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
# BlitzKit Regular Tank Stats
|
|
||||||
|
|
||||||
A straightforward way of storing the entire World of Tanks Blitz tank statistics for players to disk.
|
|
||||||
|
|
||||||
## Manifest `manifest.rtsm`
|
|
||||||
|
|
||||||
```cpp
|
|
||||||
primary RegularTankStatisticsManifest {
|
|
||||||
utf8"RTSM" magic;
|
|
||||||
Header header;
|
|
||||||
primary Body body;
|
|
||||||
}
|
|
||||||
|
|
||||||
Header {
|
|
||||||
uint16 version; // always 1
|
|
||||||
}
|
|
||||||
|
|
||||||
Body {
|
|
||||||
uint32 time;
|
|
||||||
uint8 base;
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
## Chunk `*.rtsc`
|
|
||||||
|
|
||||||
```cpp
|
|
||||||
primary RegularTankStatisticsChunk {
|
|
||||||
utf8"RTSC" magic;
|
|
||||||
Header header;
|
|
||||||
primary Body body<header.playerCount>;
|
|
||||||
}
|
|
||||||
|
|
||||||
Header {
|
|
||||||
uint16 version; // always 1
|
|
||||||
uint32 playerCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
Body<uint32 playerCount> {
|
|
||||||
Player[playerCount] players;
|
|
||||||
}
|
|
||||||
|
|
||||||
Player {
|
|
||||||
uint32 id;
|
|
||||||
uint16 tankCount;
|
|
||||||
Tank[tankCount] tanks;
|
|
||||||
}
|
|
||||||
|
|
||||||
Tank {
|
|
||||||
uint32 id;
|
|
||||||
uint32 battleLifeTime;
|
|
||||||
uint32 lastBattleTime;
|
|
||||||
uint8 markOfMastery;
|
|
||||||
uint32 battles;
|
|
||||||
uint32 capturePoints;
|
|
||||||
uint32 damageDealt;
|
|
||||||
uint32 damageReceived;
|
|
||||||
uint32 droppedCapturePoints;
|
|
||||||
uint32 frags;
|
|
||||||
uint32 frags8p;
|
|
||||||
uint32 hits;
|
|
||||||
uint32 losses;
|
|
||||||
uint8 maxFrags;
|
|
||||||
uint16 maxXp;
|
|
||||||
uint32 shots;
|
|
||||||
uint32 spotted;
|
|
||||||
uint32 survivedBattles;
|
|
||||||
uint32 winAndSurvived;
|
|
||||||
uint32 wins;
|
|
||||||
uint32 xp;
|
|
||||||
}
|
|
||||||
```
|
|
||||||
+25
-3
@@ -1,14 +1,36 @@
|
|||||||
{
|
{
|
||||||
|
"robots": false,
|
||||||
|
"canonical": "https://blitzkit.app",
|
||||||
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"default": null,
|
"default": null,
|
||||||
"api": null
|
|
||||||
|
"api": null,
|
||||||
|
|
||||||
|
"models_tanks": null,
|
||||||
|
"models_legendary": null,
|
||||||
|
"models_maps": null
|
||||||
},
|
},
|
||||||
|
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"default": "blitzkit/deploy-node-beta.blitzkit.app",
|
"default": "blitzkit/deploy-node-beta.blitzkit.app",
|
||||||
"api": "blitzkit/deploy-node-api.beta.blitzkit.app"
|
|
||||||
|
"api": "blitzkit/deploy-node-api.beta.blitzkit.app",
|
||||||
|
|
||||||
|
"models_tanks": "blitzkit/deploy-node-tanks.models.beta.blitzkit.app",
|
||||||
|
"models_legendary": "blitzkit/deploy-node-legendary.models.beta.blitzkit.app",
|
||||||
|
"models_maps": "blitzkit/deploy-node-maps.models.beta.blitzkit.app"
|
||||||
},
|
},
|
||||||
|
|
||||||
"aliases": {
|
"aliases": {
|
||||||
|
"default": "/",
|
||||||
|
|
||||||
"api": "https://api.beta.blitzkit.app",
|
"api": "https://api.beta.blitzkit.app",
|
||||||
"static": "https://static.beta.blitzkit.app"
|
|
||||||
|
"models_tanks": "https://tanks.models.beta.blitzkit.app",
|
||||||
|
"models_legendary": "https://legendary.models.beta.blitzkit.app",
|
||||||
|
"models_maps": "https://maps.models.beta.blitzkit.app",
|
||||||
|
|
||||||
|
"static": "https://static.blitzkit.app"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,11 +1,28 @@
|
|||||||
{
|
{
|
||||||
|
"robots": false,
|
||||||
|
"canonical": "https://blitzkit.app",
|
||||||
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"default": null,
|
"default": null,
|
||||||
"api": "api"
|
|
||||||
|
"api": "api",
|
||||||
|
|
||||||
|
"models_tanks": "models/tanks",
|
||||||
|
"models_legendary": "models/legendary",
|
||||||
|
"models_maps": "models/maps"
|
||||||
},
|
},
|
||||||
|
|
||||||
"nodes": {},
|
"nodes": {},
|
||||||
|
|
||||||
"aliases": {
|
"aliases": {
|
||||||
|
"default": "/",
|
||||||
|
|
||||||
"api": "/api",
|
"api": "/api",
|
||||||
|
|
||||||
|
"models_tanks": "/models/tanks",
|
||||||
|
"models_legendary": "/models/legendary",
|
||||||
|
"models_maps": "/models/maps",
|
||||||
|
|
||||||
"static": "https://static.blitzkit.app"
|
"static": "https://static.blitzkit.app"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,14 +1,36 @@
|
|||||||
{
|
{
|
||||||
|
"robots": false,
|
||||||
|
"canonical": "https://blitzkit.app",
|
||||||
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"default": null,
|
"default": null,
|
||||||
"api": null
|
|
||||||
|
"api": null,
|
||||||
|
|
||||||
|
"models_tanks": null,
|
||||||
|
"models_legendary": null,
|
||||||
|
"models_maps": null
|
||||||
},
|
},
|
||||||
|
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"default": "blitzkit/deploy-node-opentest.blitzkit.app",
|
"default": "blitzkit/deploy-node-opentest.blitzkit.app",
|
||||||
"api": "blitzkit/deploy-node-api.opentest.blitzkit.app"
|
|
||||||
|
"api": "blitzkit/deploy-node-api.opentest.blitzkit.app",
|
||||||
|
|
||||||
|
"models_tanks": "blitzkit/deploy-node-tanks.models.opentest.blitzkit.app",
|
||||||
|
"models_legendary": "blitzkit/deploy-node-legendary.models.opentest.blitzkit.app",
|
||||||
|
"models_maps": "blitzkit/deploy-node-maps.models.opentest.blitzkit.app"
|
||||||
},
|
},
|
||||||
|
|
||||||
"aliases": {
|
"aliases": {
|
||||||
|
"default": "/",
|
||||||
|
|
||||||
"api": "https://api.opentest.blitzkit.app",
|
"api": "https://api.opentest.blitzkit.app",
|
||||||
"static": "https://static.opentest.blitzkit.app"
|
|
||||||
|
"models_tanks": "https://tanks.models.opentest.blitzkit.app",
|
||||||
|
"models_legendary": "https://legendary.models.opentest.blitzkit.app",
|
||||||
|
"models_maps": "https://maps.models.opentest.blitzkit.app",
|
||||||
|
|
||||||
|
"static": "https://static.blitzkit.app"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,14 +1,36 @@
|
|||||||
{
|
{
|
||||||
|
"robots": false,
|
||||||
|
"canonical": "https://blitzkit.app",
|
||||||
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"default": null,
|
"default": null,
|
||||||
"api": null
|
|
||||||
|
"api": null,
|
||||||
|
|
||||||
|
"models_tanks": null,
|
||||||
|
"models_legendary": null,
|
||||||
|
"models_maps": null
|
||||||
},
|
},
|
||||||
|
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"default": "blitzkit/deploy-node-preview.blitzkit.app",
|
"default": "blitzkit/deploy-node-preview.blitzkit.app",
|
||||||
"api": "blitzkit/deploy-node-api.preview.blitzkit.app"
|
|
||||||
|
"api": "blitzkit/deploy-node-api.preview.blitzkit.app",
|
||||||
|
|
||||||
|
"models_tanks": "blitzkit/deploy-node-tanks.models.preview.blitzkit.app",
|
||||||
|
"models_legendary": "blitzkit/deploy-node-legendary.models.preview.blitzkit.app",
|
||||||
|
"models_maps": "blitzkit/deploy-node-maps.models.preview.blitzkit.app"
|
||||||
},
|
},
|
||||||
|
|
||||||
"aliases": {
|
"aliases": {
|
||||||
|
"default": "/",
|
||||||
|
|
||||||
"api": "https://api.preview.blitzkit.app",
|
"api": "https://api.preview.blitzkit.app",
|
||||||
"static": "https://static.preview.blitzkit.app"
|
|
||||||
|
"models_tanks": "https://tanks.models.preview.blitzkit.app",
|
||||||
|
"models_legendary": "https://legendary.models.preview.blitzkit.app",
|
||||||
|
"models_maps": "https://maps.models.preview.blitzkit.app",
|
||||||
|
|
||||||
|
"static": "https://static.blitzkit.app"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,14 +1,36 @@
|
|||||||
{
|
{
|
||||||
|
"robots": true,
|
||||||
|
"canonical": "https://blitzkit.app",
|
||||||
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"default": null,
|
"default": null,
|
||||||
"api": null
|
|
||||||
|
"api": null,
|
||||||
|
|
||||||
|
"models_tanks": null,
|
||||||
|
"models_legendary": null,
|
||||||
|
"models_maps": null
|
||||||
},
|
},
|
||||||
|
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"default": "blitzkit/deploy-node-blitzkit.app",
|
"default": "blitzkit/deploy-node-blitzkit.app",
|
||||||
"api": "blitzkit/deploy-node-api.blitzkit.app"
|
|
||||||
|
"api": "blitzkit/deploy-node-api.blitzkit.app",
|
||||||
|
|
||||||
|
"models_tanks": "blitzkit/deploy-node-tanks.models.blitzkit.app",
|
||||||
|
"models_legendary": "blitzkit/deploy-node-legendary.models.blitzkit.app",
|
||||||
|
"models_maps": "blitzkit/deploy-node-maps.models.blitzkit.app"
|
||||||
},
|
},
|
||||||
|
|
||||||
"aliases": {
|
"aliases": {
|
||||||
|
"default": "/",
|
||||||
|
|
||||||
"api": "https://api.blitzkit.app",
|
"api": "https://api.blitzkit.app",
|
||||||
|
|
||||||
|
"models_tanks": "https://tanks.models.blitzkit.app",
|
||||||
|
"models_legendary": "https://legendary.models.blitzkit.app",
|
||||||
|
"models_maps": "https://maps.models.blitzkit.app",
|
||||||
|
|
||||||
"static": "https://static.blitzkit.app"
|
"static": "https://static.blitzkit.app"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+8
-4
@@ -1,13 +1,17 @@
|
|||||||
{
|
{
|
||||||
"name": "blitzkit",
|
"name": "blitzkit",
|
||||||
"version": "1.31.0",
|
"version": "1.33.0-beta.1",
|
||||||
"license": "BlitzKit License",
|
"license": "BlitzKit License",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "cd packages/website && bun run dev",
|
"dev": "cd packages/website && bun --bun run dev",
|
||||||
"build": "cd packages/website && bun run build",
|
"build": "cd packages/website && bun run build",
|
||||||
"build:averages": "cd packages/scripts && bun run build:averages",
|
"discover-ids": "cd packages/scripts && bun run discover-ids",
|
||||||
"build:ids": "cd packages/scripts && bun run build:ids"
|
"build-protos": "cd packages/scripts && bun run build-protos",
|
||||||
|
"record-performance": "cd packages/scripts && bun run record-performance",
|
||||||
|
"download-client": "cd packages/scripts && bun run download-client",
|
||||||
|
"clean-astro": "rm -rf packages/website/.astro packages/website/node_modules/.astro packages/website/node_modules/.vite",
|
||||||
|
"vfs": "cd packages/scripts && bun run vfs"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
"@octokit/plugin-throttling": "^11.0.1",
|
"@octokit/plugin-throttling": "^11.0.1",
|
||||||
"@octokit/rest": "^22.0.0",
|
"@octokit/rest": "^22.0.0",
|
||||||
"@types/adm-zip": "^0.5.7",
|
"@types/adm-zip": "^0.5.7",
|
||||||
"@types/bun": "^1.3.1",
|
"@types/bun": "^1.3.14",
|
||||||
"@types/lodash-es": "^4.17.12",
|
"@types/lodash-es": "^4.17.12",
|
||||||
"@types/lz4js": "^0.2.1",
|
"@types/lz4js": "^0.2.1",
|
||||||
"@types/three": "^0.180.0",
|
"@types/three": "^0.180.0",
|
||||||
|
|||||||
@@ -25,8 +25,8 @@ import {
|
|||||||
VehicleDefinitionList,
|
VehicleDefinitionList,
|
||||||
} from "@blitzkit/core";
|
} from "@blitzkit/core";
|
||||||
import { AbstractVFS } from "@blitzkit/core/src/blitzkit/vfs/abstract";
|
import { AbstractVFS } from "@blitzkit/core/src/blitzkit/vfs/abstract";
|
||||||
import { SUPPORTED_LOCALE_BLITZ_MAP } from "@blitzkit/i18n";
|
|
||||||
import locales from "@blitzkit/i18n/locales.json";
|
import locales from "@blitzkit/i18n/locales.json";
|
||||||
|
import { SUPPORTED_LOCALE_BLITZ_MAP } from "@blitzkit/i18n/src/strings";
|
||||||
import { parse as parseYaml } from "yaml";
|
import { parse as parseYaml } from "yaml";
|
||||||
import { BlitzKitAPI } from "../base";
|
import { BlitzKitAPI } from "../base";
|
||||||
|
|
||||||
@@ -113,6 +113,9 @@ export abstract class ServerBlitzKitAPI0 extends BlitzKitAPI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async init() {
|
async init() {
|
||||||
|
const { existsSync } = await import("fs");
|
||||||
|
const { readFile, writeFile, mkdir } = await import("fs/promises");
|
||||||
|
|
||||||
console.log("Initializing virtual file system...");
|
console.log("Initializing virtual file system...");
|
||||||
await this.vfs.init();
|
await this.vfs.init();
|
||||||
|
|
||||||
@@ -155,31 +158,37 @@ export abstract class ServerBlitzKitAPI0 extends BlitzKitAPI {
|
|||||||
|
|
||||||
console.log("Fetching game localizations...");
|
console.log("Fetching game localizations...");
|
||||||
|
|
||||||
if (import.meta.env.DEV) {
|
|
||||||
locales.supported = [locales.supported[0]];
|
|
||||||
}
|
|
||||||
|
|
||||||
let fetchedLocalizations = 0;
|
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
locales.supported.map(async ({ locale }) => {
|
locales.supported.map(async ({ locale }) => {
|
||||||
|
const root = "../../temp/game-strings";
|
||||||
|
const cachePath = `${root}/${locale}.json`;
|
||||||
|
|
||||||
|
if (existsSync(cachePath)) {
|
||||||
|
console.log(` Cache hit for ${locale}`);
|
||||||
|
|
||||||
|
const content = await readFile(cachePath, "utf-8");
|
||||||
|
this.stringsI18n[locale] = JSON.parse(content) as BlitzStrings;
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(` Cache miss for ${locale} (this will take a while...)`);
|
||||||
|
|
||||||
const blitzLocale = SUPPORTED_LOCALE_BLITZ_MAP[locale];
|
const blitzLocale = SUPPORTED_LOCALE_BLITZ_MAP[locale];
|
||||||
const cache = await fetch(
|
const networkStrings = (await fetch(
|
||||||
`https://stufficons.wgcdn.co/localizations/${blitzLocale}.yaml`,
|
`https://stufficons.wgcdn.co/localizations/${blitzLocale}.yaml`,
|
||||||
)
|
)
|
||||||
.then((response) => response.text())
|
.then((response) => response.text())
|
||||||
.then((string) => parseYaml(string) as BlitzStrings);
|
.then(parseYaml)) as BlitzStrings;
|
||||||
const preInstalled = await this.vfs.yaml<BlitzStrings>(
|
const localStrings = await this.vfs.yaml<BlitzStrings>(
|
||||||
`Data/Strings/${blitzLocale}.yaml`,
|
`Data/Strings/${blitzLocale}.yaml`,
|
||||||
);
|
);
|
||||||
|
const combined = { ...networkStrings, ...localStrings };
|
||||||
|
|
||||||
this.stringsI18n[locale] = {
|
await mkdir(root, { recursive: true });
|
||||||
...cache,
|
await writeFile(cachePath, JSON.stringify(combined));
|
||||||
...preInstalled,
|
|
||||||
};
|
|
||||||
|
|
||||||
console.log(
|
this.stringsI18n[locale] = combined;
|
||||||
`Fetched localizations for ${locale} (${++fetchedLocalizations}/${locales.supported.length})`,
|
|
||||||
);
|
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -237,6 +246,27 @@ export abstract class ServerBlitzKitAPI0 extends BlitzKitAPI {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected getTankFilterIds(
|
||||||
|
name: string,
|
||||||
|
definitionKey: string,
|
||||||
|
filter: "include" | "exclude",
|
||||||
|
) {
|
||||||
|
const keys = name.trim().split(/\s+/).filter(Boolean);
|
||||||
|
|
||||||
|
return keys.flatMap((key) => {
|
||||||
|
const id = this.tankStringIdMap[key];
|
||||||
|
|
||||||
|
if (id === undefined) {
|
||||||
|
console.warn(
|
||||||
|
`Skipping unavailable tank "${key}" in ${filter} vehicle filter for "${definitionKey}"`,
|
||||||
|
);
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
return [id];
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
protected getString(name: string) {
|
protected getString(name: string) {
|
||||||
const collection: Record<string, string> = {
|
const collection: Record<string, string> = {
|
||||||
[locales.default]: this.stringsI18n[locales.default][name],
|
[locales.default]: this.stringsI18n[locales.default][name],
|
||||||
|
|||||||
@@ -50,10 +50,11 @@ export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 {
|
|||||||
async tankDefinitions() {
|
async tankDefinitions() {
|
||||||
const tankDefinitions = TankDefinitions.create();
|
const tankDefinitions = TankDefinitions.create();
|
||||||
|
|
||||||
const gameModeNativeNames: Record<string, number> = {};
|
const gameModeNativeNames: Record<string, string> = {};
|
||||||
|
|
||||||
const squadBattleTypeGameModeNativeNameMatches =
|
const squadBattleTypeGameModeNativeNameMatches =
|
||||||
this.squadBattleTypeStyles!.Prototypes[0].components.UIDataLocalBindingsComponent.data[1][2].matchAll(
|
this.squadBattleTypeStyles!.Prototypes[0].components.UIDataLocalBindingsComponent.data[1][2].matchAll(
|
||||||
/"(\d+)" -> "(battleType\/([a-zA-Z]+))"/g,
|
/eGameMode\.(\w+) -> "(battleType\/([a-zA-Z]+))"/g,
|
||||||
);
|
);
|
||||||
const gameTypeGameModeNativeNameMatches =
|
const gameTypeGameModeNativeNameMatches =
|
||||||
this.gameTypeSelectorStyles!.Prototypes[0].components.UIDataLocalBindingsComponent.data[1][2].matchAll(
|
this.gameTypeSelectorStyles!.Prototypes[0].components.UIDataLocalBindingsComponent.data[1][2].matchAll(
|
||||||
@@ -61,8 +62,7 @@ export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 {
|
|||||||
);
|
);
|
||||||
|
|
||||||
for (const match of squadBattleTypeGameModeNativeNameMatches) {
|
for (const match of squadBattleTypeGameModeNativeNameMatches) {
|
||||||
const id = Number(match[1]);
|
gameModeNativeNames[match[3]] = match[1];
|
||||||
gameModeNativeNames[match[3]] = id;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const match of gameTypeGameModeNativeNameMatches) {
|
for (const match of gameTypeGameModeNativeNameMatches) {
|
||||||
@@ -339,6 +339,26 @@ export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 {
|
|||||||
equalizer = { health, penetration, module_health, damage, armor };
|
equalizer = { health, penetration, module_health, damage, armor };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const blitzTankClass = tankTags.find(
|
||||||
|
(tag) => tag in this.blitzTankClassToBlitzkit,
|
||||||
|
);
|
||||||
|
|
||||||
|
if (blitzTankClass === undefined) {
|
||||||
|
throw new Error(`Unknown tank class for ${nation}:${tankKey}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
const tankClass =
|
||||||
|
this.blitzTankClassToBlitzkit[blitzTankClass as BlitzTankClass];
|
||||||
|
|
||||||
|
const canonicalFullName = this.getString(tank.userString);
|
||||||
|
const name =
|
||||||
|
(tank.shortUserString
|
||||||
|
? this.getString(tank.shortUserString)
|
||||||
|
: undefined) ?? canonicalFullName;
|
||||||
|
// only supply full name if it's different from the displayed short name to save some bytes
|
||||||
|
const name_full =
|
||||||
|
name === canonicalFullName ? undefined : canonicalFullName;
|
||||||
|
|
||||||
tankDefinitions.tanks[tankId] = {
|
tankDefinitions.tanks[tankId] = {
|
||||||
ancestors: [],
|
ancestors: [],
|
||||||
successors: [],
|
successors: [],
|
||||||
@@ -356,10 +376,8 @@ export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 {
|
|||||||
typeof equipment === "string" ? equipment : equipment.at(-1)!,
|
typeof equipment === "string" ? equipment : equipment.at(-1)!,
|
||||||
max_consumables: tankDefinition.root.consumableSlots,
|
max_consumables: tankDefinition.root.consumableSlots,
|
||||||
max_provisions: tankDefinition.root.provisionSlots,
|
max_provisions: tankDefinition.root.provisionSlots,
|
||||||
name:
|
name,
|
||||||
(tank.shortUserString
|
name_full,
|
||||||
? this.getString(tank.shortUserString)
|
|
||||||
: undefined) ?? this.getString(tank.userString),
|
|
||||||
slug,
|
slug,
|
||||||
nation,
|
nation,
|
||||||
type: tankTags.includes("collectible")
|
type: tankTags.includes("collectible")
|
||||||
@@ -368,8 +386,8 @@ export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 {
|
|||||||
? TankType.TANK_TYPE_PREMIUM
|
? TankType.TANK_TYPE_PREMIUM
|
||||||
: TankType.TANK_TYPE_RESEARCHABLE,
|
: TankType.TANK_TYPE_RESEARCHABLE,
|
||||||
tier: tank.level,
|
tier: tank.level,
|
||||||
class: this.blitzTankClassToBlitzkit[tankTags[0] as BlitzTankClass],
|
class: tankClass,
|
||||||
testing: tankTags.includes("testTank"),
|
testing: tankTags.includes("testTank") || tank.level === 11,
|
||||||
deprecated: tankTags.includes("deprecated"),
|
deprecated: tankTags.includes("deprecated"),
|
||||||
price: tankPrice,
|
price: tankPrice,
|
||||||
camouflage_still: tankDefinition.root.invisibility.still,
|
camouflage_still: tankDefinition.root.invisibility.still,
|
||||||
@@ -416,6 +434,7 @@ export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 {
|
|||||||
resistance_hard: terrainResistances[0],
|
resistance_hard: terrainResistances[0],
|
||||||
resistance_medium: terrainResistances[1],
|
resistance_medium: terrainResistances[1],
|
||||||
resistance_soft: terrainResistances[2],
|
resistance_soft: terrainResistances[2],
|
||||||
|
repair_time: track.hysteresisHealth / track.healthRegenPerSec,
|
||||||
tier: track.level,
|
tier: track.level,
|
||||||
unlocks: resolveUnlocks(
|
unlocks: resolveUnlocks(
|
||||||
this.blitzModuleTypeToBlitzkit,
|
this.blitzModuleTypeToBlitzkit,
|
||||||
@@ -576,9 +595,25 @@ export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 {
|
|||||||
for (const shellKey in gunListEntry.shots) {
|
for (const shellKey in gunListEntry.shots) {
|
||||||
const gunShellEntry = gunListEntry.shots[shellKey];
|
const gunShellEntry = gunListEntry.shots[shellKey];
|
||||||
const shell = shellList.root[shellKey];
|
const shell = shellList.root[shellKey];
|
||||||
|
|
||||||
|
// Newer client data stores shot properties on the shell rather
|
||||||
|
// than repeating them under every gun's <shots> entry.
|
||||||
|
const speed =
|
||||||
|
typeof gunShellEntry === "string"
|
||||||
|
? shell.speed
|
||||||
|
: gunShellEntry.speed;
|
||||||
|
const maxDistance =
|
||||||
|
typeof gunShellEntry === "string"
|
||||||
|
? shell.maxDistance
|
||||||
|
: gunShellEntry.maxDistance;
|
||||||
|
const piercingPower =
|
||||||
|
typeof gunShellEntry === "string"
|
||||||
|
? shell.piercingPower
|
||||||
|
: gunShellEntry.piercingPower;
|
||||||
|
|
||||||
const shellId = toUniqueId(nation, shell.id);
|
const shellId = toUniqueId(nation, shell.id);
|
||||||
const shellName = this.getString(shell.userString);
|
const shellName = this.getString(shell.userString);
|
||||||
const penetrationRaw = gunShellEntry.piercingPower
|
const penetrationRaw = piercingPower
|
||||||
.split(" ")
|
.split(" ")
|
||||||
.filter((penetrationString) => penetrationString !== "")
|
.filter((penetrationString) => penetrationString !== "")
|
||||||
.map(Number);
|
.map(Number);
|
||||||
@@ -588,7 +623,7 @@ export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 {
|
|||||||
].shells.push({
|
].shells.push({
|
||||||
id: shellId,
|
id: shellId,
|
||||||
name: shellName,
|
name: shellName,
|
||||||
velocity: gunShellEntry.speed,
|
velocity: speed,
|
||||||
armor_damage: shell.damage.armor,
|
armor_damage: shell.damage.armor,
|
||||||
module_damage: shell.damage.devices,
|
module_damage: shell.damage.devices,
|
||||||
caliber: shell.caliber,
|
caliber: shell.caliber,
|
||||||
@@ -604,7 +639,7 @@ export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 {
|
|||||||
near: penetrationRaw[0],
|
near: penetrationRaw[0],
|
||||||
far: penetrationRaw[1],
|
far: penetrationRaw[1],
|
||||||
},
|
},
|
||||||
range: gunShellEntry.maxDistance,
|
range: maxDistance,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,58 @@
|
|||||||
import { CamouflageDefinitions } from "@blitzkit/core";
|
import {
|
||||||
|
CamouflageDefinitions,
|
||||||
|
Sc2ReadStream,
|
||||||
|
type TankParameters,
|
||||||
|
} from "@blitzkit/core";
|
||||||
|
import { isEqual, times } from "lodash-es";
|
||||||
import { Cache } from "./0_base";
|
import { Cache } from "./0_base";
|
||||||
import { ServerBlitzKitAPI1 } from "./1_tankDefinitions";
|
import { ServerBlitzKitAPI1 } from "./1_tankDefinitions";
|
||||||
|
|
||||||
export abstract class ServerBlitzKitAPI2 extends ServerBlitzKitAPI1 {
|
export abstract class ServerBlitzKitAPI2 extends ServerBlitzKitAPI1 {
|
||||||
|
private async skinPresets(vehicle: string) {
|
||||||
|
const [nation, tankKey] = vehicle.split(":");
|
||||||
|
const parameters = await this.vfs.yaml<TankParameters>(
|
||||||
|
`Data/3d/Tanks/Parameters/${nation}/${tankKey}.yaml`,
|
||||||
|
);
|
||||||
|
const sc2 = new Sc2ReadStream(
|
||||||
|
(
|
||||||
|
await this.vfs.file(`Data/3d/${parameters.resourcesPath.blitzModelPath}`)
|
||||||
|
).buffer as ArrayBuffer,
|
||||||
|
).sc2();
|
||||||
|
const presets = new Set<string>();
|
||||||
|
|
||||||
|
for (const node of sc2["#dataNodes"]) {
|
||||||
|
if (typeof node.configCount !== "number") continue;
|
||||||
|
|
||||||
|
times(node.configCount, (index) => node[`configArchive_${index}`])
|
||||||
|
.filter(
|
||||||
|
(archive) =>
|
||||||
|
!isEqual(archive.textures, node.configArchive_0.textures),
|
||||||
|
)
|
||||||
|
.forEach((archive) => presets.add(archive.configName));
|
||||||
|
}
|
||||||
|
|
||||||
|
return presets;
|
||||||
|
}
|
||||||
|
|
||||||
@Cache()
|
@Cache()
|
||||||
async camouflageDefinitions() {
|
async camouflageDefinitions() {
|
||||||
const camouflageDefinitions = CamouflageDefinitions.create();
|
const camouflageDefinitions = CamouflageDefinitions.create();
|
||||||
|
const customization = await this.vfs.yaml<
|
||||||
|
Record<string, { Name: string; Path: string }>
|
||||||
|
>("Data/3d/Customization.yaml");
|
||||||
|
const items = new Map(
|
||||||
|
Object.values(customization).map(({ Name, Path }) => [
|
||||||
|
Name,
|
||||||
|
Path.replace("~res:/", "Data/").replace(/\.sc2$/, ""),
|
||||||
|
]),
|
||||||
|
);
|
||||||
|
const skinPresets = new Map<string, Promise<Set<string>>>();
|
||||||
|
|
||||||
for (const camoKey in this.camouflagesXml!.root.camouflages) {
|
for (const camoKey in this.camouflagesXml!.root.camouflages) {
|
||||||
const camo = this.camouflagesXml!.root.camouflages[camoKey];
|
const camo = this.camouflagesXml!.root.camouflages[camoKey];
|
||||||
|
|
||||||
|
if (!(camoKey in this.camouflagesYaml!)) continue;
|
||||||
|
|
||||||
const yamlEntry = this.camouflagesYaml![camoKey];
|
const yamlEntry = this.camouflagesYaml![camoKey];
|
||||||
const fullName = yamlEntry.userString
|
const fullName = yamlEntry.userString
|
||||||
? this.getString(yamlEntry.userString)
|
? this.getString(yamlEntry.userString)
|
||||||
@@ -20,12 +63,49 @@ export abstract class ServerBlitzKitAPI2 extends ServerBlitzKitAPI1 {
|
|||||||
const resolvedTankName = shortName ?? fullName;
|
const resolvedTankName = shortName ?? fullName;
|
||||||
const resolvedTankNameFull =
|
const resolvedTankNameFull =
|
||||||
resolvedTankName === fullName ? undefined : fullName;
|
resolvedTankName === fullName ? undefined : fullName;
|
||||||
|
const include = camo.vehicleFilter.include;
|
||||||
|
const vehicle =
|
||||||
|
include && !Array.isArray(include) && "vehicle" in include
|
||||||
|
? include.vehicle?.name
|
||||||
|
: undefined;
|
||||||
|
let tankId: number | undefined = undefined;
|
||||||
|
|
||||||
|
if (vehicle && vehicle in this.tankStringIdMap) {
|
||||||
|
const resolvedParts = await Promise.all(
|
||||||
|
Object.values(yamlEntry.customEntities ?? {}).map(
|
||||||
|
async ({ item }) => {
|
||||||
|
const path = items.get(item);
|
||||||
|
|
||||||
|
return (
|
||||||
|
path !== undefined &&
|
||||||
|
(await this.vfs.resolve(`${path}.sc2`)) &&
|
||||||
|
(await this.vfs.resolve(`${path}.scg`))
|
||||||
|
);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
|
let hasPreset = false;
|
||||||
|
|
||||||
|
if (camo.group === "legendary" && yamlEntry.preset !== undefined) {
|
||||||
|
if (!skinPresets.has(vehicle)) {
|
||||||
|
skinPresets.set(vehicle, this.skinPresets(vehicle));
|
||||||
|
}
|
||||||
|
|
||||||
|
hasPreset = (await skinPresets.get(vehicle)!).has(yamlEntry.preset);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (resolvedParts.some(Boolean) || hasPreset) {
|
||||||
|
tankId = this.tankStringIdMap[vehicle];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
camouflageDefinitions.camouflages[camo.id] = {
|
camouflageDefinitions.camouflages[camo.id] = {
|
||||||
id: camo.id,
|
id: camo.id,
|
||||||
name: this.getString(camo.userString),
|
name: this.getString(camo.userString),
|
||||||
tank_name: resolvedTankName,
|
tank_name: resolvedTankName,
|
||||||
tank_name_full: resolvedTankNameFull,
|
tank_name_full: resolvedTankNameFull,
|
||||||
|
tank_id: tankId,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,10 +3,14 @@ import {
|
|||||||
BlitzCrewType,
|
BlitzCrewType,
|
||||||
ChassisDefinitionsList,
|
ChassisDefinitionsList,
|
||||||
Crew,
|
Crew,
|
||||||
EngineDefinitionsList,
|
|
||||||
GunDefinitionsList,
|
GunDefinitionsList,
|
||||||
|
I_HAT,
|
||||||
|
J_HAT,
|
||||||
|
K_HAT,
|
||||||
ModelDefinitions,
|
ModelDefinitions,
|
||||||
ResearchCost,
|
parseHierarchies,
|
||||||
|
Sc2ReadStream,
|
||||||
|
ScgReadStream,
|
||||||
TankParameters,
|
TankParameters,
|
||||||
toUniqueId,
|
toUniqueId,
|
||||||
TurretDefinitionsList,
|
TurretDefinitionsList,
|
||||||
@@ -14,17 +18,99 @@ import {
|
|||||||
VehicleDefinitionArmor,
|
VehicleDefinitionArmor,
|
||||||
VehicleDefinitionList,
|
VehicleDefinitionList,
|
||||||
VehicleDefinitions,
|
VehicleDefinitions,
|
||||||
|
VertexAttribute,
|
||||||
} from "@blitzkit/core";
|
} from "@blitzkit/core";
|
||||||
|
import { parse as parsePath } from "path";
|
||||||
|
import { MathUtils, Vector3 as THREEVector3, Vector3Tuple } from "three";
|
||||||
import { Cache } from "./0_base";
|
import { Cache } from "./0_base";
|
||||||
import { ServerBlitzKitAPI2 } from "./2_camouflageDefinitions";
|
import { ServerBlitzKitAPI2 } from "./2_camouflageDefinitions";
|
||||||
import { parse as parsePath } from "path";
|
|
||||||
import { Vector3Tuple } from "three";
|
|
||||||
|
|
||||||
export abstract class ServerBlitzKitAPI3 extends ServerBlitzKitAPI2 {
|
export abstract class ServerBlitzKitAPI3 extends ServerBlitzKitAPI2 {
|
||||||
private vector3TupleToBlitzkit(tuple: Vector3Tuple) {
|
private vector3TupleToBlitzkit(tuple: Vector3Tuple) {
|
||||||
return { x: tuple[0], y: tuple[1], z: tuple[2] } satisfies Vector3;
|
return { x: tuple[0], y: tuple[1], z: tuple[2] } satisfies Vector3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private async collisionBoundingBoxes(
|
||||||
|
nation: string,
|
||||||
|
tankKey: string,
|
||||||
|
turretRotation?: { yaw: number; pitch: number; roll: number },
|
||||||
|
) {
|
||||||
|
const boundingBoxes: Record<
|
||||||
|
string,
|
||||||
|
{ min: Vector3Tuple; max: Vector3Tuple }
|
||||||
|
> = {};
|
||||||
|
const path = `Data/3d/Tanks/CollisionMeshes/${nation}-${tankKey}`;
|
||||||
|
|
||||||
|
if (!(await this.vfs.resolve(`${path}.sc2`))) {
|
||||||
|
throw new Error(`Missing collision mesh for ${nation}-${tankKey}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
const sc2 = new Sc2ReadStream(
|
||||||
|
(await this.vfs.file(`${path}.sc2`)).buffer as ArrayBuffer,
|
||||||
|
).sc2();
|
||||||
|
const scg = new ScgReadStream(
|
||||||
|
(await this.vfs.file(`${path}.scg`)).buffer as ArrayBuffer,
|
||||||
|
).scg();
|
||||||
|
|
||||||
|
parseHierarchies(sc2["#hierarchy"], null, (hierarchy, components) => {
|
||||||
|
for (const component of components) {
|
||||||
|
if (component["comp.typename"] !== "RenderComponent") continue;
|
||||||
|
|
||||||
|
const polygonGroup = scg.get(
|
||||||
|
component["rc.renderObj"]["ro.batches"]["0000"]["rb.datasource"],
|
||||||
|
);
|
||||||
|
|
||||||
|
if (!polygonGroup) continue;
|
||||||
|
|
||||||
|
const min: Vector3Tuple = [Infinity, Infinity, Infinity];
|
||||||
|
const max: Vector3Tuple = [-Infinity, -Infinity, -Infinity];
|
||||||
|
const rotate =
|
||||||
|
turretRotation && hierarchy.name.toLowerCase().startsWith("turret");
|
||||||
|
|
||||||
|
polygonGroup.vertices.forEach((vertex) => {
|
||||||
|
vertex.forEach(({ attribute, value }) => {
|
||||||
|
if (attribute !== VertexAttribute.VERTEX) return;
|
||||||
|
|
||||||
|
const position = new THREEVector3(...value);
|
||||||
|
|
||||||
|
if (rotate) {
|
||||||
|
position
|
||||||
|
.applyAxisAngle(
|
||||||
|
I_HAT,
|
||||||
|
-MathUtils.degToRad(turretRotation.pitch),
|
||||||
|
)
|
||||||
|
.applyAxisAngle(
|
||||||
|
J_HAT,
|
||||||
|
-MathUtils.degToRad(turretRotation.roll),
|
||||||
|
)
|
||||||
|
.applyAxisAngle(
|
||||||
|
K_HAT,
|
||||||
|
-MathUtils.degToRad(turretRotation.yaw),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const coordinates = position.toArray();
|
||||||
|
|
||||||
|
for (let axis = 0; axis < 3; axis++) {
|
||||||
|
min[axis] = Math.min(min[axis], coordinates[axis]);
|
||||||
|
max[axis] = Math.max(max[axis], coordinates[axis]);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
boundingBoxes[hierarchy.name.toLowerCase()] = { min, max };
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!boundingBoxes.hull) {
|
||||||
|
throw new Error(`Missing hull collision mesh for ${nation}-${tankKey}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
return boundingBoxes;
|
||||||
|
}
|
||||||
|
|
||||||
private assignArmor(
|
private assignArmor(
|
||||||
raw: VehicleDefinitionArmor[string],
|
raw: VehicleDefinitionArmor[string],
|
||||||
id: number,
|
id: number,
|
||||||
@@ -55,9 +141,6 @@ export abstract class ServerBlitzKitAPI3 extends ServerBlitzKitAPI2 {
|
|||||||
const gunList = await this.vfs.xml<{
|
const gunList = await this.vfs.xml<{
|
||||||
root: GunDefinitionsList;
|
root: GunDefinitionsList;
|
||||||
}>(`Data/XML/item_defs/vehicles/${nation}/components/guns.xml`);
|
}>(`Data/XML/item_defs/vehicles/${nation}/components/guns.xml`);
|
||||||
const enginesList = await this.vfs.xml<{
|
|
||||||
root: EngineDefinitionsList;
|
|
||||||
}>(`Data/XML/item_defs/vehicles/${nation}/components/engines.xml`);
|
|
||||||
const chassisList = await this.vfs.xml<{
|
const chassisList = await this.vfs.xml<{
|
||||||
root: ChassisDefinitionsList;
|
root: ChassisDefinitionsList;
|
||||||
}>(`Data/XML/item_defs/vehicles/${nation}/components/chassis.xml`);
|
}>(`Data/XML/item_defs/vehicles/${nation}/components/chassis.xml`);
|
||||||
@@ -65,10 +148,6 @@ export abstract class ServerBlitzKitAPI3 extends ServerBlitzKitAPI2 {
|
|||||||
for (const tankKey in tankList.root) {
|
for (const tankKey in tankList.root) {
|
||||||
if (this.botPattern.test(tankKey)) continue;
|
if (this.botPattern.test(tankKey)) continue;
|
||||||
|
|
||||||
const gunXps = new Map<number, ResearchCost>();
|
|
||||||
const turretXps = new Map<number, ResearchCost>();
|
|
||||||
const engineXps = new Map<number, ResearchCost>();
|
|
||||||
const trackXps = new Map<number, ResearchCost>();
|
|
||||||
const tank = tankList.root[tankKey];
|
const tank = tankList.root[tankKey];
|
||||||
const tankDefinition = await this.vfs.xml<{ root: VehicleDefinitions }>(
|
const tankDefinition = await this.vfs.xml<{ root: VehicleDefinitions }>(
|
||||||
`Data/XML/item_defs/vehicles/${nation}/${tankKey}.xml`,
|
`Data/XML/item_defs/vehicles/${nation}/${tankKey}.xml`,
|
||||||
@@ -76,6 +155,12 @@ export abstract class ServerBlitzKitAPI3 extends ServerBlitzKitAPI2 {
|
|||||||
const tankParameters = await this.vfs.yaml<TankParameters>(
|
const tankParameters = await this.vfs.yaml<TankParameters>(
|
||||||
`Data/3d/Tanks/Parameters/${nation}/${tankKey}.yaml`,
|
`Data/3d/Tanks/Parameters/${nation}/${tankKey}.yaml`,
|
||||||
);
|
);
|
||||||
|
const collisionBoundingBoxes = await this.collisionBoundingBoxes(
|
||||||
|
nation,
|
||||||
|
tankKey,
|
||||||
|
tankDefinition.root.hull.turretInitialRotation,
|
||||||
|
);
|
||||||
|
const hullBoundingBox = collisionBoundingBoxes.hull;
|
||||||
const turretOrigin = tankDefinition.root.hull.turretPositions.turret
|
const turretOrigin = tankDefinition.root.hull.turretPositions.turret
|
||||||
.split(" ")
|
.split(" ")
|
||||||
.map(Number) as Vector3Tuple;
|
.map(Number) as Vector3Tuple;
|
||||||
@@ -150,12 +235,8 @@ export abstract class ServerBlitzKitAPI3 extends ServerBlitzKitAPI2 {
|
|||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
bounding_box: {
|
bounding_box: {
|
||||||
min: this.vector3TupleToBlitzkit(
|
min: this.vector3TupleToBlitzkit(hullBoundingBox.min),
|
||||||
tankParameters.collision.hull.bbox.min,
|
max: this.vector3TupleToBlitzkit(hullBoundingBox.max),
|
||||||
),
|
|
||||||
max: this.vector3TupleToBlitzkit(
|
|
||||||
tankParameters.collision.hull.bbox.max,
|
|
||||||
),
|
|
||||||
},
|
},
|
||||||
turrets: {},
|
turrets: {},
|
||||||
tracks: {},
|
tracks: {},
|
||||||
@@ -217,26 +298,35 @@ export abstract class ServerBlitzKitAPI3 extends ServerBlitzKitAPI2 {
|
|||||||
|
|
||||||
turret.userString;
|
turret.userString;
|
||||||
|
|
||||||
|
const turretCollisionName = parsePath(
|
||||||
|
turret.hitTester.collisionModel,
|
||||||
|
).name.toLowerCase();
|
||||||
|
const isFullYaw = -turretYaw[0] + turretYaw[1] === 360;
|
||||||
|
|
||||||
|
if (!collisionBoundingBoxes[turretCollisionName] && isFullYaw) {
|
||||||
|
throw new Error(
|
||||||
|
`Missing turret collision mesh for ${nation}-${tankKey} ${turretKey}`,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const turretBoundingBox = collisionBoundingBoxes[
|
||||||
|
turretCollisionName
|
||||||
|
] ?? {
|
||||||
|
min: [0, 0, 0] as Vector3Tuple,
|
||||||
|
max: [0, 0, 0] as Vector3Tuple,
|
||||||
|
};
|
||||||
|
|
||||||
modelDefinitions.models[tankId].turrets[turretId] = {
|
modelDefinitions.models[tankId].turrets[turretId] = {
|
||||||
armor: turretArmor,
|
armor: turretArmor,
|
||||||
gun_origin: this.vector3TupleToBlitzkit(gunOrigin),
|
gun_origin: this.vector3TupleToBlitzkit(gunOrigin),
|
||||||
model_id: turretModel,
|
model_id: turretModel,
|
||||||
yaw:
|
yaw: isFullYaw
|
||||||
-turretYaw[0] + turretYaw[1] === 360
|
? undefined
|
||||||
? undefined
|
: { min: turretYaw[0], max: turretYaw[1] },
|
||||||
: { min: turretYaw[0], max: turretYaw[1] },
|
|
||||||
guns: {},
|
guns: {},
|
||||||
bounding_box: {
|
bounding_box: {
|
||||||
min: this.vector3TupleToBlitzkit(
|
min: this.vector3TupleToBlitzkit(turretBoundingBox.min),
|
||||||
tankParameters.collision[
|
max: this.vector3TupleToBlitzkit(turretBoundingBox.max),
|
||||||
parsePath(turret.hitTester.collisionModel).name.toLowerCase()
|
|
||||||
].bbox.min,
|
|
||||||
),
|
|
||||||
max: this.vector3TupleToBlitzkit(
|
|
||||||
tankParameters.collision[
|
|
||||||
parsePath(turret.hitTester.collisionModel).name.toLowerCase()
|
|
||||||
].bbox.max,
|
|
||||||
),
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -44,9 +44,7 @@ export abstract class ServerBlitzKitAPI6 extends ServerBlitzKitAPI5 {
|
|||||||
filter_type: {
|
filter_type: {
|
||||||
$case: "ids",
|
$case: "ids",
|
||||||
value: {
|
value: {
|
||||||
ids: includeRaw.name.split(/ +/).map((key) => {
|
ids: this.getTankFilterIds(includeRaw.name, key, "include"),
|
||||||
return this.tankStringIdMap[key];
|
|
||||||
}),
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@@ -72,9 +70,7 @@ export abstract class ServerBlitzKitAPI6 extends ServerBlitzKitAPI5 {
|
|||||||
filter_type: {
|
filter_type: {
|
||||||
$case: "ids",
|
$case: "ids",
|
||||||
value: {
|
value: {
|
||||||
ids: excludeRaw.name.split(/ +/).map((key) => {
|
ids: this.getTankFilterIds(excludeRaw.name, key, "exclude"),
|
||||||
return this.tankStringIdMap[key];
|
|
||||||
}),
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export abstract class ServerBlitzKitAPI7 extends ServerBlitzKitAPI6 {
|
|||||||
async provisionDefinitions() {
|
async provisionDefinitions() {
|
||||||
const provisionDefinitions = ProvisionDefinitions.create();
|
const provisionDefinitions = ProvisionDefinitions.create();
|
||||||
|
|
||||||
Object.entries(this.provisionsCommon).forEach(([, provision]) => {
|
Object.entries(this.provisionsCommon).forEach(([key, provision]) => {
|
||||||
const entry: Provision = {
|
const entry: Provision = {
|
||||||
id: provision.id,
|
id: provision.id,
|
||||||
exclude: [],
|
exclude: [],
|
||||||
@@ -42,9 +42,7 @@ export abstract class ServerBlitzKitAPI7 extends ServerBlitzKitAPI6 {
|
|||||||
filter_type: {
|
filter_type: {
|
||||||
$case: "ids",
|
$case: "ids",
|
||||||
value: {
|
value: {
|
||||||
ids: includeRaw.name.split(/ +/).map((key) => {
|
ids: this.getTankFilterIds(includeRaw.name, key, "include"),
|
||||||
return this.tankStringIdMap[key];
|
|
||||||
}),
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@@ -70,9 +68,7 @@ export abstract class ServerBlitzKitAPI7 extends ServerBlitzKitAPI6 {
|
|||||||
filter_type: {
|
filter_type: {
|
||||||
$case: "ids",
|
$case: "ids",
|
||||||
value: {
|
value: {
|
||||||
ids: excludeRaw.name
|
ids: this.getTankFilterIds(excludeRaw.name, key, "exclude"),
|
||||||
.split(/ +/)
|
|
||||||
.map((key) => this.tankStringIdMap[key]),
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -27,9 +27,9 @@ export abstract class ServerBlitzKitAPI9 extends ServerBlitzKitAPI8 {
|
|||||||
).available_nations;
|
).available_nations;
|
||||||
|
|
||||||
for (const match of this.squadBattleTypeStyles!.Prototypes[0].components.UIDataLocalBindingsComponent.data[1][2].matchAll(
|
for (const match of this.squadBattleTypeStyles!.Prototypes[0].components.UIDataLocalBindingsComponent.data[1][2].matchAll(
|
||||||
/"(\d+)" -> "(battleType\/([a-zA-Z]+))"/g,
|
/eGameMode\.(\w+) -> "(battleType\/([a-zA-Z]+))"/g,
|
||||||
)) {
|
)) {
|
||||||
const id = Number(match[1]);
|
const id = match[1];
|
||||||
const name = this.getString(match[2]);
|
const name = this.getString(match[2]);
|
||||||
|
|
||||||
gameDefinitions.gameModes[id] = {
|
gameDefinitions.gameModes[id] = {
|
||||||
|
|||||||
@@ -1,28 +1,42 @@
|
|||||||
import { assertSecret } from "@blitzkit/core";
|
import { assertSecret } from "@blitzkit/core";
|
||||||
|
|
||||||
interface EnvironmentConfig {
|
interface EnvironmentConfig {
|
||||||
|
robots: boolean;
|
||||||
|
canonical: string;
|
||||||
paths: Record<string, string | null>;
|
paths: Record<string, string | null>;
|
||||||
nodes: Record<string, string>;
|
nodes: Record<string, string>;
|
||||||
aliases: Record<string, string>;
|
aliases: Record<string, string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const environments = import.meta.glob(
|
let hasReadEnvironments = false;
|
||||||
"../../../../environments/*.json",
|
const environments: Record<string, EnvironmentConfig> = {};
|
||||||
{
|
|
||||||
|
/**
|
||||||
|
* This is set up this way to avoid errors in runtimes where
|
||||||
|
* `import.meta.glob` does not exist.
|
||||||
|
*/
|
||||||
|
function readEnvironments() {
|
||||||
|
if (hasReadEnvironments) return;
|
||||||
|
|
||||||
|
hasReadEnvironments = true;
|
||||||
|
|
||||||
|
const glob = import.meta.glob("../../../../environments/*.json", {
|
||||||
eager: true,
|
eager: true,
|
||||||
import: "default",
|
import: "default",
|
||||||
},
|
}) as Record<string, EnvironmentConfig>;
|
||||||
) as Record<string, EnvironmentConfig>;
|
const root = "../../../../environments";
|
||||||
const root = "../../../../environments";
|
|
||||||
|
|
||||||
for (const key in environments) {
|
for (const key in glob) {
|
||||||
const trimmed = key.slice(root.length + 1, -5);
|
const trimmed = key.slice(root.length + 1, -5);
|
||||||
|
|
||||||
environments[trimmed] = environments[key];
|
environments[trimmed] = glob[key];
|
||||||
delete environments[key];
|
delete environments[key];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function environmentConfig() {
|
export function environmentConfig() {
|
||||||
|
readEnvironments();
|
||||||
|
|
||||||
const environment = assertSecret(import.meta.env.PUBLIC_ENVIRONMENT);
|
const environment = assertSecret(import.meta.env.PUBLIC_ENVIRONMENT);
|
||||||
|
|
||||||
if (!(environment in environments)) {
|
if (!(environment in environments)) {
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ export * from "./sluggify";
|
|||||||
export * from "./staticAsset";
|
export * from "./staticAsset";
|
||||||
export * from "./sum";
|
export * from "./sum";
|
||||||
export * from "./tankDefinitions";
|
export * from "./tankDefinitions";
|
||||||
|
export * from "./tankBoundingBox";
|
||||||
export * from "./tankIcon";
|
export * from "./tankIcon";
|
||||||
export * from "./tankNames";
|
export * from "./tankNames";
|
||||||
export * from "./unionBoundingBox";
|
export * from "./unionBoundingBox";
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ export function metaSortTank(
|
|||||||
gameDefinitions: GameDefinitions,
|
gameDefinitions: GameDefinitions,
|
||||||
) {
|
) {
|
||||||
return tanks
|
return tanks
|
||||||
|
.sort((a, b) => a.id - b.id)
|
||||||
.sort((a, b) => b.tier - a.tier)
|
.sort((a, b) => b.tier - a.tier)
|
||||||
.sort(
|
.sort(
|
||||||
(a, b) => treeTypeOrder.indexOf(b.type) - treeTypeOrder.indexOf(a.type),
|
(a, b) => treeTypeOrder.indexOf(b.type) - treeTypeOrder.indexOf(a.type),
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
import { ModelDefinition, TurretModelDefinition } from "../protos";
|
||||||
|
import { unionBoundingBox } from "./unionBoundingBox";
|
||||||
|
|
||||||
|
export function tankBoundingBox(
|
||||||
|
tankModelDefinition: ModelDefinition,
|
||||||
|
turretModelDefinition: TurretModelDefinition,
|
||||||
|
) {
|
||||||
|
const hull = tankModelDefinition.bounding_box!;
|
||||||
|
const turret = turretModelDefinition.bounding_box!;
|
||||||
|
const origin = tankModelDefinition.turret_origin!;
|
||||||
|
|
||||||
|
if (
|
||||||
|
turret.min!.x === turret.max!.x &&
|
||||||
|
turret.min!.y === turret.max!.y &&
|
||||||
|
turret.min!.z === turret.max!.z
|
||||||
|
) {
|
||||||
|
return unionBoundingBox(hull, hull);
|
||||||
|
}
|
||||||
|
|
||||||
|
return unionBoundingBox(hull, {
|
||||||
|
min: {
|
||||||
|
x: turret.min!.x + origin.x,
|
||||||
|
y: turret.min!.y + origin.z,
|
||||||
|
z: turret.min!.z + origin.y,
|
||||||
|
},
|
||||||
|
max: {
|
||||||
|
x: turret.max!.x + origin.x,
|
||||||
|
y: turret.max!.y + origin.z,
|
||||||
|
z: turret.max!.z + origin.y,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { times } from "lodash-es";
|
import { times } from "lodash-es";
|
||||||
import { CrewType, ShellType, TankClass, TankType } from "../../protos";
|
import { CrewType, ShellType } from "../../protos";
|
||||||
|
|
||||||
export const SHELL_NAMES: Record<ShellType, string> = {
|
export const SHELL_NAMES: Record<ShellType, string> = {
|
||||||
[ShellType.SHELL_TYPE_AP]: "AP",
|
[ShellType.SHELL_TYPE_AP]: "AP",
|
||||||
@@ -15,33 +15,6 @@ export const CREW_MEMBER_NAMES = {
|
|||||||
[CrewType.CREW_TYPE_RADIOMAN]: "radioman",
|
[CrewType.CREW_TYPE_RADIOMAN]: "radioman",
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated use svg
|
|
||||||
*/
|
|
||||||
export const TANK_ICONS: Record<TankClass, string> = {
|
|
||||||
[TankClass.TANK_CLASS_TANK_DESTROYER]: "https://i.imgur.com/BIHSEH0.png",
|
|
||||||
[TankClass.TANK_CLASS_LIGHT]: "https://i.imgur.com/CSNha5V.png",
|
|
||||||
[TankClass.TANK_CLASS_MEDIUM]: "https://i.imgur.com/wvf3ltm.png",
|
|
||||||
[TankClass.TANK_CLASS_HEAVY]: "https://i.imgur.com/ECeqlZa.png",
|
|
||||||
};
|
|
||||||
/**
|
|
||||||
* @deprecated use svg
|
|
||||||
*/
|
|
||||||
export const TANK_ICONS_PREMIUM: Record<TankClass, string> = {
|
|
||||||
[TankClass.TANK_CLASS_TANK_DESTROYER]: "https://i.imgur.com/TCu3EdR.png",
|
|
||||||
[TankClass.TANK_CLASS_LIGHT]: "https://i.imgur.com/zdkpTRb.png",
|
|
||||||
[TankClass.TANK_CLASS_MEDIUM]: "https://i.imgur.com/3z7eHX6.png",
|
|
||||||
[TankClass.TANK_CLASS_HEAVY]: "https://i.imgur.com/P3vbmyA.png",
|
|
||||||
};
|
|
||||||
/**
|
|
||||||
* @deprecated use svg
|
|
||||||
*/
|
|
||||||
export const TANK_ICONS_COLLECTOR: Record<TankClass, string> = {
|
|
||||||
[TankClass.TANK_CLASS_TANK_DESTROYER]: "https://i.imgur.com/WTjeirB.png",
|
|
||||||
[TankClass.TANK_CLASS_LIGHT]: "https://i.imgur.com/EwhtKkU.png",
|
|
||||||
[TankClass.TANK_CLASS_MEDIUM]: "https://i.imgur.com/u8YDMBh.png",
|
|
||||||
[TankClass.TANK_CLASS_HEAVY]: "https://i.imgur.com/8xRf3nc.png",
|
|
||||||
};
|
|
||||||
export const TIERS = times(10, (index) => index + 1);
|
export const TIERS = times(10, (index) => index + 1);
|
||||||
export const TIER_ROMAN_NUMERALS: Record<number, string> = {
|
export const TIER_ROMAN_NUMERALS: Record<number, string> = {
|
||||||
1: "I",
|
1: "I",
|
||||||
@@ -54,6 +27,7 @@ export const TIER_ROMAN_NUMERALS: Record<number, string> = {
|
|||||||
8: "VIII",
|
8: "VIII",
|
||||||
9: "IX",
|
9: "IX",
|
||||||
10: "X",
|
10: "X",
|
||||||
|
11: "XI",
|
||||||
};
|
};
|
||||||
|
|
||||||
export const flags: Record<string, string> = {
|
export const flags: Record<string, string> = {
|
||||||
@@ -67,8 +41,3 @@ export const flags: Record<string, string> = {
|
|||||||
european: "🇪🇺",
|
european: "🇪🇺",
|
||||||
other: "<:other:1218421572243558482>",
|
other: "<:other:1218421572243558482>",
|
||||||
};
|
};
|
||||||
export const TREE_TYPE_ICONS: Record<TankType, Record<TankClass, string>> = {
|
|
||||||
[TankType.TANK_TYPE_RESEARCHABLE]: TANK_ICONS,
|
|
||||||
[TankType.TANK_TYPE_PREMIUM]: TANK_ICONS_PREMIUM,
|
|
||||||
[TankType.TANK_TYPE_COLLECTOR]: TANK_ICONS_COLLECTOR,
|
|
||||||
};
|
|
||||||
@@ -18,11 +18,22 @@ export async function fetchTankNames(api: BlitzKitAPI) {
|
|||||||
searchableNameDeburr.locales[key] = deburr(value);
|
searchableNameDeburr.locales[key] = deburr(value);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const searchableNameFull: I18nString = {
|
||||||
|
locales: { ...tank.name_full?.locales },
|
||||||
|
};
|
||||||
|
const searchableNameFullDeburr: I18nString = { locales: {} };
|
||||||
|
|
||||||
|
Object.entries(searchableNameFull.locales).forEach(([key, value]) => {
|
||||||
|
searchableNameFullDeburr.locales[key] = deburr(value);
|
||||||
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
id: tank.id,
|
id: tank.id,
|
||||||
name: tank.name,
|
name: tank.name,
|
||||||
searchableName: tank.name,
|
searchableName: tank.name,
|
||||||
searchableNameDeburr,
|
searchableNameDeburr,
|
||||||
|
searchableNameFull,
|
||||||
|
searchableNameFullDeburr,
|
||||||
camouflages: tank.camouflages
|
camouflages: tank.camouflages
|
||||||
?.map((id) =>
|
?.map((id) =>
|
||||||
locales.supported.map(
|
locales.supported.map(
|
||||||
@@ -45,6 +56,8 @@ export const SEARCH_KEYS = [
|
|||||||
.map(({ locale }) => [
|
.map(({ locale }) => [
|
||||||
`searchableName.locales.${locale}`,
|
`searchableName.locales.${locale}`,
|
||||||
`searchableNameDeburr.locales.${locale}`,
|
`searchableNameDeburr.locales.${locale}`,
|
||||||
|
`searchableNameFull.locales.${locale}`,
|
||||||
|
`searchableNameFullDeburr.locales.${locale}`,
|
||||||
])
|
])
|
||||||
.flat(),
|
.flat(),
|
||||||
"camouflages",
|
"camouflages",
|
||||||
|
|||||||
@@ -46,7 +46,15 @@ export abstract class AbstractVFS {
|
|||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
abstract dir(path: string): Promise<string[]>;
|
protected abstract _dir(path: string): Promise<string[]>;
|
||||||
|
|
||||||
|
async dir(path: string) {
|
||||||
|
const files = await this._dir(path);
|
||||||
|
|
||||||
|
return files.map((file) =>
|
||||||
|
file.endsWith(".dvpl") ? file.slice(0, -5) : file,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
async text(path: string) {
|
async text(path: string) {
|
||||||
const file = await this.file(path);
|
const file = await this.file(path);
|
||||||
@@ -63,7 +71,7 @@ export abstract class AbstractVFS {
|
|||||||
return this.xmlParser.parse(file) as Type;
|
return this.xmlParser.parse(file) as Type;
|
||||||
}
|
}
|
||||||
|
|
||||||
async _csv(text: string, options: Options = {}) {
|
protected async _csv(text: string, options: Options = {}) {
|
||||||
const parsed = parseCSV(text, options);
|
const parsed = parseCSV(text, options);
|
||||||
return parsed;
|
return parsed;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export class LocalVFS extends AbstractVFS {
|
|||||||
return array;
|
return array;
|
||||||
}
|
}
|
||||||
|
|
||||||
async dir(path: string) {
|
async _dir(path: string) {
|
||||||
try {
|
try {
|
||||||
return await readdir(`${this.base}/${path}`);
|
return await readdir(`${this.base}/${path}`);
|
||||||
} catch (_) {
|
} catch (_) {
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export class MixedVFS extends AbstractVFS {
|
|||||||
throw new Error(`File not found: ${path}`);
|
throw new Error(`File not found: ${path}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
async dir(path: string) {
|
async _dir(path: string) {
|
||||||
const files = new Set<string>();
|
const files = new Set<string>();
|
||||||
|
|
||||||
for (const vfs of this.vfses) {
|
for (const vfs of this.vfses) {
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ export class SteamVFS extends AbstractVFS {
|
|||||||
return new Uint8Array(downloaded.file);
|
return new Uint8Array(downloaded.file);
|
||||||
}
|
}
|
||||||
|
|
||||||
async dir(path: string) {
|
async _dir(path: string) {
|
||||||
const parentSegments = path.split("/").length;
|
const parentSegments = path.split("/").length;
|
||||||
const children = new Set<string>();
|
const children = new Set<string>();
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ export class ZipVFS extends AbstractVFS {
|
|||||||
return new Uint8Array(arrayBuffer);
|
return new Uint8Array(arrayBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
async dir(path: string) {
|
async _dir(path: string) {
|
||||||
const parentSegments = path.split("/").length;
|
const parentSegments = path.split("/").length;
|
||||||
const children = new Set<string>();
|
const children = new Set<string>();
|
||||||
|
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
export enum ImgurSize {
|
|
||||||
/**
|
|
||||||
* The default size
|
|
||||||
*/
|
|
||||||
Default = '',
|
|
||||||
/**
|
|
||||||
* Unknown size but really really small
|
|
||||||
*/
|
|
||||||
UltraSmall = 'ss',
|
|
||||||
/**
|
|
||||||
* 90x90
|
|
||||||
*/
|
|
||||||
SmallSquare = 's',
|
|
||||||
/**
|
|
||||||
* 160x160
|
|
||||||
*/
|
|
||||||
BigSquare = 'b',
|
|
||||||
/**
|
|
||||||
* 160x160
|
|
||||||
*/
|
|
||||||
SmallThumbnail = 't',
|
|
||||||
/**
|
|
||||||
* 320x320
|
|
||||||
*/
|
|
||||||
MediumThumbnail = 'm',
|
|
||||||
/**
|
|
||||||
* 640x640
|
|
||||||
*/
|
|
||||||
LargeThumbnail = 'l',
|
|
||||||
/**
|
|
||||||
* 1024x1024
|
|
||||||
*/
|
|
||||||
HugeThumbnail = 'h',
|
|
||||||
}
|
|
||||||
|
|
||||||
interface ImgurOptions {
|
|
||||||
format: 'jpeg' | 'png';
|
|
||||||
size: ImgurSize;
|
|
||||||
}
|
|
||||||
|
|
||||||
const defaultImgurOptions: ImgurOptions = {
|
|
||||||
format: 'png',
|
|
||||||
size: ImgurSize.Default,
|
|
||||||
};
|
|
||||||
|
|
||||||
export function imgur(id: string, imgurOptions?: Partial<ImgurOptions>) {
|
|
||||||
const options = { ...defaultImgurOptions, ...imgurOptions };
|
|
||||||
|
|
||||||
return `https://i.imgur.com/${id}${options.size}.${options.format}`;
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
export * from './imgur';
|
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
export * from "./blitz";
|
export * from "./blitz";
|
||||||
export * from "./blitzkit";
|
export * from "./blitzkit";
|
||||||
export * from "./imgur";
|
|
||||||
export * from "./math";
|
export * from "./math";
|
||||||
export * from "./patreon";
|
export * from "./patreon";
|
||||||
export * from "./protobuf";
|
export * from "./protobuf";
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-ts_proto v2.11.2
|
// protoc-gen-ts_proto v2.7.7
|
||||||
// protoc v5.28.2
|
// protoc v3.19.6
|
||||||
// source: average_definitions.proto
|
// source: average_definitions.proto
|
||||||
|
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
@@ -64,7 +64,7 @@ function createBaseAverageDefinitions(): AverageDefinitions {
|
|||||||
|
|
||||||
export const AverageDefinitions: MessageFns<AverageDefinitions> = {
|
export const AverageDefinitions: MessageFns<AverageDefinitions> = {
|
||||||
encode(message: AverageDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
encode(message: AverageDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
||||||
globalThis.Object.entries(message.averages).forEach(([key, value]: [string, AverageDefinitionsEntry]) => {
|
Object.entries(message.averages).forEach(([key, value]) => {
|
||||||
AverageDefinitions_AveragesEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
AverageDefinitions_AveragesEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
||||||
});
|
});
|
||||||
if (message.samples !== undefined) {
|
if (message.samples !== undefined) {
|
||||||
@@ -122,13 +122,10 @@ export const AverageDefinitions: MessageFns<AverageDefinitions> = {
|
|||||||
fromJSON(object: any): AverageDefinitions {
|
fromJSON(object: any): AverageDefinitions {
|
||||||
return {
|
return {
|
||||||
averages: isObject(object.averages)
|
averages: isObject(object.averages)
|
||||||
? (globalThis.Object.entries(object.averages) as [string, any][]).reduce(
|
? Object.entries(object.averages).reduce<{ [key: number]: AverageDefinitionsEntry }>((acc, [key, value]) => {
|
||||||
(acc: { [key: number]: AverageDefinitionsEntry }, [key, value]: [string, any]) => {
|
acc[globalThis.Number(key)] = AverageDefinitionsEntry.fromJSON(value);
|
||||||
acc[globalThis.Number(key)] = AverageDefinitionsEntry.fromJSON(value);
|
return acc;
|
||||||
return acc;
|
}, {})
|
||||||
},
|
|
||||||
{},
|
|
||||||
)
|
|
||||||
: {},
|
: {},
|
||||||
samples: isSet(object.samples) ? Samples.fromJSON(object.samples) : undefined,
|
samples: isSet(object.samples) ? Samples.fromJSON(object.samples) : undefined,
|
||||||
time: isSet(object.time) ? globalThis.Number(object.time) : 0,
|
time: isSet(object.time) ? globalThis.Number(object.time) : 0,
|
||||||
@@ -138,7 +135,7 @@ export const AverageDefinitions: MessageFns<AverageDefinitions> = {
|
|||||||
toJSON(message: AverageDefinitions): unknown {
|
toJSON(message: AverageDefinitions): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
if (message.averages) {
|
if (message.averages) {
|
||||||
const entries = globalThis.Object.entries(message.averages) as [string, AverageDefinitionsEntry][];
|
const entries = Object.entries(message.averages);
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.averages = {};
|
obj.averages = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -160,8 +157,8 @@ export const AverageDefinitions: MessageFns<AverageDefinitions> = {
|
|||||||
},
|
},
|
||||||
fromPartial<I extends Exact<DeepPartial<AverageDefinitions>, I>>(object: I): AverageDefinitions {
|
fromPartial<I extends Exact<DeepPartial<AverageDefinitions>, I>>(object: I): AverageDefinitions {
|
||||||
const message = createBaseAverageDefinitions();
|
const message = createBaseAverageDefinitions();
|
||||||
message.averages = (globalThis.Object.entries(object.averages ?? {}) as [string, AverageDefinitionsEntry][]).reduce(
|
message.averages = Object.entries(object.averages ?? {}).reduce<{ [key: number]: AverageDefinitionsEntry }>(
|
||||||
(acc: { [key: number]: AverageDefinitionsEntry }, [key, value]: [string, AverageDefinitionsEntry]) => {
|
(acc, [key, value]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
acc[globalThis.Number(key)] = AverageDefinitionsEntry.fromPartial(value);
|
acc[globalThis.Number(key)] = AverageDefinitionsEntry.fromPartial(value);
|
||||||
}
|
}
|
||||||
@@ -620,59 +617,25 @@ export const AverageDefinitionsAllStats: MessageFns<AverageDefinitionsAllStats>
|
|||||||
fromJSON(object: any): AverageDefinitionsAllStats {
|
fromJSON(object: any): AverageDefinitionsAllStats {
|
||||||
return {
|
return {
|
||||||
battles: isSet(object.battles) ? globalThis.Number(object.battles) : 0,
|
battles: isSet(object.battles) ? globalThis.Number(object.battles) : 0,
|
||||||
capture_points: isSet(object.capturePoints)
|
capture_points: isSet(object.capture_points) ? globalThis.Number(object.capture_points) : 0,
|
||||||
? globalThis.Number(object.capturePoints)
|
damage_dealt: isSet(object.damage_dealt) ? globalThis.Number(object.damage_dealt) : 0,
|
||||||
: isSet(object.capture_points)
|
damage_received: isSet(object.damage_received) ? globalThis.Number(object.damage_received) : 0,
|
||||||
? globalThis.Number(object.capture_points)
|
dropped_capture_points: isSet(object.dropped_capture_points)
|
||||||
: 0,
|
|
||||||
damage_dealt: isSet(object.damageDealt)
|
|
||||||
? globalThis.Number(object.damageDealt)
|
|
||||||
: isSet(object.damage_dealt)
|
|
||||||
? globalThis.Number(object.damage_dealt)
|
|
||||||
: 0,
|
|
||||||
damage_received: isSet(object.damageReceived)
|
|
||||||
? globalThis.Number(object.damageReceived)
|
|
||||||
: isSet(object.damage_received)
|
|
||||||
? globalThis.Number(object.damage_received)
|
|
||||||
: 0,
|
|
||||||
dropped_capture_points: isSet(object.droppedCapturePoints)
|
|
||||||
? globalThis.Number(object.droppedCapturePoints)
|
|
||||||
: isSet(object.dropped_capture_points)
|
|
||||||
? globalThis.Number(object.dropped_capture_points)
|
? globalThis.Number(object.dropped_capture_points)
|
||||||
: 0,
|
: 0,
|
||||||
frags: isSet(object.frags) ? globalThis.Number(object.frags) : 0,
|
frags: isSet(object.frags) ? globalThis.Number(object.frags) : 0,
|
||||||
frags8p: isSet(object.frags8p) ? globalThis.Number(object.frags8p) : 0,
|
frags8p: isSet(object.frags8p) ? globalThis.Number(object.frags8p) : 0,
|
||||||
hits: isSet(object.hits) ? globalThis.Number(object.hits) : 0,
|
hits: isSet(object.hits) ? globalThis.Number(object.hits) : 0,
|
||||||
losses: isSet(object.losses) ? globalThis.Number(object.losses) : 0,
|
losses: isSet(object.losses) ? globalThis.Number(object.losses) : 0,
|
||||||
max_frags: isSet(object.maxFrags)
|
max_frags: isSet(object.max_frags) ? globalThis.Number(object.max_frags) : 0,
|
||||||
? globalThis.Number(object.maxFrags)
|
max_xp: isSet(object.max_xp) ? globalThis.Number(object.max_xp) : 0,
|
||||||
: isSet(object.max_frags)
|
|
||||||
? globalThis.Number(object.max_frags)
|
|
||||||
: 0,
|
|
||||||
max_xp: isSet(object.maxXp)
|
|
||||||
? globalThis.Number(object.maxXp)
|
|
||||||
: isSet(object.max_xp)
|
|
||||||
? globalThis.Number(object.max_xp)
|
|
||||||
: 0,
|
|
||||||
shots: isSet(object.shots) ? globalThis.Number(object.shots) : 0,
|
shots: isSet(object.shots) ? globalThis.Number(object.shots) : 0,
|
||||||
spotted: isSet(object.spotted) ? globalThis.Number(object.spotted) : 0,
|
spotted: isSet(object.spotted) ? globalThis.Number(object.spotted) : 0,
|
||||||
survived_battles: isSet(object.survivedBattles)
|
survived_battles: isSet(object.survived_battles) ? globalThis.Number(object.survived_battles) : 0,
|
||||||
? globalThis.Number(object.survivedBattles)
|
win_and_survived: isSet(object.win_and_survived) ? globalThis.Number(object.win_and_survived) : 0,
|
||||||
: isSet(object.survived_battles)
|
|
||||||
? globalThis.Number(object.survived_battles)
|
|
||||||
: 0,
|
|
||||||
win_and_survived: isSet(object.winAndSurvived)
|
|
||||||
? globalThis.Number(object.winAndSurvived)
|
|
||||||
: isSet(object.win_and_survived)
|
|
||||||
? globalThis.Number(object.win_and_survived)
|
|
||||||
: 0,
|
|
||||||
wins: isSet(object.wins) ? globalThis.Number(object.wins) : 0,
|
wins: isSet(object.wins) ? globalThis.Number(object.wins) : 0,
|
||||||
xp: isSet(object.xp) ? globalThis.Number(object.xp) : 0,
|
xp: isSet(object.xp) ? globalThis.Number(object.xp) : 0,
|
||||||
battle_life_time: isSet(object.battleLifeTime)
|
battle_life_time: isSet(object.battle_life_time) ? globalThis.Number(object.battle_life_time) : 0,
|
||||||
? globalThis.Number(object.battleLifeTime)
|
|
||||||
: isSet(object.battle_life_time)
|
|
||||||
? globalThis.Number(object.battle_life_time)
|
|
||||||
: 0,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -682,16 +645,16 @@ export const AverageDefinitionsAllStats: MessageFns<AverageDefinitionsAllStats>
|
|||||||
obj.battles = message.battles;
|
obj.battles = message.battles;
|
||||||
}
|
}
|
||||||
if (message.capture_points !== 0) {
|
if (message.capture_points !== 0) {
|
||||||
obj.capturePoints = message.capture_points;
|
obj.capture_points = message.capture_points;
|
||||||
}
|
}
|
||||||
if (message.damage_dealt !== 0) {
|
if (message.damage_dealt !== 0) {
|
||||||
obj.damageDealt = message.damage_dealt;
|
obj.damage_dealt = message.damage_dealt;
|
||||||
}
|
}
|
||||||
if (message.damage_received !== 0) {
|
if (message.damage_received !== 0) {
|
||||||
obj.damageReceived = message.damage_received;
|
obj.damage_received = message.damage_received;
|
||||||
}
|
}
|
||||||
if (message.dropped_capture_points !== 0) {
|
if (message.dropped_capture_points !== 0) {
|
||||||
obj.droppedCapturePoints = message.dropped_capture_points;
|
obj.dropped_capture_points = message.dropped_capture_points;
|
||||||
}
|
}
|
||||||
if (message.frags !== 0) {
|
if (message.frags !== 0) {
|
||||||
obj.frags = message.frags;
|
obj.frags = message.frags;
|
||||||
@@ -706,10 +669,10 @@ export const AverageDefinitionsAllStats: MessageFns<AverageDefinitionsAllStats>
|
|||||||
obj.losses = message.losses;
|
obj.losses = message.losses;
|
||||||
}
|
}
|
||||||
if (message.max_frags !== 0) {
|
if (message.max_frags !== 0) {
|
||||||
obj.maxFrags = message.max_frags;
|
obj.max_frags = message.max_frags;
|
||||||
}
|
}
|
||||||
if (message.max_xp !== 0) {
|
if (message.max_xp !== 0) {
|
||||||
obj.maxXp = message.max_xp;
|
obj.max_xp = message.max_xp;
|
||||||
}
|
}
|
||||||
if (message.shots !== 0) {
|
if (message.shots !== 0) {
|
||||||
obj.shots = message.shots;
|
obj.shots = message.shots;
|
||||||
@@ -718,10 +681,10 @@ export const AverageDefinitionsAllStats: MessageFns<AverageDefinitionsAllStats>
|
|||||||
obj.spotted = message.spotted;
|
obj.spotted = message.spotted;
|
||||||
}
|
}
|
||||||
if (message.survived_battles !== 0) {
|
if (message.survived_battles !== 0) {
|
||||||
obj.survivedBattles = message.survived_battles;
|
obj.survived_battles = message.survived_battles;
|
||||||
}
|
}
|
||||||
if (message.win_and_survived !== 0) {
|
if (message.win_and_survived !== 0) {
|
||||||
obj.winAndSurvived = message.win_and_survived;
|
obj.win_and_survived = message.win_and_survived;
|
||||||
}
|
}
|
||||||
if (message.wins !== 0) {
|
if (message.wins !== 0) {
|
||||||
obj.wins = message.wins;
|
obj.wins = message.wins;
|
||||||
@@ -730,7 +693,7 @@ export const AverageDefinitionsAllStats: MessageFns<AverageDefinitionsAllStats>
|
|||||||
obj.xp = message.xp;
|
obj.xp = message.xp;
|
||||||
}
|
}
|
||||||
if (message.battle_life_time !== 0) {
|
if (message.battle_life_time !== 0) {
|
||||||
obj.battleLifeTime = message.battle_life_time;
|
obj.battle_life_time = message.battle_life_time;
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
@@ -866,16 +829,12 @@ export const Samples: MessageFns<Samples> = {
|
|||||||
|
|
||||||
fromJSON(object: any): Samples {
|
fromJSON(object: any): Samples {
|
||||||
return {
|
return {
|
||||||
d_1: isSet(object.d1) ? globalThis.Number(object.d1) : isSet(object.d_1) ? globalThis.Number(object.d_1) : 0,
|
d_1: isSet(object.d_1) ? globalThis.Number(object.d_1) : 0,
|
||||||
d_7: isSet(object.d7) ? globalThis.Number(object.d7) : isSet(object.d_7) ? globalThis.Number(object.d_7) : 0,
|
d_7: isSet(object.d_7) ? globalThis.Number(object.d_7) : 0,
|
||||||
d_30: isSet(object.d30) ? globalThis.Number(object.d30) : isSet(object.d_30) ? globalThis.Number(object.d_30) : 0,
|
d_30: isSet(object.d_30) ? globalThis.Number(object.d_30) : 0,
|
||||||
d_60: isSet(object.d60) ? globalThis.Number(object.d60) : isSet(object.d_60) ? globalThis.Number(object.d_60) : 0,
|
d_60: isSet(object.d_60) ? globalThis.Number(object.d_60) : 0,
|
||||||
d_90: isSet(object.d90) ? globalThis.Number(object.d90) : isSet(object.d_90) ? globalThis.Number(object.d_90) : 0,
|
d_90: isSet(object.d_90) ? globalThis.Number(object.d_90) : 0,
|
||||||
d_120: isSet(object.d120)
|
d_120: isSet(object.d_120) ? globalThis.Number(object.d_120) : 0,
|
||||||
? globalThis.Number(object.d120)
|
|
||||||
: isSet(object.d_120)
|
|
||||||
? globalThis.Number(object.d_120)
|
|
||||||
: 0,
|
|
||||||
total: isSet(object.total) ? globalThis.Number(object.total) : 0,
|
total: isSet(object.total) ? globalThis.Number(object.total) : 0,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -883,22 +842,22 @@ export const Samples: MessageFns<Samples> = {
|
|||||||
toJSON(message: Samples): unknown {
|
toJSON(message: Samples): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
if (message.d_1 !== 0) {
|
if (message.d_1 !== 0) {
|
||||||
obj.d1 = Math.round(message.d_1);
|
obj.d_1 = Math.round(message.d_1);
|
||||||
}
|
}
|
||||||
if (message.d_7 !== 0) {
|
if (message.d_7 !== 0) {
|
||||||
obj.d7 = Math.round(message.d_7);
|
obj.d_7 = Math.round(message.d_7);
|
||||||
}
|
}
|
||||||
if (message.d_30 !== 0) {
|
if (message.d_30 !== 0) {
|
||||||
obj.d30 = Math.round(message.d_30);
|
obj.d_30 = Math.round(message.d_30);
|
||||||
}
|
}
|
||||||
if (message.d_60 !== 0) {
|
if (message.d_60 !== 0) {
|
||||||
obj.d60 = Math.round(message.d_60);
|
obj.d_60 = Math.round(message.d_60);
|
||||||
}
|
}
|
||||||
if (message.d_90 !== 0) {
|
if (message.d_90 !== 0) {
|
||||||
obj.d90 = Math.round(message.d_90);
|
obj.d_90 = Math.round(message.d_90);
|
||||||
}
|
}
|
||||||
if (message.d_120 !== 0) {
|
if (message.d_120 !== 0) {
|
||||||
obj.d120 = Math.round(message.d_120);
|
obj.d_120 = Math.round(message.d_120);
|
||||||
}
|
}
|
||||||
if (message.total !== 0) {
|
if (message.total !== 0) {
|
||||||
obj.total = Math.round(message.total);
|
obj.total = Math.round(message.total);
|
||||||
|
|||||||
@@ -13,4 +13,5 @@ message Camouflage {
|
|||||||
required I18nString name = 2;
|
required I18nString name = 2;
|
||||||
optional I18nString tank_name = 3;
|
optional I18nString tank_name = 3;
|
||||||
optional I18nString tank_name_full = 4;
|
optional I18nString tank_name_full = 4;
|
||||||
|
optional uint32 tank_id = 5;
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-ts_proto v2.11.2
|
// protoc-gen-ts_proto v2.7.7
|
||||||
// protoc v5.28.2
|
// protoc v3.19.6
|
||||||
// source: camouflage_definitions.proto
|
// source: camouflage_definitions.proto
|
||||||
|
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
@@ -24,6 +24,7 @@ export interface Camouflage {
|
|||||||
name: I18nString | undefined;
|
name: I18nString | undefined;
|
||||||
tank_name?: I18nString | undefined;
|
tank_name?: I18nString | undefined;
|
||||||
tank_name_full?: I18nString | undefined;
|
tank_name_full?: I18nString | undefined;
|
||||||
|
tank_id?: number | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
function createBaseCamouflageDefinitions(): CamouflageDefinitions {
|
function createBaseCamouflageDefinitions(): CamouflageDefinitions {
|
||||||
@@ -32,7 +33,7 @@ function createBaseCamouflageDefinitions(): CamouflageDefinitions {
|
|||||||
|
|
||||||
export const CamouflageDefinitions: MessageFns<CamouflageDefinitions> = {
|
export const CamouflageDefinitions: MessageFns<CamouflageDefinitions> = {
|
||||||
encode(message: CamouflageDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
encode(message: CamouflageDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
||||||
globalThis.Object.entries(message.camouflages).forEach(([key, value]: [string, Camouflage]) => {
|
Object.entries(message.camouflages).forEach(([key, value]) => {
|
||||||
CamouflageDefinitions_CamouflagesEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
CamouflageDefinitions_CamouflagesEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
||||||
});
|
});
|
||||||
return writer;
|
return writer;
|
||||||
@@ -68,13 +69,10 @@ export const CamouflageDefinitions: MessageFns<CamouflageDefinitions> = {
|
|||||||
fromJSON(object: any): CamouflageDefinitions {
|
fromJSON(object: any): CamouflageDefinitions {
|
||||||
return {
|
return {
|
||||||
camouflages: isObject(object.camouflages)
|
camouflages: isObject(object.camouflages)
|
||||||
? (globalThis.Object.entries(object.camouflages) as [string, any][]).reduce(
|
? Object.entries(object.camouflages).reduce<{ [key: number]: Camouflage }>((acc, [key, value]) => {
|
||||||
(acc: { [key: number]: Camouflage }, [key, value]: [string, any]) => {
|
acc[globalThis.Number(key)] = Camouflage.fromJSON(value);
|
||||||
acc[globalThis.Number(key)] = Camouflage.fromJSON(value);
|
return acc;
|
||||||
return acc;
|
}, {})
|
||||||
},
|
|
||||||
{},
|
|
||||||
)
|
|
||||||
: {},
|
: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -82,7 +80,7 @@ export const CamouflageDefinitions: MessageFns<CamouflageDefinitions> = {
|
|||||||
toJSON(message: CamouflageDefinitions): unknown {
|
toJSON(message: CamouflageDefinitions): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
if (message.camouflages) {
|
if (message.camouflages) {
|
||||||
const entries = globalThis.Object.entries(message.camouflages) as [string, Camouflage][];
|
const entries = Object.entries(message.camouflages);
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.camouflages = {};
|
obj.camouflages = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -98,8 +96,8 @@ export const CamouflageDefinitions: MessageFns<CamouflageDefinitions> = {
|
|||||||
},
|
},
|
||||||
fromPartial<I extends Exact<DeepPartial<CamouflageDefinitions>, I>>(object: I): CamouflageDefinitions {
|
fromPartial<I extends Exact<DeepPartial<CamouflageDefinitions>, I>>(object: I): CamouflageDefinitions {
|
||||||
const message = createBaseCamouflageDefinitions();
|
const message = createBaseCamouflageDefinitions();
|
||||||
message.camouflages = (globalThis.Object.entries(object.camouflages ?? {}) as [string, Camouflage][]).reduce(
|
message.camouflages = Object.entries(object.camouflages ?? {}).reduce<{ [key: number]: Camouflage }>(
|
||||||
(acc: { [key: number]: Camouflage }, [key, value]: [string, Camouflage]) => {
|
(acc, [key, value]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
acc[globalThis.Number(key)] = Camouflage.fromPartial(value);
|
acc[globalThis.Number(key)] = Camouflage.fromPartial(value);
|
||||||
}
|
}
|
||||||
@@ -194,7 +192,7 @@ export const CamouflageDefinitions_CamouflagesEntry: MessageFns<CamouflageDefini
|
|||||||
};
|
};
|
||||||
|
|
||||||
function createBaseCamouflage(): Camouflage {
|
function createBaseCamouflage(): Camouflage {
|
||||||
return { id: 0, name: undefined, tank_name: undefined, tank_name_full: undefined };
|
return { id: 0, name: undefined, tank_name: undefined, tank_name_full: undefined, tank_id: 0 };
|
||||||
}
|
}
|
||||||
|
|
||||||
export const Camouflage: MessageFns<Camouflage> = {
|
export const Camouflage: MessageFns<Camouflage> = {
|
||||||
@@ -211,6 +209,9 @@ export const Camouflage: MessageFns<Camouflage> = {
|
|||||||
if (message.tank_name_full !== undefined) {
|
if (message.tank_name_full !== undefined) {
|
||||||
I18nString.encode(message.tank_name_full, writer.uint32(34).fork()).join();
|
I18nString.encode(message.tank_name_full, writer.uint32(34).fork()).join();
|
||||||
}
|
}
|
||||||
|
if (message.tank_id !== undefined && message.tank_id !== 0) {
|
||||||
|
writer.uint32(40).uint32(message.tank_id);
|
||||||
|
}
|
||||||
return writer;
|
return writer;
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -253,6 +254,14 @@ export const Camouflage: MessageFns<Camouflage> = {
|
|||||||
message.tank_name_full = I18nString.decode(reader, reader.uint32());
|
message.tank_name_full = I18nString.decode(reader, reader.uint32());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
case 5: {
|
||||||
|
if (tag !== 40) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
message.tank_id = reader.uint32();
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ((tag & 7) === 4 || tag === 0) {
|
if ((tag & 7) === 4 || tag === 0) {
|
||||||
break;
|
break;
|
||||||
@@ -266,16 +275,9 @@ export const Camouflage: MessageFns<Camouflage> = {
|
|||||||
return {
|
return {
|
||||||
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
||||||
name: isSet(object.name) ? I18nString.fromJSON(object.name) : undefined,
|
name: isSet(object.name) ? I18nString.fromJSON(object.name) : undefined,
|
||||||
tank_name: isSet(object.tankName)
|
tank_name: isSet(object.tank_name) ? I18nString.fromJSON(object.tank_name) : undefined,
|
||||||
? I18nString.fromJSON(object.tankName)
|
tank_name_full: isSet(object.tank_name_full) ? I18nString.fromJSON(object.tank_name_full) : undefined,
|
||||||
: isSet(object.tank_name)
|
tank_id: isSet(object.tank_id) ? globalThis.Number(object.tank_id) : 0,
|
||||||
? I18nString.fromJSON(object.tank_name)
|
|
||||||
: undefined,
|
|
||||||
tank_name_full: isSet(object.tankNameFull)
|
|
||||||
? I18nString.fromJSON(object.tankNameFull)
|
|
||||||
: isSet(object.tank_name_full)
|
|
||||||
? I18nString.fromJSON(object.tank_name_full)
|
|
||||||
: undefined,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -288,10 +290,13 @@ export const Camouflage: MessageFns<Camouflage> = {
|
|||||||
obj.name = I18nString.toJSON(message.name);
|
obj.name = I18nString.toJSON(message.name);
|
||||||
}
|
}
|
||||||
if (message.tank_name !== undefined) {
|
if (message.tank_name !== undefined) {
|
||||||
obj.tankName = I18nString.toJSON(message.tank_name);
|
obj.tank_name = I18nString.toJSON(message.tank_name);
|
||||||
}
|
}
|
||||||
if (message.tank_name_full !== undefined) {
|
if (message.tank_name_full !== undefined) {
|
||||||
obj.tankNameFull = I18nString.toJSON(message.tank_name_full);
|
obj.tank_name_full = I18nString.toJSON(message.tank_name_full);
|
||||||
|
}
|
||||||
|
if (message.tank_id !== undefined && message.tank_id !== 0) {
|
||||||
|
obj.tank_id = Math.round(message.tank_id);
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
@@ -311,6 +316,7 @@ export const Camouflage: MessageFns<Camouflage> = {
|
|||||||
message.tank_name_full = (object.tank_name_full !== undefined && object.tank_name_full !== null)
|
message.tank_name_full = (object.tank_name_full !== undefined && object.tank_name_full !== null)
|
||||||
? I18nString.fromPartial(object.tank_name_full)
|
? I18nString.fromPartial(object.tank_name_full)
|
||||||
: undefined;
|
: undefined;
|
||||||
|
message.tank_id = object.tank_id ?? 0;
|
||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-ts_proto v2.11.2
|
// protoc-gen-ts_proto v2.7.7
|
||||||
// protoc v5.28.2
|
// protoc v3.19.6
|
||||||
// source: consumable_definitions.proto
|
// source: consumable_definitions.proto
|
||||||
|
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
@@ -88,7 +88,7 @@ function createBaseConsumableDefinitions(): ConsumableDefinitions {
|
|||||||
|
|
||||||
export const ConsumableDefinitions: MessageFns<ConsumableDefinitions> = {
|
export const ConsumableDefinitions: MessageFns<ConsumableDefinitions> = {
|
||||||
encode(message: ConsumableDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
encode(message: ConsumableDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
||||||
globalThis.Object.entries(message.consumables).forEach(([key, value]: [string, Consumable]) => {
|
Object.entries(message.consumables).forEach(([key, value]) => {
|
||||||
ConsumableDefinitions_ConsumablesEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
ConsumableDefinitions_ConsumablesEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
||||||
});
|
});
|
||||||
return writer;
|
return writer;
|
||||||
@@ -124,13 +124,10 @@ export const ConsumableDefinitions: MessageFns<ConsumableDefinitions> = {
|
|||||||
fromJSON(object: any): ConsumableDefinitions {
|
fromJSON(object: any): ConsumableDefinitions {
|
||||||
return {
|
return {
|
||||||
consumables: isObject(object.consumables)
|
consumables: isObject(object.consumables)
|
||||||
? (globalThis.Object.entries(object.consumables) as [string, any][]).reduce(
|
? Object.entries(object.consumables).reduce<{ [key: number]: Consumable }>((acc, [key, value]) => {
|
||||||
(acc: { [key: number]: Consumable }, [key, value]: [string, any]) => {
|
acc[globalThis.Number(key)] = Consumable.fromJSON(value);
|
||||||
acc[globalThis.Number(key)] = Consumable.fromJSON(value);
|
return acc;
|
||||||
return acc;
|
}, {})
|
||||||
},
|
|
||||||
{},
|
|
||||||
)
|
|
||||||
: {},
|
: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -138,7 +135,7 @@ export const ConsumableDefinitions: MessageFns<ConsumableDefinitions> = {
|
|||||||
toJSON(message: ConsumableDefinitions): unknown {
|
toJSON(message: ConsumableDefinitions): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
if (message.consumables) {
|
if (message.consumables) {
|
||||||
const entries = globalThis.Object.entries(message.consumables) as [string, Consumable][];
|
const entries = Object.entries(message.consumables);
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.consumables = {};
|
obj.consumables = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -154,8 +151,8 @@ export const ConsumableDefinitions: MessageFns<ConsumableDefinitions> = {
|
|||||||
},
|
},
|
||||||
fromPartial<I extends Exact<DeepPartial<ConsumableDefinitions>, I>>(object: I): ConsumableDefinitions {
|
fromPartial<I extends Exact<DeepPartial<ConsumableDefinitions>, I>>(object: I): ConsumableDefinitions {
|
||||||
const message = createBaseConsumableDefinitions();
|
const message = createBaseConsumableDefinitions();
|
||||||
message.consumables = (globalThis.Object.entries(object.consumables ?? {}) as [string, Consumable][]).reduce(
|
message.consumables = Object.entries(object.consumables ?? {}).reduce<{ [key: number]: Consumable }>(
|
||||||
(acc: { [key: number]: Consumable }, [key, value]: [string, Consumable]) => {
|
(acc, [key, value]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
acc[globalThis.Number(key)] = Consumable.fromPartial(value);
|
acc[globalThis.Number(key)] = Consumable.fromPartial(value);
|
||||||
}
|
}
|
||||||
@@ -357,11 +354,7 @@ export const Consumable: MessageFns<Consumable> = {
|
|||||||
name: isSet(object.name) ? I18nString.fromJSON(object.name) : undefined,
|
name: isSet(object.name) ? I18nString.fromJSON(object.name) : undefined,
|
||||||
cooldown: isSet(object.cooldown) ? globalThis.Number(object.cooldown) : 0,
|
cooldown: isSet(object.cooldown) ? globalThis.Number(object.cooldown) : 0,
|
||||||
duration: isSet(object.duration) ? globalThis.Number(object.duration) : 0,
|
duration: isSet(object.duration) ? globalThis.Number(object.duration) : 0,
|
||||||
game_mode_exclusive: isSet(object.gameModeExclusive)
|
game_mode_exclusive: isSet(object.game_mode_exclusive) ? globalThis.Boolean(object.game_mode_exclusive) : false,
|
||||||
? globalThis.Boolean(object.gameModeExclusive)
|
|
||||||
: isSet(object.game_mode_exclusive)
|
|
||||||
? globalThis.Boolean(object.game_mode_exclusive)
|
|
||||||
: false,
|
|
||||||
include: globalThis.Array.isArray(object?.include)
|
include: globalThis.Array.isArray(object?.include)
|
||||||
? object.include.map((e: any) => ConsumableTankFilter.fromJSON(e))
|
? object.include.map((e: any) => ConsumableTankFilter.fromJSON(e))
|
||||||
: [],
|
: [],
|
||||||
@@ -386,7 +379,7 @@ export const Consumable: MessageFns<Consumable> = {
|
|||||||
obj.duration = message.duration;
|
obj.duration = message.duration;
|
||||||
}
|
}
|
||||||
if (message.game_mode_exclusive !== false) {
|
if (message.game_mode_exclusive !== false) {
|
||||||
obj.gameModeExclusive = message.game_mode_exclusive;
|
obj.game_mode_exclusive = message.game_mode_exclusive;
|
||||||
}
|
}
|
||||||
if (message.include?.length) {
|
if (message.include?.length) {
|
||||||
obj.include = message.include.map((e) => ConsumableTankFilter.toJSON(e));
|
obj.include = message.include.map((e) => ConsumableTankFilter.toJSON(e));
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-ts_proto v2.11.2
|
// protoc-gen-ts_proto v2.7.7
|
||||||
// protoc v5.28.2
|
// protoc v3.19.6
|
||||||
// source: equipment_definitions.proto
|
// source: equipment_definitions.proto
|
||||||
|
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
@@ -45,10 +45,10 @@ function createBaseEquipmentDefinitions(): EquipmentDefinitions {
|
|||||||
|
|
||||||
export const EquipmentDefinitions: MessageFns<EquipmentDefinitions> = {
|
export const EquipmentDefinitions: MessageFns<EquipmentDefinitions> = {
|
||||||
encode(message: EquipmentDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
encode(message: EquipmentDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
||||||
globalThis.Object.entries(message.presets).forEach(([key, value]: [string, EquipmentPreset]) => {
|
Object.entries(message.presets).forEach(([key, value]) => {
|
||||||
EquipmentDefinitions_PresetsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
EquipmentDefinitions_PresetsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
||||||
});
|
});
|
||||||
globalThis.Object.entries(message.equipments).forEach(([key, value]: [string, Equipment]) => {
|
Object.entries(message.equipments).forEach(([key, value]) => {
|
||||||
EquipmentDefinitions_EquipmentsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).join();
|
EquipmentDefinitions_EquipmentsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).join();
|
||||||
});
|
});
|
||||||
return writer;
|
return writer;
|
||||||
@@ -95,22 +95,16 @@ export const EquipmentDefinitions: MessageFns<EquipmentDefinitions> = {
|
|||||||
fromJSON(object: any): EquipmentDefinitions {
|
fromJSON(object: any): EquipmentDefinitions {
|
||||||
return {
|
return {
|
||||||
presets: isObject(object.presets)
|
presets: isObject(object.presets)
|
||||||
? (globalThis.Object.entries(object.presets) as [string, any][]).reduce(
|
? Object.entries(object.presets).reduce<{ [key: string]: EquipmentPreset }>((acc, [key, value]) => {
|
||||||
(acc: { [key: string]: EquipmentPreset }, [key, value]: [string, any]) => {
|
acc[key] = EquipmentPreset.fromJSON(value);
|
||||||
acc[key] = EquipmentPreset.fromJSON(value);
|
return acc;
|
||||||
return acc;
|
}, {})
|
||||||
},
|
|
||||||
{},
|
|
||||||
)
|
|
||||||
: {},
|
: {},
|
||||||
equipments: isObject(object.equipments)
|
equipments: isObject(object.equipments)
|
||||||
? (globalThis.Object.entries(object.equipments) as [string, any][]).reduce(
|
? Object.entries(object.equipments).reduce<{ [key: number]: Equipment }>((acc, [key, value]) => {
|
||||||
(acc: { [key: number]: Equipment }, [key, value]: [string, any]) => {
|
acc[globalThis.Number(key)] = Equipment.fromJSON(value);
|
||||||
acc[globalThis.Number(key)] = Equipment.fromJSON(value);
|
return acc;
|
||||||
return acc;
|
}, {})
|
||||||
},
|
|
||||||
{},
|
|
||||||
)
|
|
||||||
: {},
|
: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -118,7 +112,7 @@ export const EquipmentDefinitions: MessageFns<EquipmentDefinitions> = {
|
|||||||
toJSON(message: EquipmentDefinitions): unknown {
|
toJSON(message: EquipmentDefinitions): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
if (message.presets) {
|
if (message.presets) {
|
||||||
const entries = globalThis.Object.entries(message.presets) as [string, EquipmentPreset][];
|
const entries = Object.entries(message.presets);
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.presets = {};
|
obj.presets = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -127,7 +121,7 @@ export const EquipmentDefinitions: MessageFns<EquipmentDefinitions> = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (message.equipments) {
|
if (message.equipments) {
|
||||||
const entries = globalThis.Object.entries(message.equipments) as [string, Equipment][];
|
const entries = Object.entries(message.equipments);
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.equipments = {};
|
obj.equipments = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -143,8 +137,8 @@ export const EquipmentDefinitions: MessageFns<EquipmentDefinitions> = {
|
|||||||
},
|
},
|
||||||
fromPartial<I extends Exact<DeepPartial<EquipmentDefinitions>, I>>(object: I): EquipmentDefinitions {
|
fromPartial<I extends Exact<DeepPartial<EquipmentDefinitions>, I>>(object: I): EquipmentDefinitions {
|
||||||
const message = createBaseEquipmentDefinitions();
|
const message = createBaseEquipmentDefinitions();
|
||||||
message.presets = (globalThis.Object.entries(object.presets ?? {}) as [string, EquipmentPreset][]).reduce(
|
message.presets = Object.entries(object.presets ?? {}).reduce<{ [key: string]: EquipmentPreset }>(
|
||||||
(acc: { [key: string]: EquipmentPreset }, [key, value]: [string, EquipmentPreset]) => {
|
(acc, [key, value]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
acc[key] = EquipmentPreset.fromPartial(value);
|
acc[key] = EquipmentPreset.fromPartial(value);
|
||||||
}
|
}
|
||||||
@@ -152,8 +146,8 @@ export const EquipmentDefinitions: MessageFns<EquipmentDefinitions> = {
|
|||||||
},
|
},
|
||||||
{},
|
{},
|
||||||
);
|
);
|
||||||
message.equipments = (globalThis.Object.entries(object.equipments ?? {}) as [string, Equipment][]).reduce(
|
message.equipments = Object.entries(object.equipments ?? {}).reduce<{ [key: number]: Equipment }>(
|
||||||
(acc: { [key: number]: Equipment }, [key, value]: [string, Equipment]) => {
|
(acc, [key, value]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
acc[globalThis.Number(key)] = Equipment.fromPartial(value);
|
acc[globalThis.Number(key)] = Equipment.fromPartial(value);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-ts_proto v2.11.2
|
// protoc-gen-ts_proto v2.7.7
|
||||||
// protoc v5.28.2
|
// protoc v3.19.6
|
||||||
// source: gallery.proto
|
// source: gallery.proto
|
||||||
|
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import "i18n.proto";
|
|||||||
message GameDefinitions {
|
message GameDefinitions {
|
||||||
required string version = 1;
|
required string version = 1;
|
||||||
repeated string nations = 2;
|
repeated string nations = 2;
|
||||||
map<uint32, GameMode> gameModes = 3;
|
map<string, GameMode> gameModes = 3;
|
||||||
map<uint32, GameModeRole> roles = 4;
|
map<uint32, GameModeRole> roles = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-ts_proto v2.11.2
|
// protoc-gen-ts_proto v2.7.7
|
||||||
// protoc v5.28.2
|
// protoc v3.19.6
|
||||||
// source: game_definitions.proto
|
// source: game_definitions.proto
|
||||||
|
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
@@ -13,12 +13,12 @@ export const protobufPackage = "blitzkit";
|
|||||||
export interface GameDefinitions {
|
export interface GameDefinitions {
|
||||||
version: string;
|
version: string;
|
||||||
nations: string[];
|
nations: string[];
|
||||||
gameModes: { [key: number]: GameMode };
|
gameModes: { [key: string]: GameMode };
|
||||||
roles: { [key: number]: GameModeRole };
|
roles: { [key: number]: GameModeRole };
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GameDefinitions_GameModesEntry {
|
export interface GameDefinitions_GameModesEntry {
|
||||||
key: number;
|
key: string;
|
||||||
value: GameMode | undefined;
|
value: GameMode | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -48,10 +48,10 @@ export const GameDefinitions: MessageFns<GameDefinitions> = {
|
|||||||
for (const v of message.nations) {
|
for (const v of message.nations) {
|
||||||
writer.uint32(18).string(v!);
|
writer.uint32(18).string(v!);
|
||||||
}
|
}
|
||||||
globalThis.Object.entries(message.gameModes).forEach(([key, value]: [string, GameMode]) => {
|
Object.entries(message.gameModes).forEach(([key, value]) => {
|
||||||
GameDefinitions_GameModesEntry.encode({ key: key as any, value }, writer.uint32(26).fork()).join();
|
GameDefinitions_GameModesEntry.encode({ key: key as any, value }, writer.uint32(26).fork()).join();
|
||||||
});
|
});
|
||||||
globalThis.Object.entries(message.roles).forEach(([key, value]: [string, GameModeRole]) => {
|
Object.entries(message.roles).forEach(([key, value]) => {
|
||||||
GameDefinitions_RolesEntry.encode({ key: key as any, value }, writer.uint32(34).fork()).join();
|
GameDefinitions_RolesEntry.encode({ key: key as any, value }, writer.uint32(34).fork()).join();
|
||||||
});
|
});
|
||||||
return writer;
|
return writer;
|
||||||
@@ -116,22 +116,16 @@ export const GameDefinitions: MessageFns<GameDefinitions> = {
|
|||||||
version: isSet(object.version) ? globalThis.String(object.version) : "",
|
version: isSet(object.version) ? globalThis.String(object.version) : "",
|
||||||
nations: globalThis.Array.isArray(object?.nations) ? object.nations.map((e: any) => globalThis.String(e)) : [],
|
nations: globalThis.Array.isArray(object?.nations) ? object.nations.map((e: any) => globalThis.String(e)) : [],
|
||||||
gameModes: isObject(object.gameModes)
|
gameModes: isObject(object.gameModes)
|
||||||
? (globalThis.Object.entries(object.gameModes) as [string, any][]).reduce(
|
? Object.entries(object.gameModes).reduce<{ [key: string]: GameMode }>((acc, [key, value]) => {
|
||||||
(acc: { [key: number]: GameMode }, [key, value]: [string, any]) => {
|
acc[key] = GameMode.fromJSON(value);
|
||||||
acc[globalThis.Number(key)] = GameMode.fromJSON(value);
|
return acc;
|
||||||
return acc;
|
}, {})
|
||||||
},
|
|
||||||
{},
|
|
||||||
)
|
|
||||||
: {},
|
: {},
|
||||||
roles: isObject(object.roles)
|
roles: isObject(object.roles)
|
||||||
? (globalThis.Object.entries(object.roles) as [string, any][]).reduce(
|
? Object.entries(object.roles).reduce<{ [key: number]: GameModeRole }>((acc, [key, value]) => {
|
||||||
(acc: { [key: number]: GameModeRole }, [key, value]: [string, any]) => {
|
acc[globalThis.Number(key)] = GameModeRole.fromJSON(value);
|
||||||
acc[globalThis.Number(key)] = GameModeRole.fromJSON(value);
|
return acc;
|
||||||
return acc;
|
}, {})
|
||||||
},
|
|
||||||
{},
|
|
||||||
)
|
|
||||||
: {},
|
: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -145,7 +139,7 @@ export const GameDefinitions: MessageFns<GameDefinitions> = {
|
|||||||
obj.nations = message.nations;
|
obj.nations = message.nations;
|
||||||
}
|
}
|
||||||
if (message.gameModes) {
|
if (message.gameModes) {
|
||||||
const entries = globalThis.Object.entries(message.gameModes) as [string, GameMode][];
|
const entries = Object.entries(message.gameModes);
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.gameModes = {};
|
obj.gameModes = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -154,7 +148,7 @@ export const GameDefinitions: MessageFns<GameDefinitions> = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (message.roles) {
|
if (message.roles) {
|
||||||
const entries = globalThis.Object.entries(message.roles) as [string, GameModeRole][];
|
const entries = Object.entries(message.roles);
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.roles = {};
|
obj.roles = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -172,36 +166,33 @@ export const GameDefinitions: MessageFns<GameDefinitions> = {
|
|||||||
const message = createBaseGameDefinitions();
|
const message = createBaseGameDefinitions();
|
||||||
message.version = object.version ?? "";
|
message.version = object.version ?? "";
|
||||||
message.nations = object.nations?.map((e) => e) || [];
|
message.nations = object.nations?.map((e) => e) || [];
|
||||||
message.gameModes = (globalThis.Object.entries(object.gameModes ?? {}) as [string, GameMode][]).reduce(
|
message.gameModes = Object.entries(object.gameModes ?? {}).reduce<{ [key: string]: GameMode }>(
|
||||||
(acc: { [key: number]: GameMode }, [key, value]: [string, GameMode]) => {
|
(acc, [key, value]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
acc[globalThis.Number(key)] = GameMode.fromPartial(value);
|
acc[key] = GameMode.fromPartial(value);
|
||||||
}
|
|
||||||
return acc;
|
|
||||||
},
|
|
||||||
{},
|
|
||||||
);
|
|
||||||
message.roles = (globalThis.Object.entries(object.roles ?? {}) as [string, GameModeRole][]).reduce(
|
|
||||||
(acc: { [key: number]: GameModeRole }, [key, value]: [string, GameModeRole]) => {
|
|
||||||
if (value !== undefined) {
|
|
||||||
acc[globalThis.Number(key)] = GameModeRole.fromPartial(value);
|
|
||||||
}
|
}
|
||||||
return acc;
|
return acc;
|
||||||
},
|
},
|
||||||
{},
|
{},
|
||||||
);
|
);
|
||||||
|
message.roles = Object.entries(object.roles ?? {}).reduce<{ [key: number]: GameModeRole }>((acc, [key, value]) => {
|
||||||
|
if (value !== undefined) {
|
||||||
|
acc[globalThis.Number(key)] = GameModeRole.fromPartial(value);
|
||||||
|
}
|
||||||
|
return acc;
|
||||||
|
}, {});
|
||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
function createBaseGameDefinitions_GameModesEntry(): GameDefinitions_GameModesEntry {
|
function createBaseGameDefinitions_GameModesEntry(): GameDefinitions_GameModesEntry {
|
||||||
return { key: 0, value: undefined };
|
return { key: "", value: undefined };
|
||||||
}
|
}
|
||||||
|
|
||||||
export const GameDefinitions_GameModesEntry: MessageFns<GameDefinitions_GameModesEntry> = {
|
export const GameDefinitions_GameModesEntry: MessageFns<GameDefinitions_GameModesEntry> = {
|
||||||
encode(message: GameDefinitions_GameModesEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
encode(message: GameDefinitions_GameModesEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
||||||
if (message.key !== 0) {
|
if (message.key !== "") {
|
||||||
writer.uint32(8).uint32(message.key);
|
writer.uint32(10).string(message.key);
|
||||||
}
|
}
|
||||||
if (message.value !== undefined) {
|
if (message.value !== undefined) {
|
||||||
GameMode.encode(message.value, writer.uint32(18).fork()).join();
|
GameMode.encode(message.value, writer.uint32(18).fork()).join();
|
||||||
@@ -217,11 +208,11 @@ export const GameDefinitions_GameModesEntry: MessageFns<GameDefinitions_GameMode
|
|||||||
const tag = reader.uint32();
|
const tag = reader.uint32();
|
||||||
switch (tag >>> 3) {
|
switch (tag >>> 3) {
|
||||||
case 1: {
|
case 1: {
|
||||||
if (tag !== 8) {
|
if (tag !== 10) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
message.key = reader.uint32();
|
message.key = reader.string();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
case 2: {
|
case 2: {
|
||||||
@@ -243,15 +234,15 @@ export const GameDefinitions_GameModesEntry: MessageFns<GameDefinitions_GameMode
|
|||||||
|
|
||||||
fromJSON(object: any): GameDefinitions_GameModesEntry {
|
fromJSON(object: any): GameDefinitions_GameModesEntry {
|
||||||
return {
|
return {
|
||||||
key: isSet(object.key) ? globalThis.Number(object.key) : 0,
|
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
||||||
value: isSet(object.value) ? GameMode.fromJSON(object.value) : undefined,
|
value: isSet(object.value) ? GameMode.fromJSON(object.value) : undefined,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
toJSON(message: GameDefinitions_GameModesEntry): unknown {
|
toJSON(message: GameDefinitions_GameModesEntry): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
if (message.key !== 0) {
|
if (message.key !== "") {
|
||||||
obj.key = Math.round(message.key);
|
obj.key = message.key;
|
||||||
}
|
}
|
||||||
if (message.value !== undefined) {
|
if (message.value !== undefined) {
|
||||||
obj.value = GameMode.toJSON(message.value);
|
obj.value = GameMode.toJSON(message.value);
|
||||||
@@ -266,7 +257,7 @@ export const GameDefinitions_GameModesEntry: MessageFns<GameDefinitions_GameMode
|
|||||||
object: I,
|
object: I,
|
||||||
): GameDefinitions_GameModesEntry {
|
): GameDefinitions_GameModesEntry {
|
||||||
const message = createBaseGameDefinitions_GameModesEntry();
|
const message = createBaseGameDefinitions_GameModesEntry();
|
||||||
message.key = object.key ?? 0;
|
message.key = object.key ?? "";
|
||||||
message.value = (object.value !== undefined && object.value !== null)
|
message.value = (object.value !== undefined && object.value !== null)
|
||||||
? GameMode.fromPartial(object.value)
|
? GameMode.fromPartial(object.value)
|
||||||
: undefined;
|
: undefined;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-ts_proto v2.11.2
|
// protoc-gen-ts_proto v2.7.7
|
||||||
// protoc v5.28.2
|
// protoc v3.19.6
|
||||||
// source: i18n.proto
|
// source: i18n.proto
|
||||||
|
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
@@ -24,7 +24,7 @@ function createBaseI18nString(): I18nString {
|
|||||||
|
|
||||||
export const I18nString: MessageFns<I18nString> = {
|
export const I18nString: MessageFns<I18nString> = {
|
||||||
encode(message: I18nString, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
encode(message: I18nString, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
||||||
globalThis.Object.entries(message.locales).forEach(([key, value]: [string, string]) => {
|
Object.entries(message.locales).forEach(([key, value]) => {
|
||||||
I18nString_LocalesEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
I18nString_LocalesEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
||||||
});
|
});
|
||||||
return writer;
|
return writer;
|
||||||
@@ -60,13 +60,10 @@ export const I18nString: MessageFns<I18nString> = {
|
|||||||
fromJSON(object: any): I18nString {
|
fromJSON(object: any): I18nString {
|
||||||
return {
|
return {
|
||||||
locales: isObject(object.locales)
|
locales: isObject(object.locales)
|
||||||
? (globalThis.Object.entries(object.locales) as [string, any][]).reduce(
|
? Object.entries(object.locales).reduce<{ [key: string]: string }>((acc, [key, value]) => {
|
||||||
(acc: { [key: string]: string }, [key, value]: [string, any]) => {
|
acc[key] = String(value);
|
||||||
acc[key] = globalThis.String(value);
|
return acc;
|
||||||
return acc;
|
}, {})
|
||||||
},
|
|
||||||
{},
|
|
||||||
)
|
|
||||||
: {},
|
: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -74,7 +71,7 @@ export const I18nString: MessageFns<I18nString> = {
|
|||||||
toJSON(message: I18nString): unknown {
|
toJSON(message: I18nString): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
if (message.locales) {
|
if (message.locales) {
|
||||||
const entries = globalThis.Object.entries(message.locales) as [string, string][];
|
const entries = Object.entries(message.locales);
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.locales = {};
|
obj.locales = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -90,15 +87,12 @@ export const I18nString: MessageFns<I18nString> = {
|
|||||||
},
|
},
|
||||||
fromPartial<I extends Exact<DeepPartial<I18nString>, I>>(object: I): I18nString {
|
fromPartial<I extends Exact<DeepPartial<I18nString>, I>>(object: I): I18nString {
|
||||||
const message = createBaseI18nString();
|
const message = createBaseI18nString();
|
||||||
message.locales = (globalThis.Object.entries(object.locales ?? {}) as [string, string][]).reduce(
|
message.locales = Object.entries(object.locales ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
|
||||||
(acc: { [key: string]: string }, [key, value]: [string, string]) => {
|
if (value !== undefined) {
|
||||||
if (value !== undefined) {
|
acc[key] = globalThis.String(value);
|
||||||
acc[key] = globalThis.String(value);
|
}
|
||||||
}
|
return acc;
|
||||||
return acc;
|
}, {});
|
||||||
},
|
|
||||||
{},
|
|
||||||
);
|
|
||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-ts_proto v2.11.2
|
// protoc-gen-ts_proto v2.7.7
|
||||||
// protoc v5.28.2
|
// protoc v3.19.6
|
||||||
// source: map_definitions.proto
|
// source: map_definitions.proto
|
||||||
|
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
@@ -30,7 +30,7 @@ function createBaseMapDefinitions(): MapDefinitions {
|
|||||||
|
|
||||||
export const MapDefinitions: MessageFns<MapDefinitions> = {
|
export const MapDefinitions: MessageFns<MapDefinitions> = {
|
||||||
encode(message: MapDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
encode(message: MapDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
||||||
globalThis.Object.entries(message.maps).forEach(([key, value]: [string, MapDefinition]) => {
|
Object.entries(message.maps).forEach(([key, value]) => {
|
||||||
MapDefinitions_MapsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
MapDefinitions_MapsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
||||||
});
|
});
|
||||||
return writer;
|
return writer;
|
||||||
@@ -66,13 +66,10 @@ export const MapDefinitions: MessageFns<MapDefinitions> = {
|
|||||||
fromJSON(object: any): MapDefinitions {
|
fromJSON(object: any): MapDefinitions {
|
||||||
return {
|
return {
|
||||||
maps: isObject(object.maps)
|
maps: isObject(object.maps)
|
||||||
? (globalThis.Object.entries(object.maps) as [string, any][]).reduce(
|
? Object.entries(object.maps).reduce<{ [key: number]: MapDefinition }>((acc, [key, value]) => {
|
||||||
(acc: { [key: number]: MapDefinition }, [key, value]: [string, any]) => {
|
acc[globalThis.Number(key)] = MapDefinition.fromJSON(value);
|
||||||
acc[globalThis.Number(key)] = MapDefinition.fromJSON(value);
|
return acc;
|
||||||
return acc;
|
}, {})
|
||||||
},
|
|
||||||
{},
|
|
||||||
)
|
|
||||||
: {},
|
: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -80,7 +77,7 @@ export const MapDefinitions: MessageFns<MapDefinitions> = {
|
|||||||
toJSON(message: MapDefinitions): unknown {
|
toJSON(message: MapDefinitions): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
if (message.maps) {
|
if (message.maps) {
|
||||||
const entries = globalThis.Object.entries(message.maps) as [string, MapDefinition][];
|
const entries = Object.entries(message.maps);
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.maps = {};
|
obj.maps = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -96,15 +93,12 @@ export const MapDefinitions: MessageFns<MapDefinitions> = {
|
|||||||
},
|
},
|
||||||
fromPartial<I extends Exact<DeepPartial<MapDefinitions>, I>>(object: I): MapDefinitions {
|
fromPartial<I extends Exact<DeepPartial<MapDefinitions>, I>>(object: I): MapDefinitions {
|
||||||
const message = createBaseMapDefinitions();
|
const message = createBaseMapDefinitions();
|
||||||
message.maps = (globalThis.Object.entries(object.maps ?? {}) as [string, MapDefinition][]).reduce(
|
message.maps = Object.entries(object.maps ?? {}).reduce<{ [key: number]: MapDefinition }>((acc, [key, value]) => {
|
||||||
(acc: { [key: number]: MapDefinition }, [key, value]: [string, MapDefinition]) => {
|
if (value !== undefined) {
|
||||||
if (value !== undefined) {
|
acc[globalThis.Number(key)] = MapDefinition.fromPartial(value);
|
||||||
acc[globalThis.Number(key)] = MapDefinition.fromPartial(value);
|
}
|
||||||
}
|
return acc;
|
||||||
return acc;
|
}, {});
|
||||||
},
|
|
||||||
{},
|
|
||||||
);
|
|
||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-ts_proto v2.11.2
|
// protoc-gen-ts_proto v2.7.7
|
||||||
// protoc v5.28.2
|
// protoc v3.19.6
|
||||||
// source: model_definitions.proto
|
// source: model_definitions.proto
|
||||||
|
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
@@ -116,7 +116,7 @@ function createBaseModelDefinitions(): ModelDefinitions {
|
|||||||
|
|
||||||
export const ModelDefinitions: MessageFns<ModelDefinitions> = {
|
export const ModelDefinitions: MessageFns<ModelDefinitions> = {
|
||||||
encode(message: ModelDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
encode(message: ModelDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
||||||
globalThis.Object.entries(message.models).forEach(([key, value]: [string, ModelDefinition]) => {
|
Object.entries(message.models).forEach(([key, value]) => {
|
||||||
ModelDefinitions_ModelsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
ModelDefinitions_ModelsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
||||||
});
|
});
|
||||||
return writer;
|
return writer;
|
||||||
@@ -152,13 +152,10 @@ export const ModelDefinitions: MessageFns<ModelDefinitions> = {
|
|||||||
fromJSON(object: any): ModelDefinitions {
|
fromJSON(object: any): ModelDefinitions {
|
||||||
return {
|
return {
|
||||||
models: isObject(object.models)
|
models: isObject(object.models)
|
||||||
? (globalThis.Object.entries(object.models) as [string, any][]).reduce(
|
? Object.entries(object.models).reduce<{ [key: number]: ModelDefinition }>((acc, [key, value]) => {
|
||||||
(acc: { [key: number]: ModelDefinition }, [key, value]: [string, any]) => {
|
acc[globalThis.Number(key)] = ModelDefinition.fromJSON(value);
|
||||||
acc[globalThis.Number(key)] = ModelDefinition.fromJSON(value);
|
return acc;
|
||||||
return acc;
|
}, {})
|
||||||
},
|
|
||||||
{},
|
|
||||||
)
|
|
||||||
: {},
|
: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -166,7 +163,7 @@ export const ModelDefinitions: MessageFns<ModelDefinitions> = {
|
|||||||
toJSON(message: ModelDefinitions): unknown {
|
toJSON(message: ModelDefinitions): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
if (message.models) {
|
if (message.models) {
|
||||||
const entries = globalThis.Object.entries(message.models) as [string, ModelDefinition][];
|
const entries = Object.entries(message.models);
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.models = {};
|
obj.models = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -182,8 +179,8 @@ export const ModelDefinitions: MessageFns<ModelDefinitions> = {
|
|||||||
},
|
},
|
||||||
fromPartial<I extends Exact<DeepPartial<ModelDefinitions>, I>>(object: I): ModelDefinitions {
|
fromPartial<I extends Exact<DeepPartial<ModelDefinitions>, I>>(object: I): ModelDefinitions {
|
||||||
const message = createBaseModelDefinitions();
|
const message = createBaseModelDefinitions();
|
||||||
message.models = (globalThis.Object.entries(object.models ?? {}) as [string, ModelDefinition][]).reduce(
|
message.models = Object.entries(object.models ?? {}).reduce<{ [key: number]: ModelDefinition }>(
|
||||||
(acc: { [key: number]: ModelDefinition }, [key, value]: [string, ModelDefinition]) => {
|
(acc, [key, value]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
acc[globalThis.Number(key)] = ModelDefinition.fromPartial(value);
|
acc[globalThis.Number(key)] = ModelDefinition.fromPartial(value);
|
||||||
}
|
}
|
||||||
@@ -295,10 +292,10 @@ export const ModelDefinition: MessageFns<ModelDefinition> = {
|
|||||||
if (message.initial_turret_rotation !== undefined) {
|
if (message.initial_turret_rotation !== undefined) {
|
||||||
InitialTurretRotation.encode(message.initial_turret_rotation, writer.uint32(26).fork()).join();
|
InitialTurretRotation.encode(message.initial_turret_rotation, writer.uint32(26).fork()).join();
|
||||||
}
|
}
|
||||||
globalThis.Object.entries(message.turrets).forEach(([key, value]: [string, TurretModelDefinition]) => {
|
Object.entries(message.turrets).forEach(([key, value]) => {
|
||||||
ModelDefinition_TurretsEntry.encode({ key: key as any, value }, writer.uint32(34).fork()).join();
|
ModelDefinition_TurretsEntry.encode({ key: key as any, value }, writer.uint32(34).fork()).join();
|
||||||
});
|
});
|
||||||
globalThis.Object.entries(message.tracks).forEach(([key, value]: [string, TrackModelDefinition]) => {
|
Object.entries(message.tracks).forEach(([key, value]) => {
|
||||||
ModelDefinition_TracksEntry.encode({ key: key as any, value }, writer.uint32(42).fork()).join();
|
ModelDefinition_TracksEntry.encode({ key: key as any, value }, writer.uint32(42).fork()).join();
|
||||||
});
|
});
|
||||||
if (message.bounding_box !== undefined) {
|
if (message.bounding_box !== undefined) {
|
||||||
@@ -380,39 +377,23 @@ export const ModelDefinition: MessageFns<ModelDefinition> = {
|
|||||||
fromJSON(object: any): ModelDefinition {
|
fromJSON(object: any): ModelDefinition {
|
||||||
return {
|
return {
|
||||||
armor: isSet(object.armor) ? Armor.fromJSON(object.armor) : undefined,
|
armor: isSet(object.armor) ? Armor.fromJSON(object.armor) : undefined,
|
||||||
turret_origin: isSet(object.turretOrigin)
|
turret_origin: isSet(object.turret_origin) ? Vector3.fromJSON(object.turret_origin) : undefined,
|
||||||
? Vector3.fromJSON(object.turretOrigin)
|
initial_turret_rotation: isSet(object.initial_turret_rotation)
|
||||||
: isSet(object.turret_origin)
|
|
||||||
? Vector3.fromJSON(object.turret_origin)
|
|
||||||
: undefined,
|
|
||||||
initial_turret_rotation: isSet(object.initialTurretRotation)
|
|
||||||
? InitialTurretRotation.fromJSON(object.initialTurretRotation)
|
|
||||||
: isSet(object.initial_turret_rotation)
|
|
||||||
? InitialTurretRotation.fromJSON(object.initial_turret_rotation)
|
? InitialTurretRotation.fromJSON(object.initial_turret_rotation)
|
||||||
: undefined,
|
: undefined,
|
||||||
turrets: isObject(object.turrets)
|
turrets: isObject(object.turrets)
|
||||||
? (globalThis.Object.entries(object.turrets) as [string, any][]).reduce(
|
? Object.entries(object.turrets).reduce<{ [key: number]: TurretModelDefinition }>((acc, [key, value]) => {
|
||||||
(acc: { [key: number]: TurretModelDefinition }, [key, value]: [string, any]) => {
|
acc[globalThis.Number(key)] = TurretModelDefinition.fromJSON(value);
|
||||||
acc[globalThis.Number(key)] = TurretModelDefinition.fromJSON(value);
|
return acc;
|
||||||
return acc;
|
}, {})
|
||||||
},
|
|
||||||
{},
|
|
||||||
)
|
|
||||||
: {},
|
: {},
|
||||||
tracks: isObject(object.tracks)
|
tracks: isObject(object.tracks)
|
||||||
? (globalThis.Object.entries(object.tracks) as [string, any][]).reduce(
|
? Object.entries(object.tracks).reduce<{ [key: number]: TrackModelDefinition }>((acc, [key, value]) => {
|
||||||
(acc: { [key: number]: TrackModelDefinition }, [key, value]: [string, any]) => {
|
acc[globalThis.Number(key)] = TrackModelDefinition.fromJSON(value);
|
||||||
acc[globalThis.Number(key)] = TrackModelDefinition.fromJSON(value);
|
return acc;
|
||||||
return acc;
|
}, {})
|
||||||
},
|
|
||||||
{},
|
|
||||||
)
|
|
||||||
: {},
|
: {},
|
||||||
bounding_box: isSet(object.boundingBox)
|
bounding_box: isSet(object.bounding_box) ? BoundingBox.fromJSON(object.bounding_box) : undefined,
|
||||||
? BoundingBox.fromJSON(object.boundingBox)
|
|
||||||
: isSet(object.bounding_box)
|
|
||||||
? BoundingBox.fromJSON(object.bounding_box)
|
|
||||||
: undefined,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -422,13 +403,13 @@ export const ModelDefinition: MessageFns<ModelDefinition> = {
|
|||||||
obj.armor = Armor.toJSON(message.armor);
|
obj.armor = Armor.toJSON(message.armor);
|
||||||
}
|
}
|
||||||
if (message.turret_origin !== undefined) {
|
if (message.turret_origin !== undefined) {
|
||||||
obj.turretOrigin = Vector3.toJSON(message.turret_origin);
|
obj.turret_origin = Vector3.toJSON(message.turret_origin);
|
||||||
}
|
}
|
||||||
if (message.initial_turret_rotation !== undefined) {
|
if (message.initial_turret_rotation !== undefined) {
|
||||||
obj.initialTurretRotation = InitialTurretRotation.toJSON(message.initial_turret_rotation);
|
obj.initial_turret_rotation = InitialTurretRotation.toJSON(message.initial_turret_rotation);
|
||||||
}
|
}
|
||||||
if (message.turrets) {
|
if (message.turrets) {
|
||||||
const entries = globalThis.Object.entries(message.turrets) as [string, TurretModelDefinition][];
|
const entries = Object.entries(message.turrets);
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.turrets = {};
|
obj.turrets = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -437,7 +418,7 @@ export const ModelDefinition: MessageFns<ModelDefinition> = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (message.tracks) {
|
if (message.tracks) {
|
||||||
const entries = globalThis.Object.entries(message.tracks) as [string, TrackModelDefinition][];
|
const entries = Object.entries(message.tracks);
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.tracks = {};
|
obj.tracks = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -446,7 +427,7 @@ export const ModelDefinition: MessageFns<ModelDefinition> = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (message.bounding_box !== undefined) {
|
if (message.bounding_box !== undefined) {
|
||||||
obj.boundingBox = BoundingBox.toJSON(message.bounding_box);
|
obj.bounding_box = BoundingBox.toJSON(message.bounding_box);
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
@@ -464,8 +445,8 @@ export const ModelDefinition: MessageFns<ModelDefinition> = {
|
|||||||
(object.initial_turret_rotation !== undefined && object.initial_turret_rotation !== null)
|
(object.initial_turret_rotation !== undefined && object.initial_turret_rotation !== null)
|
||||||
? InitialTurretRotation.fromPartial(object.initial_turret_rotation)
|
? InitialTurretRotation.fromPartial(object.initial_turret_rotation)
|
||||||
: undefined;
|
: undefined;
|
||||||
message.turrets = (globalThis.Object.entries(object.turrets ?? {}) as [string, TurretModelDefinition][]).reduce(
|
message.turrets = Object.entries(object.turrets ?? {}).reduce<{ [key: number]: TurretModelDefinition }>(
|
||||||
(acc: { [key: number]: TurretModelDefinition }, [key, value]: [string, TurretModelDefinition]) => {
|
(acc, [key, value]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
acc[globalThis.Number(key)] = TurretModelDefinition.fromPartial(value);
|
acc[globalThis.Number(key)] = TurretModelDefinition.fromPartial(value);
|
||||||
}
|
}
|
||||||
@@ -473,8 +454,8 @@ export const ModelDefinition: MessageFns<ModelDefinition> = {
|
|||||||
},
|
},
|
||||||
{},
|
{},
|
||||||
);
|
);
|
||||||
message.tracks = (globalThis.Object.entries(object.tracks ?? {}) as [string, TrackModelDefinition][]).reduce(
|
message.tracks = Object.entries(object.tracks ?? {}).reduce<{ [key: number]: TrackModelDefinition }>(
|
||||||
(acc: { [key: number]: TrackModelDefinition }, [key, value]: [string, TrackModelDefinition]) => {
|
(acc, [key, value]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
acc[globalThis.Number(key)] = TrackModelDefinition.fromPartial(value);
|
acc[globalThis.Number(key)] = TrackModelDefinition.fromPartial(value);
|
||||||
}
|
}
|
||||||
@@ -651,7 +632,7 @@ function createBaseArmor(): Armor {
|
|||||||
|
|
||||||
export const Armor: MessageFns<Armor> = {
|
export const Armor: MessageFns<Armor> = {
|
||||||
encode(message: Armor, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
encode(message: Armor, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
||||||
globalThis.Object.entries(message.thickness).forEach(([key, value]: [string, number]) => {
|
Object.entries(message.thickness).forEach(([key, value]) => {
|
||||||
Armor_ThicknessEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
Armor_ThicknessEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
||||||
});
|
});
|
||||||
for (const v of message.spaced) {
|
for (const v of message.spaced) {
|
||||||
@@ -708,13 +689,10 @@ export const Armor: MessageFns<Armor> = {
|
|||||||
fromJSON(object: any): Armor {
|
fromJSON(object: any): Armor {
|
||||||
return {
|
return {
|
||||||
thickness: isObject(object.thickness)
|
thickness: isObject(object.thickness)
|
||||||
? (globalThis.Object.entries(object.thickness) as [string, any][]).reduce(
|
? Object.entries(object.thickness).reduce<{ [key: number]: number }>((acc, [key, value]) => {
|
||||||
(acc: { [key: number]: number }, [key, value]: [string, any]) => {
|
acc[globalThis.Number(key)] = Number(value);
|
||||||
acc[globalThis.Number(key)] = globalThis.Number(value);
|
return acc;
|
||||||
return acc;
|
}, {})
|
||||||
},
|
|
||||||
{},
|
|
||||||
)
|
|
||||||
: {},
|
: {},
|
||||||
spaced: globalThis.Array.isArray(object?.spaced) ? object.spaced.map((e: any) => globalThis.Number(e)) : [],
|
spaced: globalThis.Array.isArray(object?.spaced) ? object.spaced.map((e: any) => globalThis.Number(e)) : [],
|
||||||
};
|
};
|
||||||
@@ -723,7 +701,7 @@ export const Armor: MessageFns<Armor> = {
|
|||||||
toJSON(message: Armor): unknown {
|
toJSON(message: Armor): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
if (message.thickness) {
|
if (message.thickness) {
|
||||||
const entries = globalThis.Object.entries(message.thickness) as [string, number][];
|
const entries = Object.entries(message.thickness);
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.thickness = {};
|
obj.thickness = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -742,8 +720,8 @@ export const Armor: MessageFns<Armor> = {
|
|||||||
},
|
},
|
||||||
fromPartial<I extends Exact<DeepPartial<Armor>, I>>(object: I): Armor {
|
fromPartial<I extends Exact<DeepPartial<Armor>, I>>(object: I): Armor {
|
||||||
const message = createBaseArmor();
|
const message = createBaseArmor();
|
||||||
message.thickness = (globalThis.Object.entries(object.thickness ?? {}) as [string, number][]).reduce(
|
message.thickness = Object.entries(object.thickness ?? {}).reduce<{ [key: number]: number }>(
|
||||||
(acc: { [key: number]: number }, [key, value]: [string, number]) => {
|
(acc, [key, value]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
acc[globalThis.Number(key)] = globalThis.Number(value);
|
acc[globalThis.Number(key)] = globalThis.Number(value);
|
||||||
}
|
}
|
||||||
@@ -1034,7 +1012,7 @@ export const TurretModelDefinition: MessageFns<TurretModelDefinition> = {
|
|||||||
if (message.gun_origin !== undefined) {
|
if (message.gun_origin !== undefined) {
|
||||||
Vector3.encode(message.gun_origin, writer.uint32(34).fork()).join();
|
Vector3.encode(message.gun_origin, writer.uint32(34).fork()).join();
|
||||||
}
|
}
|
||||||
globalThis.Object.entries(message.guns).forEach(([key, value]: [string, GunModelDefinition]) => {
|
Object.entries(message.guns).forEach(([key, value]) => {
|
||||||
TurretModelDefinition_GunsEntry.encode({ key: key as any, value }, writer.uint32(42).fork()).join();
|
TurretModelDefinition_GunsEntry.encode({ key: key as any, value }, writer.uint32(42).fork()).join();
|
||||||
});
|
});
|
||||||
if (message.yaw !== undefined) {
|
if (message.yaw !== undefined) {
|
||||||
@@ -1112,30 +1090,15 @@ export const TurretModelDefinition: MessageFns<TurretModelDefinition> = {
|
|||||||
|
|
||||||
fromJSON(object: any): TurretModelDefinition {
|
fromJSON(object: any): TurretModelDefinition {
|
||||||
return {
|
return {
|
||||||
bounding_box: isSet(object.boundingBox)
|
bounding_box: isSet(object.bounding_box) ? BoundingBox.fromJSON(object.bounding_box) : undefined,
|
||||||
? BoundingBox.fromJSON(object.boundingBox)
|
|
||||||
: isSet(object.bounding_box)
|
|
||||||
? BoundingBox.fromJSON(object.bounding_box)
|
|
||||||
: undefined,
|
|
||||||
armor: isSet(object.armor) ? Armor.fromJSON(object.armor) : undefined,
|
armor: isSet(object.armor) ? Armor.fromJSON(object.armor) : undefined,
|
||||||
model_id: isSet(object.modelId)
|
model_id: isSet(object.model_id) ? globalThis.Number(object.model_id) : 0,
|
||||||
? globalThis.Number(object.modelId)
|
gun_origin: isSet(object.gun_origin) ? Vector3.fromJSON(object.gun_origin) : undefined,
|
||||||
: isSet(object.model_id)
|
|
||||||
? globalThis.Number(object.model_id)
|
|
||||||
: 0,
|
|
||||||
gun_origin: isSet(object.gunOrigin)
|
|
||||||
? Vector3.fromJSON(object.gunOrigin)
|
|
||||||
: isSet(object.gun_origin)
|
|
||||||
? Vector3.fromJSON(object.gun_origin)
|
|
||||||
: undefined,
|
|
||||||
guns: isObject(object.guns)
|
guns: isObject(object.guns)
|
||||||
? (globalThis.Object.entries(object.guns) as [string, any][]).reduce(
|
? Object.entries(object.guns).reduce<{ [key: number]: GunModelDefinition }>((acc, [key, value]) => {
|
||||||
(acc: { [key: number]: GunModelDefinition }, [key, value]: [string, any]) => {
|
acc[globalThis.Number(key)] = GunModelDefinition.fromJSON(value);
|
||||||
acc[globalThis.Number(key)] = GunModelDefinition.fromJSON(value);
|
return acc;
|
||||||
return acc;
|
}, {})
|
||||||
},
|
|
||||||
{},
|
|
||||||
)
|
|
||||||
: {},
|
: {},
|
||||||
yaw: isSet(object.yaw) ? YawLimits.fromJSON(object.yaw) : undefined,
|
yaw: isSet(object.yaw) ? YawLimits.fromJSON(object.yaw) : undefined,
|
||||||
};
|
};
|
||||||
@@ -1144,19 +1107,19 @@ export const TurretModelDefinition: MessageFns<TurretModelDefinition> = {
|
|||||||
toJSON(message: TurretModelDefinition): unknown {
|
toJSON(message: TurretModelDefinition): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
if (message.bounding_box !== undefined) {
|
if (message.bounding_box !== undefined) {
|
||||||
obj.boundingBox = BoundingBox.toJSON(message.bounding_box);
|
obj.bounding_box = BoundingBox.toJSON(message.bounding_box);
|
||||||
}
|
}
|
||||||
if (message.armor !== undefined) {
|
if (message.armor !== undefined) {
|
||||||
obj.armor = Armor.toJSON(message.armor);
|
obj.armor = Armor.toJSON(message.armor);
|
||||||
}
|
}
|
||||||
if (message.model_id !== 0) {
|
if (message.model_id !== 0) {
|
||||||
obj.modelId = Math.round(message.model_id);
|
obj.model_id = Math.round(message.model_id);
|
||||||
}
|
}
|
||||||
if (message.gun_origin !== undefined) {
|
if (message.gun_origin !== undefined) {
|
||||||
obj.gunOrigin = Vector3.toJSON(message.gun_origin);
|
obj.gun_origin = Vector3.toJSON(message.gun_origin);
|
||||||
}
|
}
|
||||||
if (message.guns) {
|
if (message.guns) {
|
||||||
const entries = globalThis.Object.entries(message.guns) as [string, GunModelDefinition][];
|
const entries = Object.entries(message.guns);
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.guns = {};
|
obj.guns = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -1183,8 +1146,8 @@ export const TurretModelDefinition: MessageFns<TurretModelDefinition> = {
|
|||||||
message.gun_origin = (object.gun_origin !== undefined && object.gun_origin !== null)
|
message.gun_origin = (object.gun_origin !== undefined && object.gun_origin !== null)
|
||||||
? Vector3.fromPartial(object.gun_origin)
|
? Vector3.fromPartial(object.gun_origin)
|
||||||
: undefined;
|
: undefined;
|
||||||
message.guns = (globalThis.Object.entries(object.guns ?? {}) as [string, GunModelDefinition][]).reduce(
|
message.guns = Object.entries(object.guns ?? {}).reduce<{ [key: number]: GunModelDefinition }>(
|
||||||
(acc: { [key: number]: GunModelDefinition }, [key, value]: [string, GunModelDefinition]) => {
|
(acc, [key, value]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
acc[globalThis.Number(key)] = GunModelDefinition.fromPartial(value);
|
acc[globalThis.Number(key)] = GunModelDefinition.fromPartial(value);
|
||||||
}
|
}
|
||||||
@@ -1591,11 +1554,7 @@ export const GunModelDefinition: MessageFns<GunModelDefinition> = {
|
|||||||
return {
|
return {
|
||||||
armor: isSet(object.armor) ? Armor.fromJSON(object.armor) : undefined,
|
armor: isSet(object.armor) ? Armor.fromJSON(object.armor) : undefined,
|
||||||
thickness: isSet(object.thickness) ? globalThis.Number(object.thickness) : 0,
|
thickness: isSet(object.thickness) ? globalThis.Number(object.thickness) : 0,
|
||||||
model_id: isSet(object.modelId)
|
model_id: isSet(object.model_id) ? globalThis.Number(object.model_id) : 0,
|
||||||
? globalThis.Number(object.modelId)
|
|
||||||
: isSet(object.model_id)
|
|
||||||
? globalThis.Number(object.model_id)
|
|
||||||
: 0,
|
|
||||||
pitch: isSet(object.pitch) ? PitchLimits.fromJSON(object.pitch) : undefined,
|
pitch: isSet(object.pitch) ? PitchLimits.fromJSON(object.pitch) : undefined,
|
||||||
mask: isSet(object.mask) ? globalThis.Number(object.mask) : 0,
|
mask: isSet(object.mask) ? globalThis.Number(object.mask) : 0,
|
||||||
};
|
};
|
||||||
@@ -1610,7 +1569,7 @@ export const GunModelDefinition: MessageFns<GunModelDefinition> = {
|
|||||||
obj.thickness = message.thickness;
|
obj.thickness = message.thickness;
|
||||||
}
|
}
|
||||||
if (message.model_id !== 0) {
|
if (message.model_id !== 0) {
|
||||||
obj.modelId = Math.round(message.model_id);
|
obj.model_id = Math.round(message.model_id);
|
||||||
}
|
}
|
||||||
if (message.pitch !== undefined) {
|
if (message.pitch !== undefined) {
|
||||||
obj.pitch = PitchLimits.toJSON(message.pitch);
|
obj.pitch = PitchLimits.toJSON(message.pitch);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-ts_proto v2.11.2
|
// protoc-gen-ts_proto v2.7.7
|
||||||
// protoc v5.28.2
|
// protoc v3.19.6
|
||||||
// source: popular_tanks.proto
|
// source: popular_tanks.proto
|
||||||
|
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-ts_proto v2.11.2
|
// protoc-gen-ts_proto v2.7.7
|
||||||
// protoc v5.28.2
|
// protoc v3.19.6
|
||||||
// source: provision_definitions.proto
|
// source: provision_definitions.proto
|
||||||
|
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
@@ -35,7 +35,7 @@ function createBaseProvisionDefinitions(): ProvisionDefinitions {
|
|||||||
|
|
||||||
export const ProvisionDefinitions: MessageFns<ProvisionDefinitions> = {
|
export const ProvisionDefinitions: MessageFns<ProvisionDefinitions> = {
|
||||||
encode(message: ProvisionDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
encode(message: ProvisionDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
||||||
globalThis.Object.entries(message.provisions).forEach(([key, value]: [string, Provision]) => {
|
Object.entries(message.provisions).forEach(([key, value]) => {
|
||||||
ProvisionDefinitions_ProvisionsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
ProvisionDefinitions_ProvisionsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
||||||
});
|
});
|
||||||
return writer;
|
return writer;
|
||||||
@@ -71,13 +71,10 @@ export const ProvisionDefinitions: MessageFns<ProvisionDefinitions> = {
|
|||||||
fromJSON(object: any): ProvisionDefinitions {
|
fromJSON(object: any): ProvisionDefinitions {
|
||||||
return {
|
return {
|
||||||
provisions: isObject(object.provisions)
|
provisions: isObject(object.provisions)
|
||||||
? (globalThis.Object.entries(object.provisions) as [string, any][]).reduce(
|
? Object.entries(object.provisions).reduce<{ [key: number]: Provision }>((acc, [key, value]) => {
|
||||||
(acc: { [key: number]: Provision }, [key, value]: [string, any]) => {
|
acc[globalThis.Number(key)] = Provision.fromJSON(value);
|
||||||
acc[globalThis.Number(key)] = Provision.fromJSON(value);
|
return acc;
|
||||||
return acc;
|
}, {})
|
||||||
},
|
|
||||||
{},
|
|
||||||
)
|
|
||||||
: {},
|
: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -85,7 +82,7 @@ export const ProvisionDefinitions: MessageFns<ProvisionDefinitions> = {
|
|||||||
toJSON(message: ProvisionDefinitions): unknown {
|
toJSON(message: ProvisionDefinitions): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
if (message.provisions) {
|
if (message.provisions) {
|
||||||
const entries = globalThis.Object.entries(message.provisions) as [string, Provision][];
|
const entries = Object.entries(message.provisions);
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.provisions = {};
|
obj.provisions = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -101,8 +98,8 @@ export const ProvisionDefinitions: MessageFns<ProvisionDefinitions> = {
|
|||||||
},
|
},
|
||||||
fromPartial<I extends Exact<DeepPartial<ProvisionDefinitions>, I>>(object: I): ProvisionDefinitions {
|
fromPartial<I extends Exact<DeepPartial<ProvisionDefinitions>, I>>(object: I): ProvisionDefinitions {
|
||||||
const message = createBaseProvisionDefinitions();
|
const message = createBaseProvisionDefinitions();
|
||||||
message.provisions = (globalThis.Object.entries(object.provisions ?? {}) as [string, Provision][]).reduce(
|
message.provisions = Object.entries(object.provisions ?? {}).reduce<{ [key: number]: Provision }>(
|
||||||
(acc: { [key: number]: Provision }, [key, value]: [string, Provision]) => {
|
(acc, [key, value]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
acc[globalThis.Number(key)] = Provision.fromPartial(value);
|
acc[globalThis.Number(key)] = Provision.fromPartial(value);
|
||||||
}
|
}
|
||||||
@@ -292,11 +289,7 @@ export const Provision: MessageFns<Provision> = {
|
|||||||
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
||||||
name: isSet(object.name) ? I18nString.fromJSON(object.name) : undefined,
|
name: isSet(object.name) ? I18nString.fromJSON(object.name) : undefined,
|
||||||
crew: isSet(object.crew) ? globalThis.Number(object.crew) : 0,
|
crew: isSet(object.crew) ? globalThis.Number(object.crew) : 0,
|
||||||
game_mode_exclusive: isSet(object.gameModeExclusive)
|
game_mode_exclusive: isSet(object.game_mode_exclusive) ? globalThis.Boolean(object.game_mode_exclusive) : false,
|
||||||
? globalThis.Boolean(object.gameModeExclusive)
|
|
||||||
: isSet(object.game_mode_exclusive)
|
|
||||||
? globalThis.Boolean(object.game_mode_exclusive)
|
|
||||||
: false,
|
|
||||||
include: globalThis.Array.isArray(object?.include)
|
include: globalThis.Array.isArray(object?.include)
|
||||||
? object.include.map((e: any) => ConsumableTankFilter.fromJSON(e))
|
? object.include.map((e: any) => ConsumableTankFilter.fromJSON(e))
|
||||||
: [],
|
: [],
|
||||||
@@ -318,7 +311,7 @@ export const Provision: MessageFns<Provision> = {
|
|||||||
obj.crew = message.crew;
|
obj.crew = message.crew;
|
||||||
}
|
}
|
||||||
if (message.game_mode_exclusive !== false) {
|
if (message.game_mode_exclusive !== false) {
|
||||||
obj.gameModeExclusive = message.game_mode_exclusive;
|
obj.game_mode_exclusive = message.game_mode_exclusive;
|
||||||
}
|
}
|
||||||
if (message.include?.length) {
|
if (message.include?.length) {
|
||||||
obj.include = message.include.map((e) => ConsumableTankFilter.toJSON(e));
|
obj.include = message.include.map((e) => ConsumableTankFilter.toJSON(e));
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-ts_proto v2.11.2
|
// protoc-gen-ts_proto v2.7.7
|
||||||
// protoc v5.28.2
|
// protoc v3.19.6
|
||||||
// source: rating_leaderboard.proto
|
// source: rating_leaderboard.proto
|
||||||
|
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-ts_proto v2.11.2
|
// protoc-gen-ts_proto v2.7.7
|
||||||
// protoc v5.28.2
|
// protoc v3.19.6
|
||||||
// source: reviews.proto
|
// source: reviews.proto
|
||||||
|
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
@@ -34,7 +34,7 @@ function createBaseReviews(): Reviews {
|
|||||||
|
|
||||||
export const Reviews: MessageFns<Reviews> = {
|
export const Reviews: MessageFns<Reviews> = {
|
||||||
encode(message: Reviews, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
encode(message: Reviews, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
||||||
globalThis.Object.entries(message.reviews).forEach(([key, value]: [string, Review]) => {
|
Object.entries(message.reviews).forEach(([key, value]) => {
|
||||||
Reviews_ReviewsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
Reviews_ReviewsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
||||||
});
|
});
|
||||||
return writer;
|
return writer;
|
||||||
@@ -70,13 +70,10 @@ export const Reviews: MessageFns<Reviews> = {
|
|||||||
fromJSON(object: any): Reviews {
|
fromJSON(object: any): Reviews {
|
||||||
return {
|
return {
|
||||||
reviews: isObject(object.reviews)
|
reviews: isObject(object.reviews)
|
||||||
? (globalThis.Object.entries(object.reviews) as [string, any][]).reduce(
|
? Object.entries(object.reviews).reduce<{ [key: number]: Review }>((acc, [key, value]) => {
|
||||||
(acc: { [key: number]: Review }, [key, value]: [string, any]) => {
|
acc[globalThis.Number(key)] = Review.fromJSON(value);
|
||||||
acc[globalThis.Number(key)] = Review.fromJSON(value);
|
return acc;
|
||||||
return acc;
|
}, {})
|
||||||
},
|
|
||||||
{},
|
|
||||||
)
|
|
||||||
: {},
|
: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -84,7 +81,7 @@ export const Reviews: MessageFns<Reviews> = {
|
|||||||
toJSON(message: Reviews): unknown {
|
toJSON(message: Reviews): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
if (message.reviews) {
|
if (message.reviews) {
|
||||||
const entries = globalThis.Object.entries(message.reviews) as [string, Review][];
|
const entries = Object.entries(message.reviews);
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.reviews = {};
|
obj.reviews = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -100,15 +97,12 @@ export const Reviews: MessageFns<Reviews> = {
|
|||||||
},
|
},
|
||||||
fromPartial<I extends Exact<DeepPartial<Reviews>, I>>(object: I): Reviews {
|
fromPartial<I extends Exact<DeepPartial<Reviews>, I>>(object: I): Reviews {
|
||||||
const message = createBaseReviews();
|
const message = createBaseReviews();
|
||||||
message.reviews = (globalThis.Object.entries(object.reviews ?? {}) as [string, Review][]).reduce(
|
message.reviews = Object.entries(object.reviews ?? {}).reduce<{ [key: number]: Review }>((acc, [key, value]) => {
|
||||||
(acc: { [key: number]: Review }, [key, value]: [string, Review]) => {
|
if (value !== undefined) {
|
||||||
if (value !== undefined) {
|
acc[globalThis.Number(key)] = Review.fromPartial(value);
|
||||||
acc[globalThis.Number(key)] = Review.fromPartial(value);
|
}
|
||||||
}
|
return acc;
|
||||||
return acc;
|
}, {});
|
||||||
},
|
|
||||||
{},
|
|
||||||
);
|
|
||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -240,11 +234,7 @@ export const Review: MessageFns<Review> = {
|
|||||||
|
|
||||||
fromJSON(object: any): Review {
|
fromJSON(object: any): Review {
|
||||||
return {
|
return {
|
||||||
last_updated: isSet(object.lastUpdated)
|
last_updated: isSet(object.last_updated) ? globalThis.Number(object.last_updated) : 0,
|
||||||
? globalThis.Number(object.lastUpdated)
|
|
||||||
: isSet(object.last_updated)
|
|
||||||
? globalThis.Number(object.last_updated)
|
|
||||||
: 0,
|
|
||||||
videos: globalThis.Array.isArray(object?.videos) ? object.videos.map((e: any) => Video.fromJSON(e)) : [],
|
videos: globalThis.Array.isArray(object?.videos) ? object.videos.map((e: any) => Video.fromJSON(e)) : [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -252,7 +242,7 @@ export const Review: MessageFns<Review> = {
|
|||||||
toJSON(message: Review): unknown {
|
toJSON(message: Review): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
if (message.last_updated !== 0) {
|
if (message.last_updated !== 0) {
|
||||||
obj.lastUpdated = message.last_updated;
|
obj.last_updated = message.last_updated;
|
||||||
}
|
}
|
||||||
if (message.videos?.length) {
|
if (message.videos?.length) {
|
||||||
obj.videos = message.videos.map((e) => Video.toJSON(e));
|
obj.videos = message.videos.map((e) => Video.toJSON(e));
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-ts_proto v2.11.2
|
// protoc-gen-ts_proto v2.7.7
|
||||||
// protoc v5.28.2
|
// protoc v3.19.6
|
||||||
// source: skill_definitions.proto
|
// source: skill_definitions.proto
|
||||||
|
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
@@ -29,7 +29,7 @@ function createBaseSkillDefinitions(): SkillDefinitions {
|
|||||||
|
|
||||||
export const SkillDefinitions: MessageFns<SkillDefinitions> = {
|
export const SkillDefinitions: MessageFns<SkillDefinitions> = {
|
||||||
encode(message: SkillDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
encode(message: SkillDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
||||||
globalThis.Object.entries(message.classes).forEach(([key, value]: [string, Skill]) => {
|
Object.entries(message.classes).forEach(([key, value]) => {
|
||||||
SkillDefinitions_ClassesEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
SkillDefinitions_ClassesEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
||||||
});
|
});
|
||||||
return writer;
|
return writer;
|
||||||
@@ -65,13 +65,10 @@ export const SkillDefinitions: MessageFns<SkillDefinitions> = {
|
|||||||
fromJSON(object: any): SkillDefinitions {
|
fromJSON(object: any): SkillDefinitions {
|
||||||
return {
|
return {
|
||||||
classes: isObject(object.classes)
|
classes: isObject(object.classes)
|
||||||
? (globalThis.Object.entries(object.classes) as [string, any][]).reduce(
|
? Object.entries(object.classes).reduce<{ [key: number]: Skill }>((acc, [key, value]) => {
|
||||||
(acc: { [key: number]: Skill }, [key, value]: [string, any]) => {
|
acc[globalThis.Number(key)] = Skill.fromJSON(value);
|
||||||
acc[globalThis.Number(key)] = Skill.fromJSON(value);
|
return acc;
|
||||||
return acc;
|
}, {})
|
||||||
},
|
|
||||||
{},
|
|
||||||
)
|
|
||||||
: {},
|
: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -79,7 +76,7 @@ export const SkillDefinitions: MessageFns<SkillDefinitions> = {
|
|||||||
toJSON(message: SkillDefinitions): unknown {
|
toJSON(message: SkillDefinitions): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
if (message.classes) {
|
if (message.classes) {
|
||||||
const entries = globalThis.Object.entries(message.classes) as [string, Skill][];
|
const entries = Object.entries(message.classes);
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.classes = {};
|
obj.classes = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -95,15 +92,12 @@ export const SkillDefinitions: MessageFns<SkillDefinitions> = {
|
|||||||
},
|
},
|
||||||
fromPartial<I extends Exact<DeepPartial<SkillDefinitions>, I>>(object: I): SkillDefinitions {
|
fromPartial<I extends Exact<DeepPartial<SkillDefinitions>, I>>(object: I): SkillDefinitions {
|
||||||
const message = createBaseSkillDefinitions();
|
const message = createBaseSkillDefinitions();
|
||||||
message.classes = (globalThis.Object.entries(object.classes ?? {}) as [string, Skill][]).reduce(
|
message.classes = Object.entries(object.classes ?? {}).reduce<{ [key: number]: Skill }>((acc, [key, value]) => {
|
||||||
(acc: { [key: number]: Skill }, [key, value]: [string, Skill]) => {
|
if (value !== undefined) {
|
||||||
if (value !== undefined) {
|
acc[globalThis.Number(key)] = Skill.fromPartial(value);
|
||||||
acc[globalThis.Number(key)] = Skill.fromPartial(value);
|
}
|
||||||
}
|
return acc;
|
||||||
return acc;
|
}, {});
|
||||||
},
|
|
||||||
{},
|
|
||||||
);
|
|
||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ message TankDefinitions {
|
|||||||
message TankDefinition {
|
message TankDefinition {
|
||||||
required uint32 id = 1;
|
required uint32 id = 1;
|
||||||
required string slug = 2;
|
required string slug = 2;
|
||||||
map<uint32, uint32> roles = 3;
|
map<string, uint32> roles = 3;
|
||||||
required bool fixed_camouflage = 5;
|
required bool fixed_camouflage = 5;
|
||||||
repeated int32 camouflages = 6;
|
repeated int32 camouflages = 6;
|
||||||
repeated int32 ancestors = 7;
|
repeated int32 ancestors = 7;
|
||||||
@@ -41,6 +41,7 @@ message TankDefinition {
|
|||||||
required uint32 weight = 31;
|
required uint32 weight = 31;
|
||||||
required string dev_name = 32;
|
required string dev_name = 32;
|
||||||
optional Equalizer equalizer = 33;
|
optional Equalizer equalizer = 33;
|
||||||
|
optional I18nString name_full = 34;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Equalizer {
|
message Equalizer {
|
||||||
@@ -86,6 +87,7 @@ message TrackDefinition {
|
|||||||
required float resistance_medium = 10;
|
required float resistance_medium = 10;
|
||||||
required float resistance_soft = 11;
|
required float resistance_soft = 11;
|
||||||
repeated Unlock unlocks = 12;
|
repeated Unlock unlocks = 12;
|
||||||
|
required float repair_time = 13;
|
||||||
}
|
}
|
||||||
|
|
||||||
message EngineDefinition {
|
message EngineDefinition {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-ts_proto v2.11.2
|
// protoc-gen-ts_proto v2.7.7
|
||||||
// protoc v5.28.2
|
// protoc v3.19.6
|
||||||
// source: tank_definitions.proto
|
// source: tank_definitions.proto
|
||||||
|
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
@@ -262,7 +262,7 @@ export interface TankDefinitions_TanksEntry {
|
|||||||
export interface TankDefinition {
|
export interface TankDefinition {
|
||||||
id: number;
|
id: number;
|
||||||
slug: string;
|
slug: string;
|
||||||
roles: { [key: number]: number };
|
roles: { [key: string]: number };
|
||||||
fixed_camouflage: boolean;
|
fixed_camouflage: boolean;
|
||||||
camouflages: number[];
|
camouflages: number[];
|
||||||
ancestors: number[];
|
ancestors: number[];
|
||||||
@@ -292,10 +292,11 @@ export interface TankDefinition {
|
|||||||
weight: number;
|
weight: number;
|
||||||
dev_name: string;
|
dev_name: string;
|
||||||
equalizer?: Equalizer | undefined;
|
equalizer?: Equalizer | undefined;
|
||||||
|
name_full?: I18nString | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface TankDefinition_RolesEntry {
|
export interface TankDefinition_RolesEntry {
|
||||||
key: number;
|
key: string;
|
||||||
value: number;
|
value: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -337,6 +338,7 @@ export interface TrackDefinition {
|
|||||||
resistance_medium: number;
|
resistance_medium: number;
|
||||||
resistance_soft: number;
|
resistance_soft: number;
|
||||||
unlocks: Unlock[];
|
unlocks: Unlock[];
|
||||||
|
repair_time: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface EngineDefinition {
|
export interface EngineDefinition {
|
||||||
@@ -463,7 +465,7 @@ function createBaseTankDefinitions(): TankDefinitions {
|
|||||||
|
|
||||||
export const TankDefinitions: MessageFns<TankDefinitions> = {
|
export const TankDefinitions: MessageFns<TankDefinitions> = {
|
||||||
encode(message: TankDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
encode(message: TankDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
||||||
globalThis.Object.entries(message.tanks).forEach(([key, value]: [string, TankDefinition]) => {
|
Object.entries(message.tanks).forEach(([key, value]) => {
|
||||||
TankDefinitions_TanksEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
TankDefinitions_TanksEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
||||||
});
|
});
|
||||||
return writer;
|
return writer;
|
||||||
@@ -499,13 +501,10 @@ export const TankDefinitions: MessageFns<TankDefinitions> = {
|
|||||||
fromJSON(object: any): TankDefinitions {
|
fromJSON(object: any): TankDefinitions {
|
||||||
return {
|
return {
|
||||||
tanks: isObject(object.tanks)
|
tanks: isObject(object.tanks)
|
||||||
? (globalThis.Object.entries(object.tanks) as [string, any][]).reduce(
|
? Object.entries(object.tanks).reduce<{ [key: number]: TankDefinition }>((acc, [key, value]) => {
|
||||||
(acc: { [key: number]: TankDefinition }, [key, value]: [string, any]) => {
|
acc[globalThis.Number(key)] = TankDefinition.fromJSON(value);
|
||||||
acc[globalThis.Number(key)] = TankDefinition.fromJSON(value);
|
return acc;
|
||||||
return acc;
|
}, {})
|
||||||
},
|
|
||||||
{},
|
|
||||||
)
|
|
||||||
: {},
|
: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -513,7 +512,7 @@ export const TankDefinitions: MessageFns<TankDefinitions> = {
|
|||||||
toJSON(message: TankDefinitions): unknown {
|
toJSON(message: TankDefinitions): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
if (message.tanks) {
|
if (message.tanks) {
|
||||||
const entries = globalThis.Object.entries(message.tanks) as [string, TankDefinition][];
|
const entries = Object.entries(message.tanks);
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.tanks = {};
|
obj.tanks = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -529,8 +528,8 @@ export const TankDefinitions: MessageFns<TankDefinitions> = {
|
|||||||
},
|
},
|
||||||
fromPartial<I extends Exact<DeepPartial<TankDefinitions>, I>>(object: I): TankDefinitions {
|
fromPartial<I extends Exact<DeepPartial<TankDefinitions>, I>>(object: I): TankDefinitions {
|
||||||
const message = createBaseTankDefinitions();
|
const message = createBaseTankDefinitions();
|
||||||
message.tanks = (globalThis.Object.entries(object.tanks ?? {}) as [string, TankDefinition][]).reduce(
|
message.tanks = Object.entries(object.tanks ?? {}).reduce<{ [key: number]: TankDefinition }>(
|
||||||
(acc: { [key: number]: TankDefinition }, [key, value]: [string, TankDefinition]) => {
|
(acc, [key, value]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
acc[globalThis.Number(key)] = TankDefinition.fromPartial(value);
|
acc[globalThis.Number(key)] = TankDefinition.fromPartial(value);
|
||||||
}
|
}
|
||||||
@@ -654,6 +653,7 @@ function createBaseTankDefinition(): TankDefinition {
|
|||||||
weight: 0,
|
weight: 0,
|
||||||
dev_name: "",
|
dev_name: "",
|
||||||
equalizer: undefined,
|
equalizer: undefined,
|
||||||
|
name_full: undefined,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -665,7 +665,7 @@ export const TankDefinition: MessageFns<TankDefinition> = {
|
|||||||
if (message.slug !== "") {
|
if (message.slug !== "") {
|
||||||
writer.uint32(18).string(message.slug);
|
writer.uint32(18).string(message.slug);
|
||||||
}
|
}
|
||||||
globalThis.Object.entries(message.roles).forEach(([key, value]: [string, number]) => {
|
Object.entries(message.roles).forEach(([key, value]) => {
|
||||||
TankDefinition_RolesEntry.encode({ key: key as any, value }, writer.uint32(26).fork()).join();
|
TankDefinition_RolesEntry.encode({ key: key as any, value }, writer.uint32(26).fork()).join();
|
||||||
});
|
});
|
||||||
if (message.fixed_camouflage !== false) {
|
if (message.fixed_camouflage !== false) {
|
||||||
@@ -755,6 +755,9 @@ export const TankDefinition: MessageFns<TankDefinition> = {
|
|||||||
if (message.equalizer !== undefined) {
|
if (message.equalizer !== undefined) {
|
||||||
Equalizer.encode(message.equalizer, writer.uint32(266).fork()).join();
|
Equalizer.encode(message.equalizer, writer.uint32(266).fork()).join();
|
||||||
}
|
}
|
||||||
|
if (message.name_full !== undefined) {
|
||||||
|
I18nString.encode(message.name_full, writer.uint32(274).fork()).join();
|
||||||
|
}
|
||||||
return writer;
|
return writer;
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -1054,6 +1057,14 @@ export const TankDefinition: MessageFns<TankDefinition> = {
|
|||||||
message.equalizer = Equalizer.decode(reader, reader.uint32());
|
message.equalizer = Equalizer.decode(reader, reader.uint32());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
case 34: {
|
||||||
|
if (tag !== 274) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
message.name_full = I18nString.decode(reader, reader.uint32());
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ((tag & 7) === 4 || tag === 0) {
|
if ((tag & 7) === 4 || tag === 0) {
|
||||||
break;
|
break;
|
||||||
@@ -1068,19 +1079,12 @@ export const TankDefinition: MessageFns<TankDefinition> = {
|
|||||||
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
||||||
slug: isSet(object.slug) ? globalThis.String(object.slug) : "",
|
slug: isSet(object.slug) ? globalThis.String(object.slug) : "",
|
||||||
roles: isObject(object.roles)
|
roles: isObject(object.roles)
|
||||||
? (globalThis.Object.entries(object.roles) as [string, any][]).reduce(
|
? Object.entries(object.roles).reduce<{ [key: string]: number }>((acc, [key, value]) => {
|
||||||
(acc: { [key: number]: number }, [key, value]: [string, any]) => {
|
acc[key] = Number(value);
|
||||||
acc[globalThis.Number(key)] = globalThis.Number(value);
|
return acc;
|
||||||
return acc;
|
}, {})
|
||||||
},
|
|
||||||
{},
|
|
||||||
)
|
|
||||||
: {},
|
: {},
|
||||||
fixed_camouflage: isSet(object.fixedCamouflage)
|
fixed_camouflage: isSet(object.fixed_camouflage) ? globalThis.Boolean(object.fixed_camouflage) : false,
|
||||||
? globalThis.Boolean(object.fixedCamouflage)
|
|
||||||
: isSet(object.fixed_camouflage)
|
|
||||||
? globalThis.Boolean(object.fixed_camouflage)
|
|
||||||
: false,
|
|
||||||
camouflages: globalThis.Array.isArray(object?.camouflages)
|
camouflages: globalThis.Array.isArray(object?.camouflages)
|
||||||
? object.camouflages.map((e: any) => globalThis.Number(e))
|
? object.camouflages.map((e: any) => globalThis.Number(e))
|
||||||
: [],
|
: [],
|
||||||
@@ -1090,23 +1094,13 @@ export const TankDefinition: MessageFns<TankDefinition> = {
|
|||||||
successors: globalThis.Array.isArray(object?.successors)
|
successors: globalThis.Array.isArray(object?.successors)
|
||||||
? object.successors.map((e: any) => globalThis.Number(e))
|
? object.successors.map((e: any) => globalThis.Number(e))
|
||||||
: [],
|
: [],
|
||||||
crew: globalThis.Array.isArray(object?.crew)
|
crew: globalThis.Array.isArray(object?.crew) ? object.crew.map((e: any) => Crew.fromJSON(e)) : [],
|
||||||
? object.crew.map((e: any) => Crew.fromJSON(e))
|
|
||||||
: [],
|
|
||||||
health: isSet(object.health) ? globalThis.Number(object.health) : 0,
|
health: isSet(object.health) ? globalThis.Number(object.health) : 0,
|
||||||
nation: isSet(object.nation) ? globalThis.String(object.nation) : "",
|
nation: isSet(object.nation) ? globalThis.String(object.nation) : "",
|
||||||
name: isSet(object.name) ? I18nString.fromJSON(object.name) : undefined,
|
name: isSet(object.name) ? I18nString.fromJSON(object.name) : undefined,
|
||||||
type: isSet(object.type) ? tankTypeFromJSON(object.type) : 0,
|
type: isSet(object.type) ? tankTypeFromJSON(object.type) : 0,
|
||||||
max_consumables: isSet(object.maxConsumables)
|
max_consumables: isSet(object.max_consumables) ? globalThis.Number(object.max_consumables) : 0,
|
||||||
? globalThis.Number(object.maxConsumables)
|
max_provisions: isSet(object.max_provisions) ? globalThis.Number(object.max_provisions) : 0,
|
||||||
: isSet(object.max_consumables)
|
|
||||||
? globalThis.Number(object.max_consumables)
|
|
||||||
: 0,
|
|
||||||
max_provisions: isSet(object.maxProvisions)
|
|
||||||
? globalThis.Number(object.maxProvisions)
|
|
||||||
: isSet(object.max_provisions)
|
|
||||||
? globalThis.Number(object.max_provisions)
|
|
||||||
: 0,
|
|
||||||
tier: isSet(object.tier) ? globalThis.Number(object.tier) : 0,
|
tier: isSet(object.tier) ? globalThis.Number(object.tier) : 0,
|
||||||
class: isSet(object.class) ? tankClassFromJSON(object.class) : 0,
|
class: isSet(object.class) ? tankClassFromJSON(object.class) : 0,
|
||||||
testing: isSet(object.testing) ? globalThis.Boolean(object.testing) : false,
|
testing: isSet(object.testing) ? globalThis.Boolean(object.testing) : false,
|
||||||
@@ -1121,48 +1115,17 @@ export const TankDefinition: MessageFns<TankDefinition> = {
|
|||||||
? object.tracks.map((e: any) => TrackDefinition.fromJSON(e))
|
? object.tracks.map((e: any) => TrackDefinition.fromJSON(e))
|
||||||
: [],
|
: [],
|
||||||
price: isSet(object.price) ? TankPrice.fromJSON(object.price) : undefined,
|
price: isSet(object.price) ? TankPrice.fromJSON(object.price) : undefined,
|
||||||
research_cost: isSet(object.researchCost)
|
research_cost: isSet(object.research_cost) ? ResearchCost.fromJSON(object.research_cost) : undefined,
|
||||||
? ResearchCost.fromJSON(object.researchCost)
|
speed_forwards: isSet(object.speed_forwards) ? globalThis.Number(object.speed_forwards) : 0,
|
||||||
: isSet(object.research_cost)
|
speed_backwards: isSet(object.speed_backwards) ? globalThis.Number(object.speed_backwards) : 0,
|
||||||
? ResearchCost.fromJSON(object.research_cost)
|
camouflage_still: isSet(object.camouflage_still) ? globalThis.Number(object.camouflage_still) : 0,
|
||||||
: undefined,
|
camouflage_moving: isSet(object.camouflage_moving) ? globalThis.Number(object.camouflage_moving) : 0,
|
||||||
speed_forwards: isSet(object.speedForwards)
|
camouflage_on_fire: isSet(object.camouflage_on_fire) ? globalThis.Number(object.camouflage_on_fire) : 0,
|
||||||
? globalThis.Number(object.speedForwards)
|
equipment_preset: isSet(object.equipment_preset) ? globalThis.String(object.equipment_preset) : "",
|
||||||
: isSet(object.speed_forwards)
|
|
||||||
? globalThis.Number(object.speed_forwards)
|
|
||||||
: 0,
|
|
||||||
speed_backwards: isSet(object.speedBackwards)
|
|
||||||
? globalThis.Number(object.speedBackwards)
|
|
||||||
: isSet(object.speed_backwards)
|
|
||||||
? globalThis.Number(object.speed_backwards)
|
|
||||||
: 0,
|
|
||||||
camouflage_still: isSet(object.camouflageStill)
|
|
||||||
? globalThis.Number(object.camouflageStill)
|
|
||||||
: isSet(object.camouflage_still)
|
|
||||||
? globalThis.Number(object.camouflage_still)
|
|
||||||
: 0,
|
|
||||||
camouflage_moving: isSet(object.camouflageMoving)
|
|
||||||
? globalThis.Number(object.camouflageMoving)
|
|
||||||
: isSet(object.camouflage_moving)
|
|
||||||
? globalThis.Number(object.camouflage_moving)
|
|
||||||
: 0,
|
|
||||||
camouflage_on_fire: isSet(object.camouflageOnFire)
|
|
||||||
? globalThis.Number(object.camouflageOnFire)
|
|
||||||
: isSet(object.camouflage_on_fire)
|
|
||||||
? globalThis.Number(object.camouflage_on_fire)
|
|
||||||
: 0,
|
|
||||||
equipment_preset: isSet(object.equipmentPreset)
|
|
||||||
? globalThis.String(object.equipmentPreset)
|
|
||||||
: isSet(object.equipment_preset)
|
|
||||||
? globalThis.String(object.equipment_preset)
|
|
||||||
: "",
|
|
||||||
weight: isSet(object.weight) ? globalThis.Number(object.weight) : 0,
|
weight: isSet(object.weight) ? globalThis.Number(object.weight) : 0,
|
||||||
dev_name: isSet(object.devName)
|
dev_name: isSet(object.dev_name) ? globalThis.String(object.dev_name) : "",
|
||||||
? globalThis.String(object.devName)
|
|
||||||
: isSet(object.dev_name)
|
|
||||||
? globalThis.String(object.dev_name)
|
|
||||||
: "",
|
|
||||||
equalizer: isSet(object.equalizer) ? Equalizer.fromJSON(object.equalizer) : undefined,
|
equalizer: isSet(object.equalizer) ? Equalizer.fromJSON(object.equalizer) : undefined,
|
||||||
|
name_full: isSet(object.name_full) ? I18nString.fromJSON(object.name_full) : undefined,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -1175,7 +1138,7 @@ export const TankDefinition: MessageFns<TankDefinition> = {
|
|||||||
obj.slug = message.slug;
|
obj.slug = message.slug;
|
||||||
}
|
}
|
||||||
if (message.roles) {
|
if (message.roles) {
|
||||||
const entries = globalThis.Object.entries(message.roles) as [string, number][];
|
const entries = Object.entries(message.roles);
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.roles = {};
|
obj.roles = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -1184,7 +1147,7 @@ export const TankDefinition: MessageFns<TankDefinition> = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (message.fixed_camouflage !== false) {
|
if (message.fixed_camouflage !== false) {
|
||||||
obj.fixedCamouflage = message.fixed_camouflage;
|
obj.fixed_camouflage = message.fixed_camouflage;
|
||||||
}
|
}
|
||||||
if (message.camouflages?.length) {
|
if (message.camouflages?.length) {
|
||||||
obj.camouflages = message.camouflages.map((e) => Math.round(e));
|
obj.camouflages = message.camouflages.map((e) => Math.round(e));
|
||||||
@@ -1211,10 +1174,10 @@ export const TankDefinition: MessageFns<TankDefinition> = {
|
|||||||
obj.type = tankTypeToJSON(message.type);
|
obj.type = tankTypeToJSON(message.type);
|
||||||
}
|
}
|
||||||
if (message.max_consumables !== 0) {
|
if (message.max_consumables !== 0) {
|
||||||
obj.maxConsumables = Math.round(message.max_consumables);
|
obj.max_consumables = Math.round(message.max_consumables);
|
||||||
}
|
}
|
||||||
if (message.max_provisions !== 0) {
|
if (message.max_provisions !== 0) {
|
||||||
obj.maxProvisions = Math.round(message.max_provisions);
|
obj.max_provisions = Math.round(message.max_provisions);
|
||||||
}
|
}
|
||||||
if (message.tier !== 0) {
|
if (message.tier !== 0) {
|
||||||
obj.tier = Math.round(message.tier);
|
obj.tier = Math.round(message.tier);
|
||||||
@@ -1241,35 +1204,38 @@ export const TankDefinition: MessageFns<TankDefinition> = {
|
|||||||
obj.price = TankPrice.toJSON(message.price);
|
obj.price = TankPrice.toJSON(message.price);
|
||||||
}
|
}
|
||||||
if (message.research_cost !== undefined) {
|
if (message.research_cost !== undefined) {
|
||||||
obj.researchCost = ResearchCost.toJSON(message.research_cost);
|
obj.research_cost = ResearchCost.toJSON(message.research_cost);
|
||||||
}
|
}
|
||||||
if (message.speed_forwards !== 0) {
|
if (message.speed_forwards !== 0) {
|
||||||
obj.speedForwards = message.speed_forwards;
|
obj.speed_forwards = message.speed_forwards;
|
||||||
}
|
}
|
||||||
if (message.speed_backwards !== 0) {
|
if (message.speed_backwards !== 0) {
|
||||||
obj.speedBackwards = message.speed_backwards;
|
obj.speed_backwards = message.speed_backwards;
|
||||||
}
|
}
|
||||||
if (message.camouflage_still !== 0) {
|
if (message.camouflage_still !== 0) {
|
||||||
obj.camouflageStill = message.camouflage_still;
|
obj.camouflage_still = message.camouflage_still;
|
||||||
}
|
}
|
||||||
if (message.camouflage_moving !== 0) {
|
if (message.camouflage_moving !== 0) {
|
||||||
obj.camouflageMoving = message.camouflage_moving;
|
obj.camouflage_moving = message.camouflage_moving;
|
||||||
}
|
}
|
||||||
if (message.camouflage_on_fire !== 0) {
|
if (message.camouflage_on_fire !== 0) {
|
||||||
obj.camouflageOnFire = message.camouflage_on_fire;
|
obj.camouflage_on_fire = message.camouflage_on_fire;
|
||||||
}
|
}
|
||||||
if (message.equipment_preset !== "") {
|
if (message.equipment_preset !== "") {
|
||||||
obj.equipmentPreset = message.equipment_preset;
|
obj.equipment_preset = message.equipment_preset;
|
||||||
}
|
}
|
||||||
if (message.weight !== 0) {
|
if (message.weight !== 0) {
|
||||||
obj.weight = Math.round(message.weight);
|
obj.weight = Math.round(message.weight);
|
||||||
}
|
}
|
||||||
if (message.dev_name !== "") {
|
if (message.dev_name !== "") {
|
||||||
obj.devName = message.dev_name;
|
obj.dev_name = message.dev_name;
|
||||||
}
|
}
|
||||||
if (message.equalizer !== undefined) {
|
if (message.equalizer !== undefined) {
|
||||||
obj.equalizer = Equalizer.toJSON(message.equalizer);
|
obj.equalizer = Equalizer.toJSON(message.equalizer);
|
||||||
}
|
}
|
||||||
|
if (message.name_full !== undefined) {
|
||||||
|
obj.name_full = I18nString.toJSON(message.name_full);
|
||||||
|
}
|
||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -1280,15 +1246,12 @@ export const TankDefinition: MessageFns<TankDefinition> = {
|
|||||||
const message = createBaseTankDefinition();
|
const message = createBaseTankDefinition();
|
||||||
message.id = object.id ?? 0;
|
message.id = object.id ?? 0;
|
||||||
message.slug = object.slug ?? "";
|
message.slug = object.slug ?? "";
|
||||||
message.roles = (globalThis.Object.entries(object.roles ?? {}) as [string, number][]).reduce(
|
message.roles = Object.entries(object.roles ?? {}).reduce<{ [key: string]: number }>((acc, [key, value]) => {
|
||||||
(acc: { [key: number]: number }, [key, value]: [string, number]) => {
|
if (value !== undefined) {
|
||||||
if (value !== undefined) {
|
acc[key] = globalThis.Number(value);
|
||||||
acc[globalThis.Number(key)] = globalThis.Number(value);
|
}
|
||||||
}
|
return acc;
|
||||||
return acc;
|
}, {});
|
||||||
},
|
|
||||||
{},
|
|
||||||
);
|
|
||||||
message.fixed_camouflage = object.fixed_camouflage ?? false;
|
message.fixed_camouflage = object.fixed_camouflage ?? false;
|
||||||
message.camouflages = object.camouflages?.map((e) => e) || [];
|
message.camouflages = object.camouflages?.map((e) => e) || [];
|
||||||
message.ancestors = object.ancestors?.map((e) => e) || [];
|
message.ancestors = object.ancestors?.map((e) => e) || [];
|
||||||
@@ -1326,18 +1289,21 @@ export const TankDefinition: MessageFns<TankDefinition> = {
|
|||||||
message.equalizer = (object.equalizer !== undefined && object.equalizer !== null)
|
message.equalizer = (object.equalizer !== undefined && object.equalizer !== null)
|
||||||
? Equalizer.fromPartial(object.equalizer)
|
? Equalizer.fromPartial(object.equalizer)
|
||||||
: undefined;
|
: undefined;
|
||||||
|
message.name_full = (object.name_full !== undefined && object.name_full !== null)
|
||||||
|
? I18nString.fromPartial(object.name_full)
|
||||||
|
: undefined;
|
||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
function createBaseTankDefinition_RolesEntry(): TankDefinition_RolesEntry {
|
function createBaseTankDefinition_RolesEntry(): TankDefinition_RolesEntry {
|
||||||
return { key: 0, value: 0 };
|
return { key: "", value: 0 };
|
||||||
}
|
}
|
||||||
|
|
||||||
export const TankDefinition_RolesEntry: MessageFns<TankDefinition_RolesEntry> = {
|
export const TankDefinition_RolesEntry: MessageFns<TankDefinition_RolesEntry> = {
|
||||||
encode(message: TankDefinition_RolesEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
encode(message: TankDefinition_RolesEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
||||||
if (message.key !== 0) {
|
if (message.key !== "") {
|
||||||
writer.uint32(8).uint32(message.key);
|
writer.uint32(10).string(message.key);
|
||||||
}
|
}
|
||||||
if (message.value !== 0) {
|
if (message.value !== 0) {
|
||||||
writer.uint32(16).uint32(message.value);
|
writer.uint32(16).uint32(message.value);
|
||||||
@@ -1353,11 +1319,11 @@ export const TankDefinition_RolesEntry: MessageFns<TankDefinition_RolesEntry> =
|
|||||||
const tag = reader.uint32();
|
const tag = reader.uint32();
|
||||||
switch (tag >>> 3) {
|
switch (tag >>> 3) {
|
||||||
case 1: {
|
case 1: {
|
||||||
if (tag !== 8) {
|
if (tag !== 10) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
message.key = reader.uint32();
|
message.key = reader.string();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
case 2: {
|
case 2: {
|
||||||
@@ -1379,15 +1345,15 @@ export const TankDefinition_RolesEntry: MessageFns<TankDefinition_RolesEntry> =
|
|||||||
|
|
||||||
fromJSON(object: any): TankDefinition_RolesEntry {
|
fromJSON(object: any): TankDefinition_RolesEntry {
|
||||||
return {
|
return {
|
||||||
key: isSet(object.key) ? globalThis.Number(object.key) : 0,
|
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
||||||
value: isSet(object.value) ? globalThis.Number(object.value) : 0,
|
value: isSet(object.value) ? globalThis.Number(object.value) : 0,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
toJSON(message: TankDefinition_RolesEntry): unknown {
|
toJSON(message: TankDefinition_RolesEntry): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
if (message.key !== 0) {
|
if (message.key !== "") {
|
||||||
obj.key = Math.round(message.key);
|
obj.key = message.key;
|
||||||
}
|
}
|
||||||
if (message.value !== 0) {
|
if (message.value !== 0) {
|
||||||
obj.value = Math.round(message.value);
|
obj.value = Math.round(message.value);
|
||||||
@@ -1400,7 +1366,7 @@ export const TankDefinition_RolesEntry: MessageFns<TankDefinition_RolesEntry> =
|
|||||||
},
|
},
|
||||||
fromPartial<I extends Exact<DeepPartial<TankDefinition_RolesEntry>, I>>(object: I): TankDefinition_RolesEntry {
|
fromPartial<I extends Exact<DeepPartial<TankDefinition_RolesEntry>, I>>(object: I): TankDefinition_RolesEntry {
|
||||||
const message = createBaseTankDefinition_RolesEntry();
|
const message = createBaseTankDefinition_RolesEntry();
|
||||||
message.key = object.key ?? 0;
|
message.key = object.key ?? "";
|
||||||
message.value = object.value ?? 0;
|
message.value = object.value ?? 0;
|
||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
@@ -1490,11 +1456,7 @@ export const Equalizer: MessageFns<Equalizer> = {
|
|||||||
return {
|
return {
|
||||||
health: isSet(object.health) ? globalThis.Number(object.health) : 0,
|
health: isSet(object.health) ? globalThis.Number(object.health) : 0,
|
||||||
penetration: isSet(object.penetration) ? globalThis.Number(object.penetration) : 0,
|
penetration: isSet(object.penetration) ? globalThis.Number(object.penetration) : 0,
|
||||||
module_health: isSet(object.moduleHealth)
|
module_health: isSet(object.module_health) ? globalThis.Number(object.module_health) : 0,
|
||||||
? globalThis.Number(object.moduleHealth)
|
|
||||||
: isSet(object.module_health)
|
|
||||||
? globalThis.Number(object.module_health)
|
|
||||||
: 0,
|
|
||||||
damage: isSet(object.damage) ? globalThis.Number(object.damage) : 0,
|
damage: isSet(object.damage) ? globalThis.Number(object.damage) : 0,
|
||||||
armor: isSet(object.armor) ? globalThis.Number(object.armor) : 0,
|
armor: isSet(object.armor) ? globalThis.Number(object.armor) : 0,
|
||||||
};
|
};
|
||||||
@@ -1509,7 +1471,7 @@ export const Equalizer: MessageFns<Equalizer> = {
|
|||||||
obj.penetration = message.penetration;
|
obj.penetration = message.penetration;
|
||||||
}
|
}
|
||||||
if (message.module_health !== 0) {
|
if (message.module_health !== 0) {
|
||||||
obj.moduleHealth = message.module_health;
|
obj.module_health = message.module_health;
|
||||||
}
|
}
|
||||||
if (message.damage !== 0) {
|
if (message.damage !== 0) {
|
||||||
obj.damage = message.damage;
|
obj.damage = message.damage;
|
||||||
@@ -1590,8 +1552,6 @@ export const ResearchCost: MessageFns<ResearchCost> = {
|
|||||||
return {
|
return {
|
||||||
research_cost_type: isSet(object.xp)
|
research_cost_type: isSet(object.xp)
|
||||||
? { $case: "xp", value: globalThis.Number(object.xp) }
|
? { $case: "xp", value: globalThis.Number(object.xp) }
|
||||||
: isSet(object.seasonalTokens)
|
|
||||||
? { $case: "seasonal_tokens", value: ResearchCostSeasonalTokens.fromJSON(object.seasonalTokens) }
|
|
||||||
: isSet(object.seasonal_tokens)
|
: isSet(object.seasonal_tokens)
|
||||||
? { $case: "seasonal_tokens", value: ResearchCostSeasonalTokens.fromJSON(object.seasonal_tokens) }
|
? { $case: "seasonal_tokens", value: ResearchCostSeasonalTokens.fromJSON(object.seasonal_tokens) }
|
||||||
: undefined,
|
: undefined,
|
||||||
@@ -1603,7 +1563,7 @@ export const ResearchCost: MessageFns<ResearchCost> = {
|
|||||||
if (message.research_cost_type?.$case === "xp") {
|
if (message.research_cost_type?.$case === "xp") {
|
||||||
obj.xp = Math.round(message.research_cost_type.value);
|
obj.xp = Math.round(message.research_cost_type.value);
|
||||||
} else if (message.research_cost_type?.$case === "seasonal_tokens") {
|
} else if (message.research_cost_type?.$case === "seasonal_tokens") {
|
||||||
obj.seasonalTokens = ResearchCostSeasonalTokens.toJSON(message.research_cost_type.value);
|
obj.seasonal_tokens = ResearchCostSeasonalTokens.toJSON(message.research_cost_type.value);
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
@@ -1800,6 +1760,7 @@ function createBaseTrackDefinition(): TrackDefinition {
|
|||||||
resistance_medium: 0,
|
resistance_medium: 0,
|
||||||
resistance_soft: 0,
|
resistance_soft: 0,
|
||||||
unlocks: [],
|
unlocks: [],
|
||||||
|
repair_time: 0,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1841,6 +1802,9 @@ export const TrackDefinition: MessageFns<TrackDefinition> = {
|
|||||||
for (const v of message.unlocks) {
|
for (const v of message.unlocks) {
|
||||||
Unlock.encode(v!, writer.uint32(98).fork()).join();
|
Unlock.encode(v!, writer.uint32(98).fork()).join();
|
||||||
}
|
}
|
||||||
|
if (message.repair_time !== 0) {
|
||||||
|
writer.uint32(109).float(message.repair_time);
|
||||||
|
}
|
||||||
return writer;
|
return writer;
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -1947,6 +1911,14 @@ export const TrackDefinition: MessageFns<TrackDefinition> = {
|
|||||||
message.unlocks.push(Unlock.decode(reader, reader.uint32()));
|
message.unlocks.push(Unlock.decode(reader, reader.uint32()));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
case 13: {
|
||||||
|
if (tag !== 109) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
message.repair_time = reader.float();
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ((tag & 7) === 4 || tag === 0) {
|
if ((tag & 7) === 4 || tag === 0) {
|
||||||
break;
|
break;
|
||||||
@@ -1962,44 +1934,15 @@ export const TrackDefinition: MessageFns<TrackDefinition> = {
|
|||||||
tier: isSet(object.tier) ? globalThis.Number(object.tier) : 0,
|
tier: isSet(object.tier) ? globalThis.Number(object.tier) : 0,
|
||||||
name: isSet(object.name) ? I18nString.fromJSON(object.name) : undefined,
|
name: isSet(object.name) ? I18nString.fromJSON(object.name) : undefined,
|
||||||
weight: isSet(object.weight) ? globalThis.Number(object.weight) : 0,
|
weight: isSet(object.weight) ? globalThis.Number(object.weight) : 0,
|
||||||
traverse_speed: isSet(object.traverseSpeed)
|
traverse_speed: isSet(object.traverse_speed) ? globalThis.Number(object.traverse_speed) : 0,
|
||||||
? globalThis.Number(object.traverseSpeed)
|
research_cost: isSet(object.research_cost) ? ResearchCost.fromJSON(object.research_cost) : undefined,
|
||||||
: isSet(object.traverse_speed)
|
dispersion_move: isSet(object.dispersion_move) ? globalThis.Number(object.dispersion_move) : 0,
|
||||||
? globalThis.Number(object.traverse_speed)
|
dispersion_traverse: isSet(object.dispersion_traverse) ? globalThis.Number(object.dispersion_traverse) : 0,
|
||||||
: 0,
|
resistance_hard: isSet(object.resistance_hard) ? globalThis.Number(object.resistance_hard) : 0,
|
||||||
research_cost: isSet(object.researchCost)
|
resistance_medium: isSet(object.resistance_medium) ? globalThis.Number(object.resistance_medium) : 0,
|
||||||
? ResearchCost.fromJSON(object.researchCost)
|
resistance_soft: isSet(object.resistance_soft) ? globalThis.Number(object.resistance_soft) : 0,
|
||||||
: isSet(object.research_cost)
|
unlocks: globalThis.Array.isArray(object?.unlocks) ? object.unlocks.map((e: any) => Unlock.fromJSON(e)) : [],
|
||||||
? ResearchCost.fromJSON(object.research_cost)
|
repair_time: isSet(object.repair_time) ? globalThis.Number(object.repair_time) : 0,
|
||||||
: undefined,
|
|
||||||
dispersion_move: isSet(object.dispersionMove)
|
|
||||||
? globalThis.Number(object.dispersionMove)
|
|
||||||
: isSet(object.dispersion_move)
|
|
||||||
? globalThis.Number(object.dispersion_move)
|
|
||||||
: 0,
|
|
||||||
dispersion_traverse: isSet(object.dispersionTraverse)
|
|
||||||
? globalThis.Number(object.dispersionTraverse)
|
|
||||||
: isSet(object.dispersion_traverse)
|
|
||||||
? globalThis.Number(object.dispersion_traverse)
|
|
||||||
: 0,
|
|
||||||
resistance_hard: isSet(object.resistanceHard)
|
|
||||||
? globalThis.Number(object.resistanceHard)
|
|
||||||
: isSet(object.resistance_hard)
|
|
||||||
? globalThis.Number(object.resistance_hard)
|
|
||||||
: 0,
|
|
||||||
resistance_medium: isSet(object.resistanceMedium)
|
|
||||||
? globalThis.Number(object.resistanceMedium)
|
|
||||||
: isSet(object.resistance_medium)
|
|
||||||
? globalThis.Number(object.resistance_medium)
|
|
||||||
: 0,
|
|
||||||
resistance_soft: isSet(object.resistanceSoft)
|
|
||||||
? globalThis.Number(object.resistanceSoft)
|
|
||||||
: isSet(object.resistance_soft)
|
|
||||||
? globalThis.Number(object.resistance_soft)
|
|
||||||
: 0,
|
|
||||||
unlocks: globalThis.Array.isArray(object?.unlocks)
|
|
||||||
? object.unlocks.map((e: any) => Unlock.fromJSON(e))
|
|
||||||
: [],
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -2018,29 +1961,32 @@ export const TrackDefinition: MessageFns<TrackDefinition> = {
|
|||||||
obj.weight = Math.round(message.weight);
|
obj.weight = Math.round(message.weight);
|
||||||
}
|
}
|
||||||
if (message.traverse_speed !== 0) {
|
if (message.traverse_speed !== 0) {
|
||||||
obj.traverseSpeed = message.traverse_speed;
|
obj.traverse_speed = message.traverse_speed;
|
||||||
}
|
}
|
||||||
if (message.research_cost !== undefined) {
|
if (message.research_cost !== undefined) {
|
||||||
obj.researchCost = ResearchCost.toJSON(message.research_cost);
|
obj.research_cost = ResearchCost.toJSON(message.research_cost);
|
||||||
}
|
}
|
||||||
if (message.dispersion_move !== 0) {
|
if (message.dispersion_move !== 0) {
|
||||||
obj.dispersionMove = message.dispersion_move;
|
obj.dispersion_move = message.dispersion_move;
|
||||||
}
|
}
|
||||||
if (message.dispersion_traverse !== 0) {
|
if (message.dispersion_traverse !== 0) {
|
||||||
obj.dispersionTraverse = message.dispersion_traverse;
|
obj.dispersion_traverse = message.dispersion_traverse;
|
||||||
}
|
}
|
||||||
if (message.resistance_hard !== 0) {
|
if (message.resistance_hard !== 0) {
|
||||||
obj.resistanceHard = message.resistance_hard;
|
obj.resistance_hard = message.resistance_hard;
|
||||||
}
|
}
|
||||||
if (message.resistance_medium !== 0) {
|
if (message.resistance_medium !== 0) {
|
||||||
obj.resistanceMedium = message.resistance_medium;
|
obj.resistance_medium = message.resistance_medium;
|
||||||
}
|
}
|
||||||
if (message.resistance_soft !== 0) {
|
if (message.resistance_soft !== 0) {
|
||||||
obj.resistanceSoft = message.resistance_soft;
|
obj.resistance_soft = message.resistance_soft;
|
||||||
}
|
}
|
||||||
if (message.unlocks?.length) {
|
if (message.unlocks?.length) {
|
||||||
obj.unlocks = message.unlocks.map((e) => Unlock.toJSON(e));
|
obj.unlocks = message.unlocks.map((e) => Unlock.toJSON(e));
|
||||||
}
|
}
|
||||||
|
if (message.repair_time !== 0) {
|
||||||
|
obj.repair_time = message.repair_time;
|
||||||
|
}
|
||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -2065,6 +2011,7 @@ export const TrackDefinition: MessageFns<TrackDefinition> = {
|
|||||||
message.resistance_medium = object.resistance_medium ?? 0;
|
message.resistance_medium = object.resistance_medium ?? 0;
|
||||||
message.resistance_soft = object.resistance_soft ?? 0;
|
message.resistance_soft = object.resistance_soft ?? 0;
|
||||||
message.unlocks = object.unlocks?.map((e) => Unlock.fromPartial(e)) || [];
|
message.unlocks = object.unlocks?.map((e) => Unlock.fromPartial(e)) || [];
|
||||||
|
message.repair_time = object.repair_time ?? 0;
|
||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -2195,17 +2142,9 @@ export const EngineDefinition: MessageFns<EngineDefinition> = {
|
|||||||
return {
|
return {
|
||||||
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
||||||
name: isSet(object.name) ? I18nString.fromJSON(object.name) : undefined,
|
name: isSet(object.name) ? I18nString.fromJSON(object.name) : undefined,
|
||||||
research_cost: isSet(object.researchCost)
|
research_cost: isSet(object.research_cost) ? ResearchCost.fromJSON(object.research_cost) : undefined,
|
||||||
? ResearchCost.fromJSON(object.researchCost)
|
|
||||||
: isSet(object.research_cost)
|
|
||||||
? ResearchCost.fromJSON(object.research_cost)
|
|
||||||
: undefined,
|
|
||||||
tier: isSet(object.tier) ? globalThis.Number(object.tier) : 0,
|
tier: isSet(object.tier) ? globalThis.Number(object.tier) : 0,
|
||||||
fire_chance: isSet(object.fireChance)
|
fire_chance: isSet(object.fire_chance) ? globalThis.Number(object.fire_chance) : 0,
|
||||||
? globalThis.Number(object.fireChance)
|
|
||||||
: isSet(object.fire_chance)
|
|
||||||
? globalThis.Number(object.fire_chance)
|
|
||||||
: 0,
|
|
||||||
power: isSet(object.power) ? globalThis.Number(object.power) : 0,
|
power: isSet(object.power) ? globalThis.Number(object.power) : 0,
|
||||||
weight: isSet(object.weight) ? globalThis.Number(object.weight) : 0,
|
weight: isSet(object.weight) ? globalThis.Number(object.weight) : 0,
|
||||||
unlocks: globalThis.Array.isArray(object?.unlocks) ? object.unlocks.map((e: any) => Unlock.fromJSON(e)) : [],
|
unlocks: globalThis.Array.isArray(object?.unlocks) ? object.unlocks.map((e: any) => Unlock.fromJSON(e)) : [],
|
||||||
@@ -2221,13 +2160,13 @@ export const EngineDefinition: MessageFns<EngineDefinition> = {
|
|||||||
obj.name = I18nString.toJSON(message.name);
|
obj.name = I18nString.toJSON(message.name);
|
||||||
}
|
}
|
||||||
if (message.research_cost !== undefined) {
|
if (message.research_cost !== undefined) {
|
||||||
obj.researchCost = ResearchCost.toJSON(message.research_cost);
|
obj.research_cost = ResearchCost.toJSON(message.research_cost);
|
||||||
}
|
}
|
||||||
if (message.tier !== 0) {
|
if (message.tier !== 0) {
|
||||||
obj.tier = Math.round(message.tier);
|
obj.tier = Math.round(message.tier);
|
||||||
}
|
}
|
||||||
if (message.fire_chance !== 0) {
|
if (message.fire_chance !== 0) {
|
||||||
obj.fireChance = message.fire_chance;
|
obj.fire_chance = message.fire_chance;
|
||||||
}
|
}
|
||||||
if (message.power !== 0) {
|
if (message.power !== 0) {
|
||||||
obj.power = Math.round(message.power);
|
obj.power = Math.round(message.power);
|
||||||
@@ -2412,27 +2351,13 @@ export const TurretDefinition: MessageFns<TurretDefinition> = {
|
|||||||
return {
|
return {
|
||||||
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
||||||
health: isSet(object.health) ? globalThis.Number(object.health) : 0,
|
health: isSet(object.health) ? globalThis.Number(object.health) : 0,
|
||||||
view_range: isSet(object.viewRange)
|
view_range: isSet(object.view_range) ? globalThis.Number(object.view_range) : 0,
|
||||||
? globalThis.Number(object.viewRange)
|
traverse_speed: isSet(object.traverse_speed) ? globalThis.Number(object.traverse_speed) : 0,
|
||||||
: isSet(object.view_range)
|
research_cost: isSet(object.research_cost) ? ResearchCost.fromJSON(object.research_cost) : undefined,
|
||||||
? globalThis.Number(object.view_range)
|
|
||||||
: 0,
|
|
||||||
traverse_speed: isSet(object.traverseSpeed)
|
|
||||||
? globalThis.Number(object.traverseSpeed)
|
|
||||||
: isSet(object.traverse_speed)
|
|
||||||
? globalThis.Number(object.traverse_speed)
|
|
||||||
: 0,
|
|
||||||
research_cost: isSet(object.researchCost)
|
|
||||||
? ResearchCost.fromJSON(object.researchCost)
|
|
||||||
: isSet(object.research_cost)
|
|
||||||
? ResearchCost.fromJSON(object.research_cost)
|
|
||||||
: undefined,
|
|
||||||
name: isSet(object.name) ? I18nString.fromJSON(object.name) : undefined,
|
name: isSet(object.name) ? I18nString.fromJSON(object.name) : undefined,
|
||||||
tier: isSet(object.tier) ? globalThis.Number(object.tier) : 0,
|
tier: isSet(object.tier) ? globalThis.Number(object.tier) : 0,
|
||||||
weight: isSet(object.weight) ? globalThis.Number(object.weight) : 0,
|
weight: isSet(object.weight) ? globalThis.Number(object.weight) : 0,
|
||||||
guns: globalThis.Array.isArray(object?.guns)
|
guns: globalThis.Array.isArray(object?.guns) ? object.guns.map((e: any) => GunDefinition.fromJSON(e)) : [],
|
||||||
? object.guns.map((e: any) => GunDefinition.fromJSON(e))
|
|
||||||
: [],
|
|
||||||
unlocks: globalThis.Array.isArray(object?.unlocks) ? object.unlocks.map((e: any) => Unlock.fromJSON(e)) : [],
|
unlocks: globalThis.Array.isArray(object?.unlocks) ? object.unlocks.map((e: any) => Unlock.fromJSON(e)) : [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -2446,13 +2371,13 @@ export const TurretDefinition: MessageFns<TurretDefinition> = {
|
|||||||
obj.health = Math.round(message.health);
|
obj.health = Math.round(message.health);
|
||||||
}
|
}
|
||||||
if (message.view_range !== 0) {
|
if (message.view_range !== 0) {
|
||||||
obj.viewRange = Math.round(message.view_range);
|
obj.view_range = Math.round(message.view_range);
|
||||||
}
|
}
|
||||||
if (message.traverse_speed !== 0) {
|
if (message.traverse_speed !== 0) {
|
||||||
obj.traverseSpeed = message.traverse_speed;
|
obj.traverse_speed = message.traverse_speed;
|
||||||
}
|
}
|
||||||
if (message.research_cost !== undefined) {
|
if (message.research_cost !== undefined) {
|
||||||
obj.researchCost = ResearchCost.toJSON(message.research_cost);
|
obj.research_cost = ResearchCost.toJSON(message.research_cost);
|
||||||
}
|
}
|
||||||
if (message.name !== undefined) {
|
if (message.name !== undefined) {
|
||||||
obj.name = I18nString.toJSON(message.name);
|
obj.name = I18nString.toJSON(message.name);
|
||||||
@@ -2768,75 +2693,29 @@ export const GunDefinition: MessageFns<GunDefinition> = {
|
|||||||
return {
|
return {
|
||||||
gun_type: isSet(object.regular)
|
gun_type: isSet(object.regular)
|
||||||
? { $case: "regular", value: GunDefinitionRegular.fromJSON(object.regular) }
|
? { $case: "regular", value: GunDefinitionRegular.fromJSON(object.regular) }
|
||||||
: isSet(object.autoLoader)
|
|
||||||
? { $case: "auto_loader", value: GunDefinitionAutoLoader.fromJSON(object.autoLoader) }
|
|
||||||
: isSet(object.auto_loader)
|
: isSet(object.auto_loader)
|
||||||
? { $case: "auto_loader", value: GunDefinitionAutoLoader.fromJSON(object.auto_loader) }
|
? { $case: "auto_loader", value: GunDefinitionAutoLoader.fromJSON(object.auto_loader) }
|
||||||
: isSet(object.autoReloader)
|
|
||||||
? { $case: "auto_reloader", value: GunDefinitionAutoReloader.fromJSON(object.autoReloader) }
|
|
||||||
: isSet(object.auto_reloader)
|
: isSet(object.auto_reloader)
|
||||||
? { $case: "auto_reloader", value: GunDefinitionAutoReloader.fromJSON(object.auto_reloader) }
|
? { $case: "auto_reloader", value: GunDefinitionAutoReloader.fromJSON(object.auto_reloader) }
|
||||||
: undefined,
|
: undefined,
|
||||||
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
||||||
rotation_speed: isSet(object.rotationSpeed)
|
rotation_speed: isSet(object.rotation_speed) ? globalThis.Number(object.rotation_speed) : 0,
|
||||||
? globalThis.Number(object.rotationSpeed)
|
research_cost: isSet(object.research_cost) ? ResearchCost.fromJSON(object.research_cost) : undefined,
|
||||||
: isSet(object.rotation_speed)
|
|
||||||
? globalThis.Number(object.rotation_speed)
|
|
||||||
: 0,
|
|
||||||
research_cost: isSet(object.researchCost)
|
|
||||||
? ResearchCost.fromJSON(object.researchCost)
|
|
||||||
: isSet(object.research_cost)
|
|
||||||
? ResearchCost.fromJSON(object.research_cost)
|
|
||||||
: undefined,
|
|
||||||
weight: isSet(object.weight) ? globalThis.Number(object.weight) : 0,
|
weight: isSet(object.weight) ? globalThis.Number(object.weight) : 0,
|
||||||
name: isSet(object.name) ? I18nString.fromJSON(object.name) : undefined,
|
name: isSet(object.name) ? I18nString.fromJSON(object.name) : undefined,
|
||||||
tier: isSet(object.tier) ? globalThis.Number(object.tier) : 0,
|
tier: isSet(object.tier) ? globalThis.Number(object.tier) : 0,
|
||||||
shells: globalThis.Array.isArray(object?.shells)
|
shells: globalThis.Array.isArray(object?.shells)
|
||||||
? object.shells.map((e: any) => ShellDefinition.fromJSON(e))
|
? object.shells.map((e: any) => ShellDefinition.fromJSON(e))
|
||||||
: [],
|
: [],
|
||||||
camouflage_loss: isSet(object.camouflageLoss)
|
camouflage_loss: isSet(object.camouflage_loss) ? globalThis.Number(object.camouflage_loss) : 0,
|
||||||
? globalThis.Number(object.camouflageLoss)
|
aim_time: isSet(object.aim_time) ? globalThis.Number(object.aim_time) : 0,
|
||||||
: isSet(object.camouflage_loss)
|
dispersion_base: isSet(object.dispersion_base) ? globalThis.Number(object.dispersion_base) : 0,
|
||||||
? globalThis.Number(object.camouflage_loss)
|
dispersion_traverse: isSet(object.dispersion_traverse) ? globalThis.Number(object.dispersion_traverse) : 0,
|
||||||
: 0,
|
dispersion_shot: isSet(object.dispersion_shot) ? globalThis.Number(object.dispersion_shot) : 0,
|
||||||
aim_time: isSet(object.aimTime)
|
dispersion_damaged: isSet(object.dispersion_damaged) ? globalThis.Number(object.dispersion_damaged) : 0,
|
||||||
? globalThis.Number(object.aimTime)
|
unlocks: globalThis.Array.isArray(object?.unlocks) ? object.unlocks.map((e: any) => Unlock.fromJSON(e)) : [],
|
||||||
: isSet(object.aim_time)
|
shell_capacity: isSet(object.shell_capacity) ? globalThis.Number(object.shell_capacity) : 0,
|
||||||
? globalThis.Number(object.aim_time)
|
assault_ranges: isSet(object.assault_ranges) ? AssaultRanges.fromJSON(object.assault_ranges) : undefined,
|
||||||
: 0,
|
|
||||||
dispersion_base: isSet(object.dispersionBase)
|
|
||||||
? globalThis.Number(object.dispersionBase)
|
|
||||||
: isSet(object.dispersion_base)
|
|
||||||
? globalThis.Number(object.dispersion_base)
|
|
||||||
: 0,
|
|
||||||
dispersion_traverse: isSet(object.dispersionTraverse)
|
|
||||||
? globalThis.Number(object.dispersionTraverse)
|
|
||||||
: isSet(object.dispersion_traverse)
|
|
||||||
? globalThis.Number(object.dispersion_traverse)
|
|
||||||
: 0,
|
|
||||||
dispersion_shot: isSet(object.dispersionShot)
|
|
||||||
? globalThis.Number(object.dispersionShot)
|
|
||||||
: isSet(object.dispersion_shot)
|
|
||||||
? globalThis.Number(object.dispersion_shot)
|
|
||||||
: 0,
|
|
||||||
dispersion_damaged: isSet(object.dispersionDamaged)
|
|
||||||
? globalThis.Number(object.dispersionDamaged)
|
|
||||||
: isSet(object.dispersion_damaged)
|
|
||||||
? globalThis.Number(object.dispersion_damaged)
|
|
||||||
: 0,
|
|
||||||
unlocks: globalThis.Array.isArray(object?.unlocks)
|
|
||||||
? object.unlocks.map((e: any) => Unlock.fromJSON(e))
|
|
||||||
: [],
|
|
||||||
shell_capacity: isSet(object.shellCapacity)
|
|
||||||
? globalThis.Number(object.shellCapacity)
|
|
||||||
: isSet(object.shell_capacity)
|
|
||||||
? globalThis.Number(object.shell_capacity)
|
|
||||||
: 0,
|
|
||||||
assault_ranges: isSet(object.assaultRanges)
|
|
||||||
? AssaultRanges.fromJSON(object.assaultRanges)
|
|
||||||
: isSet(object.assault_ranges)
|
|
||||||
? AssaultRanges.fromJSON(object.assault_ranges)
|
|
||||||
: undefined,
|
|
||||||
burst: isSet(object.burst) ? Burst.fromJSON(object.burst) : undefined,
|
burst: isSet(object.burst) ? Burst.fromJSON(object.burst) : undefined,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -2846,18 +2725,18 @@ export const GunDefinition: MessageFns<GunDefinition> = {
|
|||||||
if (message.gun_type?.$case === "regular") {
|
if (message.gun_type?.$case === "regular") {
|
||||||
obj.regular = GunDefinitionRegular.toJSON(message.gun_type.value);
|
obj.regular = GunDefinitionRegular.toJSON(message.gun_type.value);
|
||||||
} else if (message.gun_type?.$case === "auto_loader") {
|
} else if (message.gun_type?.$case === "auto_loader") {
|
||||||
obj.autoLoader = GunDefinitionAutoLoader.toJSON(message.gun_type.value);
|
obj.auto_loader = GunDefinitionAutoLoader.toJSON(message.gun_type.value);
|
||||||
} else if (message.gun_type?.$case === "auto_reloader") {
|
} else if (message.gun_type?.$case === "auto_reloader") {
|
||||||
obj.autoReloader = GunDefinitionAutoReloader.toJSON(message.gun_type.value);
|
obj.auto_reloader = GunDefinitionAutoReloader.toJSON(message.gun_type.value);
|
||||||
}
|
}
|
||||||
if (message.id !== 0) {
|
if (message.id !== 0) {
|
||||||
obj.id = Math.round(message.id);
|
obj.id = Math.round(message.id);
|
||||||
}
|
}
|
||||||
if (message.rotation_speed !== 0) {
|
if (message.rotation_speed !== 0) {
|
||||||
obj.rotationSpeed = message.rotation_speed;
|
obj.rotation_speed = message.rotation_speed;
|
||||||
}
|
}
|
||||||
if (message.research_cost !== undefined) {
|
if (message.research_cost !== undefined) {
|
||||||
obj.researchCost = ResearchCost.toJSON(message.research_cost);
|
obj.research_cost = ResearchCost.toJSON(message.research_cost);
|
||||||
}
|
}
|
||||||
if (message.weight !== 0) {
|
if (message.weight !== 0) {
|
||||||
obj.weight = Math.round(message.weight);
|
obj.weight = Math.round(message.weight);
|
||||||
@@ -2872,31 +2751,31 @@ export const GunDefinition: MessageFns<GunDefinition> = {
|
|||||||
obj.shells = message.shells.map((e) => ShellDefinition.toJSON(e));
|
obj.shells = message.shells.map((e) => ShellDefinition.toJSON(e));
|
||||||
}
|
}
|
||||||
if (message.camouflage_loss !== 0) {
|
if (message.camouflage_loss !== 0) {
|
||||||
obj.camouflageLoss = message.camouflage_loss;
|
obj.camouflage_loss = message.camouflage_loss;
|
||||||
}
|
}
|
||||||
if (message.aim_time !== 0) {
|
if (message.aim_time !== 0) {
|
||||||
obj.aimTime = message.aim_time;
|
obj.aim_time = message.aim_time;
|
||||||
}
|
}
|
||||||
if (message.dispersion_base !== 0) {
|
if (message.dispersion_base !== 0) {
|
||||||
obj.dispersionBase = message.dispersion_base;
|
obj.dispersion_base = message.dispersion_base;
|
||||||
}
|
}
|
||||||
if (message.dispersion_traverse !== 0) {
|
if (message.dispersion_traverse !== 0) {
|
||||||
obj.dispersionTraverse = message.dispersion_traverse;
|
obj.dispersion_traverse = message.dispersion_traverse;
|
||||||
}
|
}
|
||||||
if (message.dispersion_shot !== 0) {
|
if (message.dispersion_shot !== 0) {
|
||||||
obj.dispersionShot = message.dispersion_shot;
|
obj.dispersion_shot = message.dispersion_shot;
|
||||||
}
|
}
|
||||||
if (message.dispersion_damaged !== 0) {
|
if (message.dispersion_damaged !== 0) {
|
||||||
obj.dispersionDamaged = message.dispersion_damaged;
|
obj.dispersion_damaged = message.dispersion_damaged;
|
||||||
}
|
}
|
||||||
if (message.unlocks?.length) {
|
if (message.unlocks?.length) {
|
||||||
obj.unlocks = message.unlocks.map((e) => Unlock.toJSON(e));
|
obj.unlocks = message.unlocks.map((e) => Unlock.toJSON(e));
|
||||||
}
|
}
|
||||||
if (message.shell_capacity !== 0) {
|
if (message.shell_capacity !== 0) {
|
||||||
obj.shellCapacity = Math.round(message.shell_capacity);
|
obj.shell_capacity = Math.round(message.shell_capacity);
|
||||||
}
|
}
|
||||||
if (message.assault_ranges !== undefined) {
|
if (message.assault_ranges !== undefined) {
|
||||||
obj.assaultRanges = AssaultRanges.toJSON(message.assault_ranges);
|
obj.assault_ranges = AssaultRanges.toJSON(message.assault_ranges);
|
||||||
}
|
}
|
||||||
if (message.burst !== undefined) {
|
if (message.burst !== undefined) {
|
||||||
obj.burst = Burst.toJSON(message.burst);
|
obj.burst = Burst.toJSON(message.burst);
|
||||||
@@ -3080,34 +2959,22 @@ export const GunDefinitionAutoLoader: MessageFns<GunDefinitionAutoLoader> = {
|
|||||||
|
|
||||||
fromJSON(object: any): GunDefinitionAutoLoader {
|
fromJSON(object: any): GunDefinitionAutoLoader {
|
||||||
return {
|
return {
|
||||||
clip_reload: isSet(object.clipReload)
|
clip_reload: isSet(object.clip_reload) ? globalThis.Number(object.clip_reload) : 0,
|
||||||
? globalThis.Number(object.clipReload)
|
intra_clip: isSet(object.intra_clip) ? globalThis.Number(object.intra_clip) : 0,
|
||||||
: isSet(object.clip_reload)
|
shell_count: isSet(object.shell_count) ? globalThis.Number(object.shell_count) : 0,
|
||||||
? globalThis.Number(object.clip_reload)
|
|
||||||
: 0,
|
|
||||||
intra_clip: isSet(object.intraClip)
|
|
||||||
? globalThis.Number(object.intraClip)
|
|
||||||
: isSet(object.intra_clip)
|
|
||||||
? globalThis.Number(object.intra_clip)
|
|
||||||
: 0,
|
|
||||||
shell_count: isSet(object.shellCount)
|
|
||||||
? globalThis.Number(object.shellCount)
|
|
||||||
: isSet(object.shell_count)
|
|
||||||
? globalThis.Number(object.shell_count)
|
|
||||||
: 0,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
toJSON(message: GunDefinitionAutoLoader): unknown {
|
toJSON(message: GunDefinitionAutoLoader): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
if (message.clip_reload !== 0) {
|
if (message.clip_reload !== 0) {
|
||||||
obj.clipReload = message.clip_reload;
|
obj.clip_reload = message.clip_reload;
|
||||||
}
|
}
|
||||||
if (message.intra_clip !== 0) {
|
if (message.intra_clip !== 0) {
|
||||||
obj.intraClip = message.intra_clip;
|
obj.intra_clip = message.intra_clip;
|
||||||
}
|
}
|
||||||
if (message.shell_count !== 0) {
|
if (message.shell_count !== 0) {
|
||||||
obj.shellCount = message.shell_count;
|
obj.shell_count = message.shell_count;
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
@@ -3270,34 +3137,24 @@ export const GunDefinitionAutoReloader: MessageFns<GunDefinitionAutoReloader> =
|
|||||||
|
|
||||||
fromJSON(object: any): GunDefinitionAutoReloader {
|
fromJSON(object: any): GunDefinitionAutoReloader {
|
||||||
return {
|
return {
|
||||||
shell_reloads: globalThis.Array.isArray(object?.shellReloads)
|
shell_reloads: globalThis.Array.isArray(object?.shell_reloads)
|
||||||
? object.shellReloads.map((e: any) => globalThis.Number(e))
|
|
||||||
: globalThis.Array.isArray(object?.shell_reloads)
|
|
||||||
? object.shell_reloads.map((e: any) => globalThis.Number(e))
|
? object.shell_reloads.map((e: any) => globalThis.Number(e))
|
||||||
: [],
|
: [],
|
||||||
intra_clip: isSet(object.intraClip)
|
intra_clip: isSet(object.intra_clip) ? globalThis.Number(object.intra_clip) : 0,
|
||||||
? globalThis.Number(object.intraClip)
|
shell_count: isSet(object.shell_count) ? globalThis.Number(object.shell_count) : 0,
|
||||||
: isSet(object.intra_clip)
|
|
||||||
? globalThis.Number(object.intra_clip)
|
|
||||||
: 0,
|
|
||||||
shell_count: isSet(object.shellCount)
|
|
||||||
? globalThis.Number(object.shellCount)
|
|
||||||
: isSet(object.shell_count)
|
|
||||||
? globalThis.Number(object.shell_count)
|
|
||||||
: 0,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
toJSON(message: GunDefinitionAutoReloader): unknown {
|
toJSON(message: GunDefinitionAutoReloader): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
if (message.shell_reloads?.length) {
|
if (message.shell_reloads?.length) {
|
||||||
obj.shellReloads = message.shell_reloads;
|
obj.shell_reloads = message.shell_reloads;
|
||||||
}
|
}
|
||||||
if (message.intra_clip !== 0) {
|
if (message.intra_clip !== 0) {
|
||||||
obj.intraClip = message.intra_clip;
|
obj.intra_clip = message.intra_clip;
|
||||||
}
|
}
|
||||||
if (message.shell_count !== 0) {
|
if (message.shell_count !== 0) {
|
||||||
obj.shellCount = message.shell_count;
|
obj.shell_count = message.shell_count;
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
@@ -3663,27 +3520,15 @@ export const ShellDefinition: MessageFns<ShellDefinition> = {
|
|||||||
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
||||||
name: isSet(object.name) ? I18nString.fromJSON(object.name) : undefined,
|
name: isSet(object.name) ? I18nString.fromJSON(object.name) : undefined,
|
||||||
velocity: isSet(object.velocity) ? globalThis.Number(object.velocity) : 0,
|
velocity: isSet(object.velocity) ? globalThis.Number(object.velocity) : 0,
|
||||||
armor_damage: isSet(object.armorDamage)
|
armor_damage: isSet(object.armor_damage) ? globalThis.Number(object.armor_damage) : 0,
|
||||||
? globalThis.Number(object.armorDamage)
|
module_damage: isSet(object.module_damage) ? globalThis.Number(object.module_damage) : 0,
|
||||||
: isSet(object.armor_damage)
|
|
||||||
? globalThis.Number(object.armor_damage)
|
|
||||||
: 0,
|
|
||||||
module_damage: isSet(object.moduleDamage)
|
|
||||||
? globalThis.Number(object.moduleDamage)
|
|
||||||
: isSet(object.module_damage)
|
|
||||||
? globalThis.Number(object.module_damage)
|
|
||||||
: 0,
|
|
||||||
caliber: isSet(object.caliber) ? globalThis.Number(object.caliber) : 0,
|
caliber: isSet(object.caliber) ? globalThis.Number(object.caliber) : 0,
|
||||||
icon: isSet(object.icon) ? globalThis.String(object.icon) : "",
|
icon: isSet(object.icon) ? globalThis.String(object.icon) : "",
|
||||||
penetration: isSet(object.penetration) ? ShellPenetration.fromJSON(object.penetration) : undefined,
|
penetration: isSet(object.penetration) ? ShellPenetration.fromJSON(object.penetration) : undefined,
|
||||||
type: isSet(object.type) ? shellTypeFromJSON(object.type) : 0,
|
type: isSet(object.type) ? shellTypeFromJSON(object.type) : 0,
|
||||||
normalization: isSet(object.normalization) ? globalThis.Number(object.normalization) : 0,
|
normalization: isSet(object.normalization) ? globalThis.Number(object.normalization) : 0,
|
||||||
ricochet: isSet(object.ricochet) ? globalThis.Number(object.ricochet) : 0,
|
ricochet: isSet(object.ricochet) ? globalThis.Number(object.ricochet) : 0,
|
||||||
explosion_radius: isSet(object.explosionRadius)
|
explosion_radius: isSet(object.explosion_radius) ? globalThis.Number(object.explosion_radius) : 0,
|
||||||
? globalThis.Number(object.explosionRadius)
|
|
||||||
: isSet(object.explosion_radius)
|
|
||||||
? globalThis.Number(object.explosion_radius)
|
|
||||||
: 0,
|
|
||||||
range: isSet(object.range) ? globalThis.Number(object.range) : 0,
|
range: isSet(object.range) ? globalThis.Number(object.range) : 0,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -3700,10 +3545,10 @@ export const ShellDefinition: MessageFns<ShellDefinition> = {
|
|||||||
obj.velocity = Math.round(message.velocity);
|
obj.velocity = Math.round(message.velocity);
|
||||||
}
|
}
|
||||||
if (message.armor_damage !== 0) {
|
if (message.armor_damage !== 0) {
|
||||||
obj.armorDamage = Math.round(message.armor_damage);
|
obj.armor_damage = Math.round(message.armor_damage);
|
||||||
}
|
}
|
||||||
if (message.module_damage !== 0) {
|
if (message.module_damage !== 0) {
|
||||||
obj.moduleDamage = Math.round(message.module_damage);
|
obj.module_damage = Math.round(message.module_damage);
|
||||||
}
|
}
|
||||||
if (message.caliber !== 0) {
|
if (message.caliber !== 0) {
|
||||||
obj.caliber = message.caliber;
|
obj.caliber = message.caliber;
|
||||||
@@ -3724,7 +3569,7 @@ export const ShellDefinition: MessageFns<ShellDefinition> = {
|
|||||||
obj.ricochet = message.ricochet;
|
obj.ricochet = message.ricochet;
|
||||||
}
|
}
|
||||||
if (message.explosion_radius !== undefined && message.explosion_radius !== 0) {
|
if (message.explosion_radius !== undefined && message.explosion_radius !== 0) {
|
||||||
obj.explosionRadius = message.explosion_radius;
|
obj.explosion_radius = message.explosion_radius;
|
||||||
}
|
}
|
||||||
if (message.range !== 0) {
|
if (message.range !== 0) {
|
||||||
obj.range = Math.round(message.range);
|
obj.range = Math.round(message.range);
|
||||||
|
|||||||
@@ -1,51 +0,0 @@
|
|||||||
import { times } from 'lodash-es';
|
|
||||||
import { ReadStream, WriteStream } from './buffer';
|
|
||||||
|
|
||||||
export class DidsReadStream extends ReadStream {
|
|
||||||
dids() {
|
|
||||||
this.magic();
|
|
||||||
this.header();
|
|
||||||
return this.body();
|
|
||||||
}
|
|
||||||
|
|
||||||
magic() {
|
|
||||||
const magic = this.utf8(4);
|
|
||||||
if (magic !== 'DIDS') {
|
|
||||||
throw new Error(`Invalid DIDS magic number: "${magic}"`);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
header() {
|
|
||||||
return {
|
|
||||||
version: this.uint16(),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
body() {
|
|
||||||
const count = this.uint32();
|
|
||||||
return times(count, () => this.uint32());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class DidsWriteStream extends WriteStream {
|
|
||||||
dids(ids: number[]) {
|
|
||||||
this.magic();
|
|
||||||
this.header();
|
|
||||||
this.body(ids);
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
magic() {
|
|
||||||
this.utf8('DIDS');
|
|
||||||
}
|
|
||||||
|
|
||||||
header() {
|
|
||||||
this.uint16(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
body(ids: number[]) {
|
|
||||||
this.uint32(ids.length);
|
|
||||||
ids.forEach((id) => this.uint32(id));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +1,9 @@
|
|||||||
export * from './buffer';
|
export * from "./buffer";
|
||||||
export * from './bufferToBigInt';
|
export * from "./bufferToBigInt";
|
||||||
export * from './dds';
|
export * from "./dds";
|
||||||
export * from './dids';
|
export * from "./pvr";
|
||||||
export * from './pvr';
|
export * from "./rts";
|
||||||
export * from './rts';
|
export * from "./sc2";
|
||||||
export * from './sc2';
|
export * from "./scg";
|
||||||
export * from './scg';
|
export * from "./scpg";
|
||||||
export * from './scpg';
|
export * from "./windows";
|
||||||
export * from './windows';
|
|
||||||
|
|
||||||
@@ -90,6 +90,28 @@ export interface Hierarchy {
|
|||||||
name: string;
|
name: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function parseHierarchies<Parent>(
|
||||||
|
hierarchies: Hierarchy[],
|
||||||
|
parent: Parent,
|
||||||
|
parseHierarchy: (
|
||||||
|
hierarchy: Hierarchy,
|
||||||
|
components: Component[],
|
||||||
|
parent: Parent,
|
||||||
|
) => Parent | undefined,
|
||||||
|
) {
|
||||||
|
for (const hierarchy of hierarchies) {
|
||||||
|
const components = Array.from(
|
||||||
|
{ length: hierarchy.components.count },
|
||||||
|
(_, index) => hierarchy.components[index.toString().padStart(4, "0")],
|
||||||
|
);
|
||||||
|
const child = parseHierarchy(hierarchy, components, parent);
|
||||||
|
|
||||||
|
if (child !== undefined && hierarchy["#hierarchy"]) {
|
||||||
|
parseHierarchies(hierarchy["#hierarchy"], child, parseHierarchy);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 0001, 0002, 0003...: Component
|
// 0001, 0002, 0003...: Component
|
||||||
type Components = {
|
type Components = {
|
||||||
count: number;
|
count: number;
|
||||||
|
|||||||
@@ -3,5 +3,7 @@ export type CamouflagesYaml = Record<
|
|||||||
{
|
{
|
||||||
userString?: string;
|
userString?: string;
|
||||||
shortUserString?: string;
|
shortUserString?: string;
|
||||||
|
preset?: string;
|
||||||
|
customEntities?: Record<string, { item: string }>;
|
||||||
}
|
}
|
||||||
>;
|
>;
|
||||||
@@ -20,11 +20,13 @@ export interface GunDefinitionsList {
|
|||||||
burst?: { count: number; rate: number };
|
burst?: { count: number; rate: number };
|
||||||
clip?: { count: number; rate: number };
|
clip?: { count: number; rate: number };
|
||||||
shots: {
|
shots: {
|
||||||
[key: string]: {
|
[key: string]:
|
||||||
speed: number;
|
| ""
|
||||||
piercingPower: string;
|
| {
|
||||||
maxDistance: number;
|
speed: number;
|
||||||
};
|
piercingPower: string;
|
||||||
|
maxDistance: number;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ export type ShellDefinitionsList = Record<
|
|||||||
normalizationAngle?: number;
|
normalizationAngle?: number;
|
||||||
ricochetAngle?: number;
|
ricochetAngle?: number;
|
||||||
explosionRadius?: number;
|
explosionRadius?: number;
|
||||||
|
speed: number;
|
||||||
|
maxDistance?: number;
|
||||||
|
piercingPower: string;
|
||||||
}
|
}
|
||||||
> & {
|
> & {
|
||||||
icons: Record<string, string>;
|
icons: Record<string, string>;
|
||||||
|
|||||||
@@ -34,6 +34,8 @@ export interface VehicleDefinitions {
|
|||||||
};
|
};
|
||||||
level: number;
|
level: number;
|
||||||
hullPosition: string;
|
hullPosition: string;
|
||||||
|
hysteresisHealth: number;
|
||||||
|
healthRegenPerSec: number;
|
||||||
armor: {
|
armor: {
|
||||||
leftTrack:
|
leftTrack:
|
||||||
| number
|
| number
|
||||||
|
|||||||
@@ -1,10 +1,4 @@
|
|||||||
{
|
{
|
||||||
"test": {
|
|
||||||
"default": "test",
|
|
||||||
"long": "This is a long test string. You MUST NEVER see this in the UI. My favorite fruit is {fruit} because it has the color of {color}. I like it so much that I will say its name 3 times! {fruit}! {fruit}! {fruit}! Once again, it's {color}, not {not_color}.",
|
|
||||||
"fox": "The quick brown fox jumps over the lazy dog."
|
|
||||||
},
|
|
||||||
|
|
||||||
"common": {
|
"common": {
|
||||||
"name": "BlitzKit",
|
"name": "BlitzKit",
|
||||||
|
|
||||||
@@ -215,6 +209,7 @@
|
|||||||
"title": "Settings",
|
"title": "Settings",
|
||||||
"description": "Change BlitzKit settings",
|
"description": "Change BlitzKit settings",
|
||||||
"dev_mode": "Development mode",
|
"dev_mode": "Development mode",
|
||||||
|
"auto_load_models": "Auto-load models",
|
||||||
"language": "Language"
|
"language": "Language"
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -337,6 +332,13 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"tools": {
|
"tools": {
|
||||||
|
"credits": {
|
||||||
|
"name": "Credits",
|
||||||
|
"button": "To the docs",
|
||||||
|
"description": "Contributors of BlitzKit",
|
||||||
|
"seo_description": "BlitzKit is the work of many"
|
||||||
|
},
|
||||||
|
|
||||||
"playlist": {
|
"playlist": {
|
||||||
"reset": "Reset",
|
"reset": "Reset",
|
||||||
"shuffle": "Shuffle",
|
"shuffle": "Shuffle",
|
||||||
@@ -458,6 +460,8 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"sandbox": {
|
"sandbox": {
|
||||||
|
"load_model": "Load model",
|
||||||
|
|
||||||
"poses": {
|
"poses": {
|
||||||
"hull_down": "Hull down",
|
"hull_down": "Hull down",
|
||||||
"face_hug": "Face hug",
|
"face_hug": "Face hug",
|
||||||
@@ -573,8 +577,7 @@
|
|||||||
|
|
||||||
"equalizer": {
|
"equalizer": {
|
||||||
"title": "Equalizer",
|
"title": "Equalizer",
|
||||||
"equalize": "Equalize",
|
"equalize": "Equalize"
|
||||||
"beta": "Beta"
|
|
||||||
},
|
},
|
||||||
"modules": {
|
"modules": {
|
||||||
"title": "Modules",
|
"title": "Modules",
|
||||||
@@ -631,6 +634,8 @@
|
|||||||
"shellRicochet": "Ricochet",
|
"shellRicochet": "Ricochet",
|
||||||
"dpm": "DPM",
|
"dpm": "DPM",
|
||||||
"dpmEffective": "Effective at 60s",
|
"dpmEffective": "Effective at 60s",
|
||||||
|
"peekabooDpm": "Peekaboo DPM",
|
||||||
|
"peekabooDpmInfo": "Damage per minute assuming you only fire after resetting camouflage (or the reload finishes, if it's slower) \u2014 at least 10 seconds between shots.",
|
||||||
"shells": "Shells",
|
"shells": "Shells",
|
||||||
"mostOptimalShellIndex": "Most optimal shell",
|
"mostOptimalShellIndex": "Most optimal shell",
|
||||||
"shellReloads": "Reloads",
|
"shellReloads": "Reloads",
|
||||||
@@ -679,11 +684,12 @@
|
|||||||
"hullTraverseSoftTerrain": "Soft",
|
"hullTraverseSoftTerrain": "Soft",
|
||||||
"health": "Health",
|
"health": "Health",
|
||||||
"fireChance": "Fire chance",
|
"fireChance": "Fire chance",
|
||||||
|
"trackRepairTime": "Track repair time",
|
||||||
"viewRange": "View range",
|
"viewRange": "View range",
|
||||||
"camouflageStill": "Camouflage still",
|
"camouflageStill": "Camouflage still",
|
||||||
"camouflageMoving": "Moving",
|
"camouflageMoving": "Moving",
|
||||||
"camouflageShootingStill": "Still",
|
"camouflageShootingStill": "Shooting while still",
|
||||||
"camouflageShootingMoving": "Moving",
|
"camouflageShootingMoving": "Shooting while moving",
|
||||||
"camouflageCaughtOnFire": "Caught on fire",
|
"camouflageCaughtOnFire": "Caught on fire",
|
||||||
"width": "Width",
|
"width": "Width",
|
||||||
"height": "Height",
|
"height": "Height",
|
||||||
@@ -991,7 +997,6 @@
|
|||||||
|
|
||||||
"about": {
|
"about": {
|
||||||
"title": "About",
|
"title": "About",
|
||||||
"credits": "Credits",
|
|
||||||
"discord": "Discord",
|
"discord": "Discord",
|
||||||
"github": "GitHub",
|
"github": "GitHub",
|
||||||
"patches": "Patches"
|
"patches": "Patches"
|
||||||
|
|||||||
+13
-477
@@ -37,10 +37,11 @@
|
|||||||
"d_1": "Ayer"
|
"d_1": "Ayer"
|
||||||
},
|
},
|
||||||
"branches": {
|
"branches": {
|
||||||
"local": "DEV",
|
"beta": "Beta",
|
||||||
"dev": "Beta",
|
"development": "Development",
|
||||||
"opentest": "Prueba Abierta",
|
"opentest": "Prueba abierta",
|
||||||
"preview": "Avance"
|
"preview": "Preview",
|
||||||
|
"production": "Production"
|
||||||
},
|
},
|
||||||
"locales": {
|
"locales": {
|
||||||
"en": "Ingles",
|
"en": "Ingles",
|
||||||
@@ -184,467 +185,6 @@
|
|||||||
"cumulative_battle_life_time": "Tiempo total de batalla"
|
"cumulative_battle_life_time": "Tiempo total de batalla"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bot": {
|
|
||||||
"common": {
|
|
||||||
"errors": {
|
|
||||||
"clan_not_found": "# Could not find clan\nCouldn't find \"{search}\". Try selecting a clan from the search result.",
|
|
||||||
"player_not_found": "# Could not find user\nI couldn't find user \"{search}\". Try picking an user from the search result, typing in a valid username, or using the `/link` command.",
|
|
||||||
"player_not_linked": "# Usa `/vincular` para empezar\n¡No sé quién eres, pero puedes decírmelo hoy!",
|
|
||||||
"tank_name_not_found": "# Tank not found\nCould not find tank by the name \"{search}\".",
|
|
||||||
"tank_id_not_found": "# Tank not found\nCould not find tank by the ID \"{search}\". Try typing the name of the tank instead of a number.",
|
|
||||||
"no_tank_stats": "# No hay estadísticas de tanque disponibles\nEste jugador no tiene estadísticas disponibles. Este podría no ser el jugador que estás buscando.",
|
|
||||||
"get_help": "Servidor de ayuda de Discord",
|
|
||||||
"uncaught_error": "# ¡Blitzkrieg sufrió un error!\nLo sentimos mucho. Siéntete libre de [unirte al servidor oficial de Discord](https://discord.gg/nDt7AjGJQH) para obtener ayuda.",
|
|
||||||
"preview": "# Este comando es una vista previa\n\nSolo puedes acceder a este comando en [el servidor oficial de Discord](https://discord.gg/nDt7AjGJQH). Generalmente este comando estará disponible pronto.",
|
|
||||||
"query_too_small": "# Tu búsqueda es demasiado corta\nDebe ser por lo menos de 3 caracteres de largo.",
|
|
||||||
"query_too_long": "# Tu búsqueda es demasiado larga\nDebe ser como mucho de 100 caracteres de largo."
|
|
||||||
},
|
|
||||||
"wn8": {
|
|
||||||
"name": "WN8",
|
|
||||||
"types": {
|
|
||||||
"very_bad": "Muy Malo",
|
|
||||||
"bad": "Malo",
|
|
||||||
"below_average": "Debajo del Promedio",
|
|
||||||
"average": "Promedio",
|
|
||||||
"above_average": "Superior al Promedio",
|
|
||||||
"good": "Bueno",
|
|
||||||
"very_good": "Muy Bueno",
|
|
||||||
"great": "Excelente",
|
|
||||||
"unicum": "Unicum",
|
|
||||||
"super_unicum": "Super Unicum"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"subcommands": {
|
|
||||||
"today": {
|
|
||||||
"name": "Hoy",
|
|
||||||
"description": "Hoy"
|
|
||||||
},
|
|
||||||
"30": {
|
|
||||||
"name": "30",
|
|
||||||
"description": "30 días"
|
|
||||||
},
|
|
||||||
"60": {
|
|
||||||
"name": "60",
|
|
||||||
"description": "60 días"
|
|
||||||
},
|
|
||||||
"90": {
|
|
||||||
"name": "90",
|
|
||||||
"description": "90 días"
|
|
||||||
},
|
|
||||||
"career": {
|
|
||||||
"name": "carrera",
|
|
||||||
"description": "Carrera"
|
|
||||||
},
|
|
||||||
"custom": {
|
|
||||||
"name": "personalizado",
|
|
||||||
"description": "Rango personalizado",
|
|
||||||
"options": {
|
|
||||||
"start": {
|
|
||||||
"name": "comenzar",
|
|
||||||
"description": "Comenzar en cantidad de días pasados desde hoy"
|
|
||||||
},
|
|
||||||
"end": {
|
|
||||||
"name": "fin",
|
|
||||||
"description": "Terminar en cantidad de días pasados desde hoy"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"clan": {
|
|
||||||
"name": "clan",
|
|
||||||
"description": "El nombre o etiqueta del clan"
|
|
||||||
},
|
|
||||||
"tank": {
|
|
||||||
"name": "tanque",
|
|
||||||
"description": "El tanque al cual conseguirle estadísticas"
|
|
||||||
},
|
|
||||||
"username": {
|
|
||||||
"name": "nombre de usuario",
|
|
||||||
"description": "El nombre de usuario de Blitz"
|
|
||||||
},
|
|
||||||
"filters": {
|
|
||||||
"nation": {
|
|
||||||
"name": "nación",
|
|
||||||
"description": "Nación"
|
|
||||||
},
|
|
||||||
"class": {
|
|
||||||
"name": "clase",
|
|
||||||
"description": "Clase"
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"name": "tipo",
|
|
||||||
"description": "Tipo"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"region": {
|
|
||||||
"name": "región",
|
|
||||||
"description": "Región"
|
|
||||||
},
|
|
||||||
"tier": {
|
|
||||||
"name": "tier",
|
|
||||||
"description": "Nivel",
|
|
||||||
"choices": {
|
|
||||||
"tier": "Tier {tier_1} - {tier_2}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"periods": {
|
|
||||||
"career": "Carrera",
|
|
||||||
"today": "Hoy",
|
|
||||||
"days": "{days} days",
|
|
||||||
"custom": "{day_1} - {day_2} days"
|
|
||||||
},
|
|
||||||
"filters": {
|
|
||||||
"none": "Sin filtros",
|
|
||||||
"tier": "Tier {tier}"
|
|
||||||
},
|
|
||||||
"no_data": {
|
|
||||||
"battles_in_period": "No hay batallas jugadas en este período",
|
|
||||||
"battles_in_season": "No hay batallas jugadas en esta temporada",
|
|
||||||
"players_in_period": "No hay jugadores en este período",
|
|
||||||
"tanks_found": "No se encontraron tanques"
|
|
||||||
},
|
|
||||||
"buttons": {
|
|
||||||
"refresh": "Actualizar"
|
|
||||||
},
|
|
||||||
"hero_stats": {
|
|
||||||
"battles": "Batallas",
|
|
||||||
"winrate": "Tasa de victorias",
|
|
||||||
"damage": "Daño",
|
|
||||||
"damage_ratio": "Relación de daño",
|
|
||||||
"tier": "Nivel",
|
|
||||||
"survival": "Supervivencia",
|
|
||||||
"accuracy": "Precisión",
|
|
||||||
"kills": "Bajas"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"commands": {
|
|
||||||
"dead": "# Stat Commands Are Dead\n\nThe BlitzKit Discord bot used to use BlitzStars to fetch periodic statistics. BlitzStars has enabled aggressive Cloudflare protections; hence, disabling BlitzKit from using BlitzStar's API. This has impacted the following commands:\n\n- `/stats`\n- `/today`\n- `/breakdown`\n- `/evolution`\n- `/full-stats`\n\nPlease use [Aftermath](<https://amth.one/invite>) as an alternative which is completely independent of BlitzStars. BlitzKit-hosted stat commands will return in the near future.",
|
|
||||||
"replay": {
|
|
||||||
"name": "repetición",
|
|
||||||
"description": "Mostrar resultados de la repetición",
|
|
||||||
"options": {
|
|
||||||
"file": {
|
|
||||||
"name": "file",
|
|
||||||
"description": "Replay file"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"research": {
|
|
||||||
"name": "desarollar",
|
|
||||||
"description": "Enumera los gastos por investigar una línea",
|
|
||||||
"options": {
|
|
||||||
"target_tank": {
|
|
||||||
"name": "tanque objetivo",
|
|
||||||
"description": "El último tanque a investigar en la línea"
|
|
||||||
},
|
|
||||||
"starting_tank": {
|
|
||||||
"name": "tanque de inicio",
|
|
||||||
"description": "El tanque inicial en la línea (se deduce automáticamente si no se proporciona)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"subtitle": "Investigar",
|
|
||||||
"total": "Total",
|
|
||||||
"research": "Research: {cost}",
|
|
||||||
"upgrades": "Upgrades: {cost}",
|
|
||||||
"purchase": "Purchase: {cost}",
|
|
||||||
"equipment": "Equipment: {cost}",
|
|
||||||
"estimation": "# ¡Esto es una estimación!\n\nEsta lista podría incluir tanques ya investigados debido a la información errónea que proporciona Wargaming. Si puedes, prueba proporcionando un `tanque-inicial` de la línea al usar el comando."
|
|
||||||
},
|
|
||||||
"errors": {
|
|
||||||
"non_tech_tree": "# {tank} is not on the tech tree\n\nYou cannot research a premium/collector tank.",
|
|
||||||
"tier_1": "# {tank} is a tier I\n\nTier I tanks are always unlocked for free for all players.",
|
|
||||||
"already_researched": "# {tank} is already researched\n\nTry providing a `starting-tank` when using the command to view the totals for a line you have already researched.",
|
|
||||||
"start_end_equal": "# {tank} was provided twice\n\nMake sure `starting-tank` and `target-tank` are different.",
|
|
||||||
"tanks_not_on_line": "# {tank_1} and {tank_2} are not on the same line\n\nMake sure `starting-tank` and `target-tank` are on the same tech-tree line.",
|
|
||||||
"unordered": "# {tank_1} higher tiered to {tank_2}\n\nMake sure to provide {tank_2} as the `starting-tank` instead as it is the lower tiered tank."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"about": {
|
|
||||||
"name": "acerca",
|
|
||||||
"description": "Toda la información que necesitas sobre el bot",
|
|
||||||
"subcommands": {
|
|
||||||
"commands": {
|
|
||||||
"name": "comandos",
|
|
||||||
"description": "Lista de todos los comandos y sus descripciones",
|
|
||||||
"body": "# Comandos\n\nBlitzKit ofrece los siguientes comandos:\n\n"
|
|
||||||
},
|
|
||||||
"embeds": {
|
|
||||||
"name": "embeds",
|
|
||||||
"description": "Cómo funcionan los embeds"
|
|
||||||
},
|
|
||||||
"introduction": {
|
|
||||||
"name": "introducción",
|
|
||||||
"description": "Sobre el bot"
|
|
||||||
},
|
|
||||||
"invite": {
|
|
||||||
"name": "invitar",
|
|
||||||
"description": "Cómo invitar al bot"
|
|
||||||
},
|
|
||||||
"timezones": {
|
|
||||||
"name": "zonas horarias",
|
|
||||||
"description": "Cómo Blitzkrieg infiere y utiliza tu zona horaria"
|
|
||||||
},
|
|
||||||
"credits": {
|
|
||||||
"name": "créditos",
|
|
||||||
"description": "Personas que han ayudado a BlitzKit"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"breakdown": {
|
|
||||||
"name": "resumen",
|
|
||||||
"description": "Resumen de un período por tanques jugados",
|
|
||||||
"body": {
|
|
||||||
"total": "Total",
|
|
||||||
"battles": "Batallas",
|
|
||||||
"wn8": "WN8",
|
|
||||||
"winrate": "Tasa de victorias",
|
|
||||||
"damage": "Daño",
|
|
||||||
"unknown_tank": "Unknown tank {id}"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"debug": {
|
|
||||||
"name": "depurar",
|
|
||||||
"description": "Muestra más información sobre el bot",
|
|
||||||
"body": {
|
|
||||||
"title": "# Depuración\n\n",
|
|
||||||
"version": "Versión",
|
|
||||||
"shard": {
|
|
||||||
"label": "Fragmentar",
|
|
||||||
"default": "predeterminado"
|
|
||||||
},
|
|
||||||
"uptime": "Tiempo en línea"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"evolution": {
|
|
||||||
"name": "evolución",
|
|
||||||
"description": "Evolución de estadísticas",
|
|
||||||
"groups": {
|
|
||||||
"player": {
|
|
||||||
"name": "jugador",
|
|
||||||
"description": "Estadísticas del jugador"
|
|
||||||
},
|
|
||||||
"tank": {
|
|
||||||
"name": "tanque",
|
|
||||||
"description": "Estadísticas del tanque"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"inactive": {
|
|
||||||
"name": "inactivo",
|
|
||||||
"description": "Enumera a todos los jugadores inactivos en un clan por encima de un umbral",
|
|
||||||
"options": {
|
|
||||||
"threshold": {
|
|
||||||
"name": "umbral",
|
|
||||||
"description": "The number of days inactive (default: {days} days)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"subtitle": "Inactive for {days}+ days",
|
|
||||||
"listing": "{days} days"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"full_stats": {
|
|
||||||
"name": "estadísticas completas",
|
|
||||||
"description": "Estadísticas completas del juego",
|
|
||||||
"body": {
|
|
||||||
"cards": {
|
|
||||||
"games": {
|
|
||||||
"title": "Partidas",
|
|
||||||
"winrate": "Tasa de victorias",
|
|
||||||
"battles": "Batallas",
|
|
||||||
"wins_losses": "Victorias / derrotas"
|
|
||||||
},
|
|
||||||
"efficiency": {
|
|
||||||
"title": "Eficiencia",
|
|
||||||
"wn8": "WN8",
|
|
||||||
"survival": "Supervivencia",
|
|
||||||
"accuracy": "Precisión"
|
|
||||||
},
|
|
||||||
"lethality": {
|
|
||||||
"title": "Letalidad",
|
|
||||||
"average_damage": "Daño promedio",
|
|
||||||
"damage_per_tier": "Daño por nivel",
|
|
||||||
"damage_ratio": "Relación de daño",
|
|
||||||
"average_kills": "Promedio de bajas"
|
|
||||||
},
|
|
||||||
"miscellaneous": {
|
|
||||||
"title": "Misceláneo",
|
|
||||||
"average_tier": "Nivel promedio",
|
|
||||||
"average_spots": "Promedio de detecciones",
|
|
||||||
"average_xp": "Promedio de XP",
|
|
||||||
"kills_to_death_ratio": "Relación bajas-muertes"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"link": {
|
|
||||||
"name": "vincular",
|
|
||||||
"description": "Vincula tu cuenta de Blitz y Discord",
|
|
||||||
"body": {
|
|
||||||
"accounts_linked": "Cuentas vinculadas",
|
|
||||||
"no_role_permissions": {
|
|
||||||
"title": "{name} failed to verify",
|
|
||||||
"description": "No tengo permiso para administrar roles."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"embed": {
|
|
||||||
"title": "¿Cuenta incorrecta?",
|
|
||||||
"description": "Usa el comando de nuevo y selecciona un usuario de los resultados de búsqueda."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"search_clans": {
|
|
||||||
"name": "buscar clanes",
|
|
||||||
"description": "Buscar clanes",
|
|
||||||
"options": {
|
|
||||||
"limit": {
|
|
||||||
"name": "límite",
|
|
||||||
"description": "The max number of clan results (default: {limit})"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"title": "Clan search for {search} in region {region}",
|
|
||||||
"no_results": "No se encontraron clanes"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"search_players": {
|
|
||||||
"name": "buscar jugadores",
|
|
||||||
"description": "Buscar jugadores",
|
|
||||||
"options": {
|
|
||||||
"limit": {
|
|
||||||
"name": "límite",
|
|
||||||
"description": "The max number of player results (default: {limit})"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"title": "Player search for {search} in region {region}",
|
|
||||||
"no_results": "No se encontraron jugadores"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rating_leaderboard": {
|
|
||||||
"name": "tabla de clasificación",
|
|
||||||
"description": "Estadísticas de batallas de clasificatoria",
|
|
||||||
"subcommands": {
|
|
||||||
"neighbors": {
|
|
||||||
"name": "vecinos",
|
|
||||||
"description": "Jugadores vecinos en la tabla de posiciones"
|
|
||||||
},
|
|
||||||
"league": {
|
|
||||||
"name": "liga",
|
|
||||||
"description": "Mejores jugadores de una liga"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"limit": {
|
|
||||||
"name": "limite",
|
|
||||||
"description": "How many neighbors to display (default: {count})"
|
|
||||||
},
|
|
||||||
"season": {
|
|
||||||
"name": "temporada",
|
|
||||||
"description": "Número de temporada (predeterminado: actual)",
|
|
||||||
"choices": {
|
|
||||||
"current": "{season} (current)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"league": {
|
|
||||||
"name": "liga",
|
|
||||||
"description": "La liga a mostrar"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"top_players": "Top {count} players",
|
|
||||||
"no_participation": "# {player} didn't play rating in season {season}\n\nThis player did not participate in this season or did not get past calibration.",
|
|
||||||
"no_ongoing_season": "# No hay temporada en curso\n\nActualmente no hay ninguna temporada de clasificatoria.",
|
|
||||||
"deleted_player": "Deleted {id}",
|
|
||||||
"neighbors": "Vecinos de clasificatoria",
|
|
||||||
"more": "+ {count} more"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"today": {
|
|
||||||
"name": "hoy",
|
|
||||||
"description": "Tanques jugados hoy y estadísticas"
|
|
||||||
},
|
|
||||||
"stats": {
|
|
||||||
"name": "estadísticas",
|
|
||||||
"description": "Estadísticas rápidas para un período"
|
|
||||||
},
|
|
||||||
"owned_tanks": {
|
|
||||||
"name": "tanques en propiedad",
|
|
||||||
"description": "Muestra todos los tanques propios en un nivel",
|
|
||||||
"body": {
|
|
||||||
"title": "# {name}'s owned tier {tier} tanks\n\n"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"permissions": {
|
|
||||||
"name": "permisos",
|
|
||||||
"description": "Comprueba si el bot tiene los permisos requeridos para funcionar",
|
|
||||||
"body": {
|
|
||||||
"title": "# Permissions\n\n{body}",
|
|
||||||
"view_channels": "Ver canales: necesario para encontrar el mensaje en el cual el botón \"actualizar\" fue usado",
|
|
||||||
"read_message_history": "Leer historial de mensajes: necesario para encontrar el mensaje a actualizar",
|
|
||||||
"attach_files": "Adjuntar archivos: necesario para añadir imágenes a los comandos basados en estas",
|
|
||||||
"external_emojis": "Emoticonos externos: necesario para añadir emoticonos de banderas nacionales y clases de tanque"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ping": {
|
|
||||||
"name": "ping",
|
|
||||||
"description": "Comprueba si el bot está vivo.",
|
|
||||||
"body": {
|
|
||||||
"pong": "Pong 🏓",
|
|
||||||
"pong_with_time": "Pong 🏓 - {time}ms"
|
|
||||||
},
|
|
||||||
"subcommands": {
|
|
||||||
"blitzkit": {
|
|
||||||
"name": "blitzkit",
|
|
||||||
"description": "Hacerle un ping a BlitzKit"
|
|
||||||
},
|
|
||||||
"wotb": {
|
|
||||||
"name": "wotb",
|
|
||||||
"description": "Hacerle un ping a World of Tanks Blitz"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"player_info": {
|
|
||||||
"name": "info del jugador",
|
|
||||||
"description": "Información básica sobre un jugador",
|
|
||||||
"body": {
|
|
||||||
"title": "{name}'s information",
|
|
||||||
"nickname": "Apodo",
|
|
||||||
"battles": "Batallas",
|
|
||||||
"winrate": "Tasa de victorias",
|
|
||||||
"account_id": "ID de cuenta",
|
|
||||||
"created": "Creado",
|
|
||||||
"last_battle": "Última batalla"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rating": {
|
|
||||||
"name": "clasificatoria",
|
|
||||||
"description": "Estadísticas de clasificatoria del jugador",
|
|
||||||
"subcommands": {
|
|
||||||
"today": {
|
|
||||||
"name": "hoy",
|
|
||||||
"description": "Estadísticas de clasificatoria de hoy"
|
|
||||||
},
|
|
||||||
"season": {
|
|
||||||
"name": "temporada",
|
|
||||||
"description": "Estadísticas de clasificatoria de esta temporada"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"subtitle": {
|
|
||||||
"today": "Estadísticas de clasificatoria de hoy",
|
|
||||||
"season": "Estadísticas de clasificatoria de esta temporada"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"errors": {
|
|
||||||
"no_participation": "# {name} hasn't played rating\n\nThis player hasn't participated in the rating gamemode this season.",
|
|
||||||
"unrecorded_stats": "# Estadísticas no disponibles actualmente\n\nWargaming podría estar sufriendo una caída del servidor. Si hay alguna temporada en curso, las estadísticas deberían estar disponibles en 24 horas."
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"website": {
|
"website": {
|
||||||
"redirect": {
|
"redirect": {
|
||||||
"title": "301: moved permanently",
|
"title": "301: moved permanently",
|
||||||
@@ -654,6 +194,7 @@
|
|||||||
"title": "Settings",
|
"title": "Settings",
|
||||||
"description": "Change BlitzKit settings",
|
"description": "Change BlitzKit settings",
|
||||||
"dev_mode": "Modo de desarrollador",
|
"dev_mode": "Modo de desarrollador",
|
||||||
|
"auto_load_models": "Auto-load models",
|
||||||
"language": "Idioma"
|
"language": "Idioma"
|
||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
@@ -741,14 +282,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home": {
|
"home": {
|
||||||
"pwa": {
|
|
||||||
"title": "Install the BlitzKit App",
|
|
||||||
"new": "NEW",
|
|
||||||
"checking": "Checking compatibility...",
|
|
||||||
"instructions": "Instructions for Apple devices.",
|
|
||||||
"install": "Install",
|
|
||||||
"dismiss": "Dismiss"
|
|
||||||
},
|
|
||||||
"discord": {
|
"discord": {
|
||||||
"join_short": "Join cool people!",
|
"join_short": "Join cool people!",
|
||||||
"join_long": "Join super duper cool people!",
|
"join_long": "Join super duper cool people!",
|
||||||
@@ -880,6 +413,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sandbox": {
|
"sandbox": {
|
||||||
|
"load_model": "Load model",
|
||||||
"poses": {
|
"poses": {
|
||||||
"hull_down": "Hull down",
|
"hull_down": "Hull down",
|
||||||
"face_hug": "Cara a cara",
|
"face_hug": "Cara a cara",
|
||||||
@@ -983,8 +517,7 @@
|
|||||||
"title": "",
|
"title": "",
|
||||||
"equalizer": {
|
"equalizer": {
|
||||||
"title": "Equalizer",
|
"title": "Equalizer",
|
||||||
"equalize": "Equalize",
|
"equalize": "Equalize"
|
||||||
"beta": "Beta"
|
|
||||||
},
|
},
|
||||||
"modules": {
|
"modules": {
|
||||||
"title": "Módulos",
|
"title": "Módulos",
|
||||||
@@ -1040,6 +573,8 @@
|
|||||||
"shellRicochet": "Rebote",
|
"shellRicochet": "Rebote",
|
||||||
"dpm": "DPM",
|
"dpm": "DPM",
|
||||||
"dpmEffective": "Effective at 60s",
|
"dpmEffective": "Effective at 60s",
|
||||||
|
"peekabooDpm": "Peekaboo DPM",
|
||||||
|
"peekabooDpmInfo": "Damage per minute assuming you only fire after resetting camouflage (or the reload finishes, if it's slower) — at least 10 seconds between shots.",
|
||||||
"shells": "Proyectiles",
|
"shells": "Proyectiles",
|
||||||
"mostOptimalShellIndex": "Proyectil más óptimo",
|
"mostOptimalShellIndex": "Proyectil más óptimo",
|
||||||
"shellReloads": "Reloads",
|
"shellReloads": "Reloads",
|
||||||
@@ -1088,11 +623,12 @@
|
|||||||
"hullTraverseSoftTerrain": "Suave",
|
"hullTraverseSoftTerrain": "Suave",
|
||||||
"health": "Salud",
|
"health": "Salud",
|
||||||
"fireChance": "Probabilidad de incendio",
|
"fireChance": "Probabilidad de incendio",
|
||||||
|
"trackRepairTime": "Track repair time",
|
||||||
"viewRange": "Rango de visión",
|
"viewRange": "Rango de visión",
|
||||||
"camouflageStill": "Quieto",
|
"camouflageStill": "Quieto",
|
||||||
"camouflageMoving": "En movimiento",
|
"camouflageMoving": "En movimiento",
|
||||||
"camouflageShootingStill": "Quieto",
|
"camouflageShootingStill": "Shooting while still",
|
||||||
"camouflageShootingMoving": "En movimiento",
|
"camouflageShootingMoving": "Shooting while moving",
|
||||||
"camouflageCaughtOnFire": "Atrapado en fuego",
|
"camouflageCaughtOnFire": "Atrapado en fuego",
|
||||||
"width": "Ancho",
|
"width": "Ancho",
|
||||||
"height": "Altura",
|
"height": "Altura",
|
||||||
|
|||||||
+13
-477
@@ -37,10 +37,11 @@
|
|||||||
"d_1": "Hier"
|
"d_1": "Hier"
|
||||||
},
|
},
|
||||||
"branches": {
|
"branches": {
|
||||||
"local": "dev",
|
"beta": "Beta",
|
||||||
"dev": "beta",
|
"development": "Development",
|
||||||
"opentest": "test ouvert",
|
"opentest": "OpenTest",
|
||||||
"preview": "aperçu"
|
"preview": "Preview",
|
||||||
|
"production": "Production"
|
||||||
},
|
},
|
||||||
"locales": {
|
"locales": {
|
||||||
"en": "Anglais",
|
"en": "Anglais",
|
||||||
@@ -184,467 +185,6 @@
|
|||||||
"cumulative_battle_life_time": "Total de temps de bataille"
|
"cumulative_battle_life_time": "Total de temps de bataille"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bot": {
|
|
||||||
"common": {
|
|
||||||
"errors": {
|
|
||||||
"clan_not_found": "# Impossible de trouver le clan\nImpossible de trouver «{search} ». Essayez de sélectionner un clan dans le résultat de la recherche.",
|
|
||||||
"player_not_found": "# Impossible de trouver l'utilisateur\nJe n'ai pas pu trouver l'utilisateur \"{search}\". Essayez de choisir un utilisateur dans le résultat de la recherche, en tapant un nom d'utilisateur valide, ou en utilisant la commande `/link`.",
|
|
||||||
"player_not_linked": "# Utilisez `/link` pour commencer\nJe ne sais pas qui vous êtes, mais vous pouvez me le dire aujourd'hui !",
|
|
||||||
"tank_name_not_found": "# Char introuvable\nImpossible de trouver le char sous le nom \"{search}\".",
|
|
||||||
"tank_id_not_found": "# Char introuvable\nImpossible de trouver le char avec l'ID \"{search}\". Essayez de taper le nom du char au lieu d'un nombre.",
|
|
||||||
"no_tank_stats": "# Aucune statistique de tank disponible\nCe joueur n'a pas de statistiques disponibles. Ce n'est peut-être pas le joueur que vous cherchez.",
|
|
||||||
"get_help": "Aidez le serveur Discord",
|
|
||||||
"uncaught_error": "# Blitzkit a rencontré une erreur !\nNous sommes désolés de cela. N'hésitez pas à [rejoindre le serveur officiel Discord](https://discord.gg/nDt7AjGJQH) pour obtenir de l'aide.",
|
|
||||||
"preview": "# Cette commande est en aperçu\n\nVous ne pouvez accéder à cette commande que dans [le serveur officiel Discord](https://discord.gg/nDt7AjGJQH). La commande sera généralement disponible sous peu.",
|
|
||||||
"query_too_small": "# Votre recherche est trop courte\nVotre recherche doit comporter au moins 3 caractères.",
|
|
||||||
"query_too_long": "# Votre recherche est trop longue\nVotre recherche doit comporter au maximum 100 caractères."
|
|
||||||
},
|
|
||||||
"wn8": {
|
|
||||||
"name": "WN8",
|
|
||||||
"types": {
|
|
||||||
"very_bad": "Très nul",
|
|
||||||
"bad": "Nul",
|
|
||||||
"below_average": "En-dessous de la moyenne",
|
|
||||||
"average": "Moyenne",
|
|
||||||
"above_average": "Au-dessus de la moyenne",
|
|
||||||
"good": "Bien",
|
|
||||||
"very_good": "Très bien",
|
|
||||||
"great": "Super",
|
|
||||||
"unicum": "Unique",
|
|
||||||
"super_unicum": "Super unique"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"subcommands": {
|
|
||||||
"today": {
|
|
||||||
"name": "aujourd'hui",
|
|
||||||
"description": "Aujourd'hui"
|
|
||||||
},
|
|
||||||
"30": {
|
|
||||||
"name": "30",
|
|
||||||
"description": "30 jours"
|
|
||||||
},
|
|
||||||
"60": {
|
|
||||||
"name": "60",
|
|
||||||
"description": "60 jours"
|
|
||||||
},
|
|
||||||
"90": {
|
|
||||||
"name": "90",
|
|
||||||
"description": "90 jours"
|
|
||||||
},
|
|
||||||
"career": {
|
|
||||||
"name": "carrière",
|
|
||||||
"description": "Carrière"
|
|
||||||
},
|
|
||||||
"custom": {
|
|
||||||
"name": "personnaliser",
|
|
||||||
"description": "Période spécifique",
|
|
||||||
"options": {
|
|
||||||
"start": {
|
|
||||||
"name": "début",
|
|
||||||
"description": "Commencer il y a un nombre de jours à partir d'aujourd'hui"
|
|
||||||
},
|
|
||||||
"end": {
|
|
||||||
"name": "fin",
|
|
||||||
"description": "Fin en nombre de jours à partir d'aujourd'hui"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"clan": {
|
|
||||||
"name": "clan",
|
|
||||||
"description": "Le nom ou le tag du clan"
|
|
||||||
},
|
|
||||||
"tank": {
|
|
||||||
"name": "char",
|
|
||||||
"description": "Le char pour obtenir des statistiques pour"
|
|
||||||
},
|
|
||||||
"username": {
|
|
||||||
"name": "nom d'utilisateur",
|
|
||||||
"description": "Le nom d'utilisateur Blitz du joueur"
|
|
||||||
},
|
|
||||||
"filters": {
|
|
||||||
"nation": {
|
|
||||||
"name": "pays",
|
|
||||||
"description": "Pays"
|
|
||||||
},
|
|
||||||
"class": {
|
|
||||||
"name": "classe",
|
|
||||||
"description": "Classe"
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"name": "type",
|
|
||||||
"description": "Type"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"region": {
|
|
||||||
"name": "région",
|
|
||||||
"description": "Région"
|
|
||||||
},
|
|
||||||
"tier": {
|
|
||||||
"name": "rang",
|
|
||||||
"description": "Rang",
|
|
||||||
"choices": {
|
|
||||||
"tier": "Rang {tier_}1 - {tier_}2"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"periods": {
|
|
||||||
"career": "Carrière",
|
|
||||||
"today": "Aujourd'hui",
|
|
||||||
"days": "{days} jours",
|
|
||||||
"custom": "{day_1} - {day_2} jours"
|
|
||||||
},
|
|
||||||
"filters": {
|
|
||||||
"none": "Aucun filtre",
|
|
||||||
"tier": "Rang {tier}"
|
|
||||||
},
|
|
||||||
"no_data": {
|
|
||||||
"battles_in_period": "",
|
|
||||||
"battles_in_season": "Aucune bataille jouée dans cette saison",
|
|
||||||
"players_in_period": "Aucun joueur pendant cette période",
|
|
||||||
"tanks_found": "Aucun char de trouver"
|
|
||||||
},
|
|
||||||
"buttons": {
|
|
||||||
"refresh": "Actualiser"
|
|
||||||
},
|
|
||||||
"hero_stats": {
|
|
||||||
"battles": "Batailles",
|
|
||||||
"winrate": "Taux de victoires",
|
|
||||||
"damage": "Dégâts",
|
|
||||||
"damage_ratio": "Rapport de dégâts",
|
|
||||||
"tier": "Rang",
|
|
||||||
"survival": "Survie",
|
|
||||||
"accuracy": "Précision",
|
|
||||||
"kills": "Tués"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"commands": {
|
|
||||||
"dead": "# Stat Commands Are Dead\n\nThe BlitzKit Discord bot used to use BlitzStars to fetch periodic statistics. BlitzStars has enabled aggressive Cloudflare protections; hence, disabling BlitzKit from using BlitzStar's API. This has impacted the following commands:\n\n- `/stats`\n- `/today`\n- `/breakdown`\n- `/evolution`\n- `/full-stats`\n\nPlease use [Aftermath](<https://amth.one/invite>) as an alternative which is completely independent of BlitzStars. BlitzKit-hosted stat commands will return in the near future.",
|
|
||||||
"replay": {
|
|
||||||
"name": "rejouer",
|
|
||||||
"description": "Afficher les résultats de la relecture",
|
|
||||||
"options": {
|
|
||||||
"file": {
|
|
||||||
"name": "file",
|
|
||||||
"description": "Replay file"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"research": {
|
|
||||||
"name": "recherche",
|
|
||||||
"description": "Liste des dépenses liées à la recherche d'une ligne",
|
|
||||||
"options": {
|
|
||||||
"target_tank": {
|
|
||||||
"name": "char cible",
|
|
||||||
"description": "Le dernier char à rechercher dans la ligne"
|
|
||||||
},
|
|
||||||
"starting_tank": {
|
|
||||||
"name": "Char de départ",
|
|
||||||
"description": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"subtitle": "Recherche",
|
|
||||||
"total": "Total",
|
|
||||||
"research": "Recherche : {cost}",
|
|
||||||
"upgrades": "Améliorations : {cost}",
|
|
||||||
"purchase": "Achat : {cost}",
|
|
||||||
"equipment": "Équipement : {cost}",
|
|
||||||
"estimation": "# Ceci est une estimation !\n\nCette liste peut inclure des chars déjà recherchés en raison de l'information inexacte fournie par Wargaming. Essayez de fournir un `char de départ` depuis la ligne lorsque vous utilisez la commande si vous le pouvez."
|
|
||||||
},
|
|
||||||
"errors": {
|
|
||||||
"non_tech_tree": "# {tank} n'est pas dans l'arbre technologique\n\nVous ne pouvez pas rechercher un char premium/de collection.",
|
|
||||||
"tier_1": "# {tank} est un char de rang I\n\nLe char de rang 1 sont déverrouillé gratuitement pour tous les joueurs.",
|
|
||||||
"already_researched": "# {tank} est déjà recherché\n\nEssayez de fournir un `char de départ` en utilisant la commande pour voir la progression d'une lignée.",
|
|
||||||
"start_end_equal": "# {tank} a été fourni deux fois\n\nAssurez-vous que `starting-tank` et `target-tank` sont différents.",
|
|
||||||
"tanks_not_on_line": "{tank_}1 et {tank_}2 ne sont pas sur la même ligne \n\nAssurez-vous que `starting-tank` et `target-tank` sont sur la même ligne d'arbre technologique.",
|
|
||||||
"unordered": "# {tank_1} niveau supérieur à {tank_2}\n\nAssurez-vous de fournir {tank_2} comme le `starting-tank` à la place car c'est le char de niveau inférieur."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"about": {
|
|
||||||
"name": "à propos",
|
|
||||||
"description": "Toutes les informations dont vous avez besoin sur le bot",
|
|
||||||
"subcommands": {
|
|
||||||
"commands": {
|
|
||||||
"name": "commandes",
|
|
||||||
"description": "Liste de toutes les commandes et leurs descriptions",
|
|
||||||
"body": "# Commandes\n\nBlitzKit offre les commandes suivantes :\n\n"
|
|
||||||
},
|
|
||||||
"embeds": {
|
|
||||||
"name": "intègre",
|
|
||||||
"description": "Comment fonctionnent les intégrations"
|
|
||||||
},
|
|
||||||
"introduction": {
|
|
||||||
"name": "introduction",
|
|
||||||
"description": "À propos du bot"
|
|
||||||
},
|
|
||||||
"invite": {
|
|
||||||
"name": "inviter",
|
|
||||||
"description": "Comment inviter le bot"
|
|
||||||
},
|
|
||||||
"timezones": {
|
|
||||||
"name": "fuseau horaire",
|
|
||||||
"description": "Comment BlitzKit déduit et utilise votre fuseau horaire"
|
|
||||||
},
|
|
||||||
"credits": {
|
|
||||||
"name": "crédits",
|
|
||||||
"description": "Personnes qui ont aidé BlitzKit"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"breakdown": {
|
|
||||||
"name": "décomposition",
|
|
||||||
"description": "Répartition d'une période par chars joués",
|
|
||||||
"body": {
|
|
||||||
"total": "Total",
|
|
||||||
"battles": "Batailles",
|
|
||||||
"wn8": "WN8",
|
|
||||||
"winrate": "Taux de victoires",
|
|
||||||
"damage": "Dégâts",
|
|
||||||
"unknown_tank": "Char {id} inconnu"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"debug": {
|
|
||||||
"name": "déboguer",
|
|
||||||
"description": "Déboguer les informations sur le bot",
|
|
||||||
"body": {
|
|
||||||
"title": "# Debog\n\n",
|
|
||||||
"version": "Version",
|
|
||||||
"shard": {
|
|
||||||
"label": "Fragment",
|
|
||||||
"default": "par défaut"
|
|
||||||
},
|
|
||||||
"uptime": "Temps de fonctionnement"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"evolution": {
|
|
||||||
"name": "évolution",
|
|
||||||
"description": "Évolution des statistiques",
|
|
||||||
"groups": {
|
|
||||||
"player": {
|
|
||||||
"name": "joueur",
|
|
||||||
"description": "Statistiques du joueur"
|
|
||||||
},
|
|
||||||
"tank": {
|
|
||||||
"name": "char",
|
|
||||||
"description": "Statistiques du char"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"inactive": {
|
|
||||||
"name": "inactif",
|
|
||||||
"description": "Liste tous les joueurs inactifs dans un clan au-dessus d'un seuil",
|
|
||||||
"options": {
|
|
||||||
"threshold": {
|
|
||||||
"name": "seuil",
|
|
||||||
"description": "Le nombre de jours inactifs (par défaut: {days} jours)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"subtitle": "Inactif depuis plus de {days} jours",
|
|
||||||
"listing": "{days} jours"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"full_stats": {
|
|
||||||
"name": "statistiques complètes",
|
|
||||||
"description": "Statistiques complètes en jeu",
|
|
||||||
"body": {
|
|
||||||
"cards": {
|
|
||||||
"games": {
|
|
||||||
"title": "Parties",
|
|
||||||
"winrate": "Taux de victoires",
|
|
||||||
"battles": "Batailles",
|
|
||||||
"wins_losses": "Victoires/Défaites"
|
|
||||||
},
|
|
||||||
"efficiency": {
|
|
||||||
"title": "Efficacité",
|
|
||||||
"wn8": "WN8",
|
|
||||||
"survival": "Survie",
|
|
||||||
"accuracy": "Précision"
|
|
||||||
},
|
|
||||||
"lethality": {
|
|
||||||
"title": "Létalité",
|
|
||||||
"average_damage": "Dégâts moyens",
|
|
||||||
"damage_per_tier": "Dégâts par tier",
|
|
||||||
"damage_ratio": "Rapport de dégâts",
|
|
||||||
"average_kills": "Destruction moyenne"
|
|
||||||
},
|
|
||||||
"miscellaneous": {
|
|
||||||
"title": "Divers",
|
|
||||||
"average_tier": "Tier moyen",
|
|
||||||
"average_spots": "Repérage moyen",
|
|
||||||
"average_xp": "Exp. Moyenne par bataille",
|
|
||||||
"kills_to_death_ratio": "Rapport tués/morts"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"link": {
|
|
||||||
"name": "lien",
|
|
||||||
"description": "Lier votre compte Blitz et Discord",
|
|
||||||
"body": {
|
|
||||||
"accounts_linked": "Comptes liés",
|
|
||||||
"no_role_permissions": {
|
|
||||||
"title": "La vérification de {name} a échouée",
|
|
||||||
"description": "Je n'ai pas l'autorisation de gérer les rôles."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"embed": {
|
|
||||||
"title": "Compte invalide ?",
|
|
||||||
"description": "Utilisez à nouveau la commande et sélectionnez un nom d'utilisateur à partir des résultats de recherche."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"search_clans": {
|
|
||||||
"name": "clans de recherche",
|
|
||||||
"description": "Rechercher des clans",
|
|
||||||
"options": {
|
|
||||||
"limit": {
|
|
||||||
"name": "limite",
|
|
||||||
"description": "Nombre maximum de résultats du clan (par défaut: {limit})"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"title": "Recherche de clan {search} dans la région {region}",
|
|
||||||
"no_results": "Pas de clan trouvé"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"search_players": {
|
|
||||||
"name": "recherche de joueur",
|
|
||||||
"description": "Recherche des joueurs",
|
|
||||||
"options": {
|
|
||||||
"limit": {
|
|
||||||
"name": "limite",
|
|
||||||
"description": "Le nombre maximum de résultats de joueur (par défaut: {limit})"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"title": "Recherche de {search} dans la région {region}",
|
|
||||||
"no_results": "Pas de joueur de trouvé"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rating_leaderboard": {
|
|
||||||
"name": "Classement de côté",
|
|
||||||
"description": "Statistiques des batailles de cotés",
|
|
||||||
"subcommands": {
|
|
||||||
"neighbors": {
|
|
||||||
"name": "voisins",
|
|
||||||
"description": "Joueurs voisins dans le classement"
|
|
||||||
},
|
|
||||||
"league": {
|
|
||||||
"name": "ligue",
|
|
||||||
"description": "Meilleurs joueurs d'une ligue"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"limit": {
|
|
||||||
"name": "limite",
|
|
||||||
"description": "Combien de voisins afficher (par défaut : {count})"
|
|
||||||
},
|
|
||||||
"season": {
|
|
||||||
"name": "saison",
|
|
||||||
"description": "Numéro de saison (défaut : courant)",
|
|
||||||
"choices": {
|
|
||||||
"current": "{season} (actuel)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"league": {
|
|
||||||
"name": "ligue",
|
|
||||||
"description": "La ligue à afficher"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"top_players": "Top {count} joueurs",
|
|
||||||
"no_participation": "# {player} n'a pas joué de cotées dans la saison {season}\n\nCe joueur n'a pas participé à cette saison ou n'a pas dépassé l'étalonnage.",
|
|
||||||
"no_ongoing_season": "Pas de saison en cours\n\nIl n'y a pas de saison de notation en cours actuellement.",
|
|
||||||
"deleted_player": "{id} supprimé",
|
|
||||||
"neighbors": "évaluer les voisins",
|
|
||||||
"more": "+ {count} plus"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"today": {
|
|
||||||
"name": "aujourd'hui",
|
|
||||||
"description": "Les chars et les statistiques joués aujourd'hui"
|
|
||||||
},
|
|
||||||
"stats": {
|
|
||||||
"name": "statistiques",
|
|
||||||
"description": "Statistiques rapides pour une période"
|
|
||||||
},
|
|
||||||
"owned_tanks": {
|
|
||||||
"name": "chars possédés",
|
|
||||||
"description": "Affiche tous les chars d'un niveau",
|
|
||||||
"body": {
|
|
||||||
"title": "# Les chars du palier {tier} possédés par {name}"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"permissions": {
|
|
||||||
"name": "permissions",
|
|
||||||
"description": "Vérifie si le bot a les permissions nécessaires pour fonctionner",
|
|
||||||
"body": {
|
|
||||||
"title": "# Permissions\n\n{body}",
|
|
||||||
"view_channels": "Afficher les canaux : nécessaire pour trouver le message sur lequel le bouton d'actualisation a été utilisé",
|
|
||||||
"read_message_history": "Lire l'historique des messages : nécessaire pour trouver le message à rafraîchir",
|
|
||||||
"attach_files": "Joindre des fichiers : nécessaire pour ajouter des images à des commandes basées sur l'image",
|
|
||||||
"external_emojis": "Émoticônes externes: nécessaire pour ajouter des drapeaux nationaux et des émojis de classe de char"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ping": {
|
|
||||||
"name": "ping",
|
|
||||||
"description": "Vérifiez si le bot est en vie.",
|
|
||||||
"body": {
|
|
||||||
"pong": "Pong 🏓",
|
|
||||||
"pong_with_time": "Pong 🏓 - {time}ms"
|
|
||||||
},
|
|
||||||
"subcommands": {
|
|
||||||
"blitzkit": {
|
|
||||||
"name": "blitzkit",
|
|
||||||
"description": "Ping blitzkit"
|
|
||||||
},
|
|
||||||
"wotb": {
|
|
||||||
"name": "wotb",
|
|
||||||
"description": "Ping World of Tanks Blitz"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"player_info": {
|
|
||||||
"name": "info-joueur",
|
|
||||||
"description": "Informations de base sur un joueur",
|
|
||||||
"body": {
|
|
||||||
"title": "Informations de {name}",
|
|
||||||
"nickname": "Pseudo",
|
|
||||||
"battles": "Batailles",
|
|
||||||
"winrate": "Taux de victoires",
|
|
||||||
"account_id": "Account ID",
|
|
||||||
"created": "Créé",
|
|
||||||
"last_battle": "Dernière bataille"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rating": {
|
|
||||||
"name": "côtée",
|
|
||||||
"description": "Statistiques des batailles cotées du joueur",
|
|
||||||
"subcommands": {
|
|
||||||
"today": {
|
|
||||||
"name": "aujourd'hui",
|
|
||||||
"description": "Statistiques des batailles cotées d'aujourd'hui"
|
|
||||||
},
|
|
||||||
"season": {
|
|
||||||
"name": "saison",
|
|
||||||
"description": "Statistiques des batailles cotées de cette saison"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"subtitle": {
|
|
||||||
"today": "Statistiques de batailles cotées d'aujourd'hui",
|
|
||||||
"season": "Statistiques de batailles cotées cette saison"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"errors": {
|
|
||||||
"no_participation": "# {name} n’a pas joué en cotée\n\nCe joueur n’a pas participé au mode cotée cette saison.",
|
|
||||||
"unrecorded_stats": "# Statistiques actuellement indisponibles\n\nWargaming rencontre peut-être une interruption de service.\nSi une saison est en cours, les statistiques devraient être disponibles sous 24 heures."
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"website": {
|
"website": {
|
||||||
"redirect": {
|
"redirect": {
|
||||||
"title": "301 : déplacé définitivement",
|
"title": "301 : déplacé définitivement",
|
||||||
@@ -654,6 +194,7 @@
|
|||||||
"title": "Paramètres",
|
"title": "Paramètres",
|
||||||
"description": "Modifier les paramètres de BlitzKit",
|
"description": "Modifier les paramètres de BlitzKit",
|
||||||
"dev_mode": "Mode développement",
|
"dev_mode": "Mode développement",
|
||||||
|
"auto_load_models": "Auto-load models",
|
||||||
"language": "Langue"
|
"language": "Langue"
|
||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
@@ -741,14 +282,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home": {
|
"home": {
|
||||||
"pwa": {
|
|
||||||
"title": "Install the BlitzKit App",
|
|
||||||
"new": "NEW",
|
|
||||||
"checking": "Checking compatibility...",
|
|
||||||
"instructions": "Instructions for Apple devices.",
|
|
||||||
"install": "Install",
|
|
||||||
"dismiss": "Dismiss"
|
|
||||||
},
|
|
||||||
"discord": {
|
"discord": {
|
||||||
"join_short": "Join cool people!",
|
"join_short": "Join cool people!",
|
||||||
"join_long": "Join super duper cool people!",
|
"join_long": "Join super duper cool people!",
|
||||||
@@ -880,6 +413,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sandbox": {
|
"sandbox": {
|
||||||
|
"load_model": "Load model",
|
||||||
"poses": {
|
"poses": {
|
||||||
"hull_down": "Hull down",
|
"hull_down": "Hull down",
|
||||||
"face_hug": "Face hug",
|
"face_hug": "Face hug",
|
||||||
@@ -983,8 +517,7 @@
|
|||||||
"title": "Configuration",
|
"title": "Configuration",
|
||||||
"equalizer": {
|
"equalizer": {
|
||||||
"title": "Equalizer",
|
"title": "Equalizer",
|
||||||
"equalize": "Equalize",
|
"equalize": "Equalize"
|
||||||
"beta": "Beta"
|
|
||||||
},
|
},
|
||||||
"modules": {
|
"modules": {
|
||||||
"title": "Modules",
|
"title": "Modules",
|
||||||
@@ -1040,6 +573,8 @@
|
|||||||
"shellRicochet": "Ricochet",
|
"shellRicochet": "Ricochet",
|
||||||
"dpm": "DPM",
|
"dpm": "DPM",
|
||||||
"dpmEffective": "Effective at 60s",
|
"dpmEffective": "Effective at 60s",
|
||||||
|
"peekabooDpm": "Peekaboo DPM",
|
||||||
|
"peekabooDpmInfo": "Damage per minute assuming you only fire after resetting camouflage (or the reload finishes, if it's slower) — at least 10 seconds between shots.",
|
||||||
"shells": "Shells",
|
"shells": "Shells",
|
||||||
"mostOptimalShellIndex": "Most optimal shell",
|
"mostOptimalShellIndex": "Most optimal shell",
|
||||||
"shellReloads": "Reloads",
|
"shellReloads": "Reloads",
|
||||||
@@ -1088,11 +623,12 @@
|
|||||||
"hullTraverseSoftTerrain": "Soft",
|
"hullTraverseSoftTerrain": "Soft",
|
||||||
"health": "Health",
|
"health": "Health",
|
||||||
"fireChance": "Fire chance",
|
"fireChance": "Fire chance",
|
||||||
|
"trackRepairTime": "Track repair time",
|
||||||
"viewRange": "View range",
|
"viewRange": "View range",
|
||||||
"camouflageStill": "Still",
|
"camouflageStill": "Still",
|
||||||
"camouflageMoving": "Moving",
|
"camouflageMoving": "Moving",
|
||||||
"camouflageShootingStill": "Still",
|
"camouflageShootingStill": "Shooting while still",
|
||||||
"camouflageShootingMoving": "Moving",
|
"camouflageShootingMoving": "Shooting while moving",
|
||||||
"camouflageCaughtOnFire": "Caught on fire",
|
"camouflageCaughtOnFire": "Caught on fire",
|
||||||
"width": "Width",
|
"width": "Width",
|
||||||
"height": "Height",
|
"height": "Height",
|
||||||
|
|||||||
+13
-477
@@ -37,10 +37,11 @@
|
|||||||
"d_1": "昨日"
|
"d_1": "昨日"
|
||||||
},
|
},
|
||||||
"branches": {
|
"branches": {
|
||||||
"local": "開発",
|
"beta": "Beta",
|
||||||
"dev": "ベータ版",
|
"development": "Development",
|
||||||
"opentest": "オープンテスト",
|
"opentest": "OpenTest",
|
||||||
"preview": "プレビュー"
|
"preview": "Preview",
|
||||||
|
"production": "Production"
|
||||||
},
|
},
|
||||||
"locales": {
|
"locales": {
|
||||||
"en": "英語",
|
"en": "英語",
|
||||||
@@ -184,467 +185,6 @@
|
|||||||
"cumulative_battle_life_time": "総戦闘時間"
|
"cumulative_battle_life_time": "総戦闘時間"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bot": {
|
|
||||||
"common": {
|
|
||||||
"errors": {
|
|
||||||
"clan_not_found": "",
|
|
||||||
"player_not_found": "# ユーザーが見つかりませんでした\nユーザー「{search}」が見つかりませんでした。検索結果からユーザーを選択するか、有効なユーザー名を入力するか、/link コマンドを使用してください。",
|
|
||||||
"player_not_linked": "# `/link`を使用して始めましょう\nはじめまして!あなたが誰か、私に教えてください。",
|
|
||||||
"tank_name_not_found": "# Tank not found\nCould not find tank by the name \"{search}\".",
|
|
||||||
"tank_id_not_found": "# 車両が見つかりません\nID「{search}」の戦車が見つかりませんでした。数字ではなく戦車の名前を入力してみてください。",
|
|
||||||
"no_tank_stats": "# 利用可能な車輌統計がありません\nこのプレイヤーには利用可能な統計がありません。あなたが探しているプレイヤーではない可能性があります。",
|
|
||||||
"get_help": "Discordサーバーに参加する",
|
|
||||||
"uncaught_error": "# BlitzKitがエラーに遭遇しました!\n申し訳ありません。お気軽に[公式Discordサーバー](https://discord.gg/nDt7AjGJQH)にお問い合わせください。",
|
|
||||||
"preview": "このコマンドは現在[公式Discardサーバー](https://discord.gg/nDt7AjGJQH)でのみ利用可能です。間もなく全体で利用可能になります。",
|
|
||||||
"query_too_small": "# 単語が短すぎます\n検索には少なくとも3文字が含まれている必要があります。",
|
|
||||||
"query_too_long": "# 単語が長すぎます\n検索は最大で100文字までです。"
|
|
||||||
},
|
|
||||||
"wn8": {
|
|
||||||
"name": "WN8",
|
|
||||||
"types": {
|
|
||||||
"very_bad": "Very bad",
|
|
||||||
"bad": "Bad",
|
|
||||||
"below_average": "Below average",
|
|
||||||
"average": "Average",
|
|
||||||
"above_average": "Above average",
|
|
||||||
"good": "Good",
|
|
||||||
"very_good": "Very good",
|
|
||||||
"great": "Great",
|
|
||||||
"unicum": "Unicum",
|
|
||||||
"super_unicum": "Super unicum"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"subcommands": {
|
|
||||||
"today": {
|
|
||||||
"name": "today",
|
|
||||||
"description": "Today"
|
|
||||||
},
|
|
||||||
"30": {
|
|
||||||
"name": "30",
|
|
||||||
"description": "30日"
|
|
||||||
},
|
|
||||||
"60": {
|
|
||||||
"name": "60",
|
|
||||||
"description": "60日"
|
|
||||||
},
|
|
||||||
"90": {
|
|
||||||
"name": "90",
|
|
||||||
"description": "90日"
|
|
||||||
},
|
|
||||||
"career": {
|
|
||||||
"name": "総合戦績",
|
|
||||||
"description": "Career"
|
|
||||||
},
|
|
||||||
"custom": {
|
|
||||||
"name": "カスタム",
|
|
||||||
"description": "Custom range",
|
|
||||||
"options": {
|
|
||||||
"start": {
|
|
||||||
"name": "開始",
|
|
||||||
"description": "Start in number of days ago from today"
|
|
||||||
},
|
|
||||||
"end": {
|
|
||||||
"name": "end",
|
|
||||||
"description": "End in number of days ago from today"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"clan": {
|
|
||||||
"name": "クラン",
|
|
||||||
"description": "クラン名もしくはタグ"
|
|
||||||
},
|
|
||||||
"tank": {
|
|
||||||
"name": "車輌",
|
|
||||||
"description": "統計を得る車輌"
|
|
||||||
},
|
|
||||||
"username": {
|
|
||||||
"name": "ユーザー名",
|
|
||||||
"description": "プレイヤーのBlitzユーザー名"
|
|
||||||
},
|
|
||||||
"filters": {
|
|
||||||
"nation": {
|
|
||||||
"name": "国家",
|
|
||||||
"description": "国家"
|
|
||||||
},
|
|
||||||
"class": {
|
|
||||||
"name": "",
|
|
||||||
"description": "Class"
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"name": "type",
|
|
||||||
"description": "Type"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"region": {
|
|
||||||
"name": "地域",
|
|
||||||
"description": "地域"
|
|
||||||
},
|
|
||||||
"tier": {
|
|
||||||
"name": "tier",
|
|
||||||
"description": "Tier",
|
|
||||||
"choices": {
|
|
||||||
"tier": "Tier {tier_1} - {tier_2}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"periods": {
|
|
||||||
"career": "Career",
|
|
||||||
"today": "Today",
|
|
||||||
"days": "{days} days",
|
|
||||||
"custom": "{day_1} - {day_2} days"
|
|
||||||
},
|
|
||||||
"filters": {
|
|
||||||
"none": "フィルターなし",
|
|
||||||
"tier": "Tier {tier}"
|
|
||||||
},
|
|
||||||
"no_data": {
|
|
||||||
"battles_in_period": "No battles played in this period",
|
|
||||||
"battles_in_season": "No battles played in this season",
|
|
||||||
"players_in_period": "No players in this period",
|
|
||||||
"tanks_found": "No tanks found"
|
|
||||||
},
|
|
||||||
"buttons": {
|
|
||||||
"refresh": "Refresh"
|
|
||||||
},
|
|
||||||
"hero_stats": {
|
|
||||||
"battles": "戦闘数",
|
|
||||||
"winrate": "勝率",
|
|
||||||
"damage": "ダメージ",
|
|
||||||
"damage_ratio": "ダメージ率",
|
|
||||||
"tier": "Tier",
|
|
||||||
"survival": "生存",
|
|
||||||
"accuracy": "命中率",
|
|
||||||
"kills": "撃破"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"commands": {
|
|
||||||
"dead": "# Stat Commands Are Dead\n\nThe BlitzKit Discord bot used to use BlitzStars to fetch periodic statistics. BlitzStars has enabled aggressive Cloudflare protections; hence, disabling BlitzKit from using BlitzStar's API. This has impacted the following commands:\n\n- `/stats`\n- `/today`\n- `/breakdown`\n- `/evolution`\n- `/full-stats`\n\nPlease use [Aftermath](<https://amth.one/invite>) as an alternative which is completely independent of BlitzStars. BlitzKit-hosted stat commands will return in the near future.",
|
|
||||||
"replay": {
|
|
||||||
"name": "replay",
|
|
||||||
"description": "Display replay results",
|
|
||||||
"options": {
|
|
||||||
"file": {
|
|
||||||
"name": "file",
|
|
||||||
"description": "Replay file"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"research": {
|
|
||||||
"name": "研究",
|
|
||||||
"description": "Lists the expenses in researching a line",
|
|
||||||
"options": {
|
|
||||||
"target_tank": {
|
|
||||||
"name": "target-tank",
|
|
||||||
"description": "The final tank to research in the line"
|
|
||||||
},
|
|
||||||
"starting_tank": {
|
|
||||||
"name": "starting-tank",
|
|
||||||
"description": "The starting tank in the line (inferred automatically if not provided)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"subtitle": "Research",
|
|
||||||
"total": "トータル",
|
|
||||||
"research": "Research: {cost}",
|
|
||||||
"upgrades": "Upgrades: {cost}",
|
|
||||||
"purchase": "Purchase: {cost}",
|
|
||||||
"equipment": "Equipment: {cost}",
|
|
||||||
"estimation": "# This is an estimation!\n\nThis list may include already researched tanks because of the inaccurate information Wargaming provides. Try providing a `starting-tank` from the line when using the command if you can."
|
|
||||||
},
|
|
||||||
"errors": {
|
|
||||||
"non_tech_tree": "# {tank} is not on the tech tree\n\nYou cannot research a premium/collector tank.",
|
|
||||||
"tier_1": "# {tank} is a tier I\n\nTier I tanks are always unlocked for free for all players.",
|
|
||||||
"already_researched": "# {tank} is already researched\n\nTry providing a `starting-tank` when using the command to view the totals for a line you have already researched.",
|
|
||||||
"start_end_equal": "# {tank} was provided twice\n\nMake sure `starting-tank` and `target-tank` are different.",
|
|
||||||
"tanks_not_on_line": "# {tank_1} and {tank_2} are not on the same line\n\nMake sure `starting-tank` and `target-tank` are on the same tech-tree line.",
|
|
||||||
"unordered": "# {tank_1} higher tiered to {tank_2}\n\nMake sure to provide {tank_2} as the `starting-tank` instead as it is the lower tiered tank."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"about": {
|
|
||||||
"name": "about",
|
|
||||||
"description": "botについての情報の全て",
|
|
||||||
"subcommands": {
|
|
||||||
"commands": {
|
|
||||||
"name": "コマンド",
|
|
||||||
"description": "全コマンドのリストと説明",
|
|
||||||
"body": "# コマンド\nBlitzKitは以下のコマンドを提供します:"
|
|
||||||
},
|
|
||||||
"embeds": {
|
|
||||||
"name": "埋め込み",
|
|
||||||
"description": "埋め込みがどう機能するか"
|
|
||||||
},
|
|
||||||
"introduction": {
|
|
||||||
"name": "introduction",
|
|
||||||
"description": "botについて"
|
|
||||||
},
|
|
||||||
"invite": {
|
|
||||||
"name": "招待",
|
|
||||||
"description": "botを招待する方法"
|
|
||||||
},
|
|
||||||
"timezones": {
|
|
||||||
"name": "タイムゾーン",
|
|
||||||
"description": "How BlitzKit infers and uses your timezone"
|
|
||||||
},
|
|
||||||
"credits": {
|
|
||||||
"name": "クレジット",
|
|
||||||
"description": "BlitzKitを支援した人々"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"breakdown": {
|
|
||||||
"name": "breakdown",
|
|
||||||
"description": "A period's breakdown by tanks played",
|
|
||||||
"body": {
|
|
||||||
"total": "トータル",
|
|
||||||
"battles": "戦闘数",
|
|
||||||
"wn8": "WN8",
|
|
||||||
"winrate": "勝率",
|
|
||||||
"damage": "ダメージ",
|
|
||||||
"unknown_tank": "不明な車両{id}"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"debug": {
|
|
||||||
"name": "debug",
|
|
||||||
"description": "Debug information about the bot",
|
|
||||||
"body": {
|
|
||||||
"title": "# Debug\n\n",
|
|
||||||
"version": "Version",
|
|
||||||
"shard": {
|
|
||||||
"label": "Shard",
|
|
||||||
"default": "default"
|
|
||||||
},
|
|
||||||
"uptime": "Uptime"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"evolution": {
|
|
||||||
"name": "evolution",
|
|
||||||
"description": "Evolution of statistics",
|
|
||||||
"groups": {
|
|
||||||
"player": {
|
|
||||||
"name": "player",
|
|
||||||
"description": "Player statistics"
|
|
||||||
},
|
|
||||||
"tank": {
|
|
||||||
"name": "車輌",
|
|
||||||
"description": "Tank statistics"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"inactive": {
|
|
||||||
"name": "inactive",
|
|
||||||
"description": "Lists all inactive players in a clan above a threshold",
|
|
||||||
"options": {
|
|
||||||
"threshold": {
|
|
||||||
"name": "threshold",
|
|
||||||
"description": "The number of days inactive (default: {days} days)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"subtitle": "Inactive for {days}+ days",
|
|
||||||
"listing": "{days} days"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"full_stats": {
|
|
||||||
"name": "full-stats",
|
|
||||||
"description": "Full in-game statistics",
|
|
||||||
"body": {
|
|
||||||
"cards": {
|
|
||||||
"games": {
|
|
||||||
"title": "Games",
|
|
||||||
"winrate": "勝率",
|
|
||||||
"battles": "戦闘数",
|
|
||||||
"wins_losses": "Wins / losses"
|
|
||||||
},
|
|
||||||
"efficiency": {
|
|
||||||
"title": "Efficiency",
|
|
||||||
"wn8": "WN8",
|
|
||||||
"survival": "生存",
|
|
||||||
"accuracy": "精度"
|
|
||||||
},
|
|
||||||
"lethality": {
|
|
||||||
"title": "Lethality",
|
|
||||||
"average_damage": "Average damage",
|
|
||||||
"damage_per_tier": "Damage per tier",
|
|
||||||
"damage_ratio": "ダメージ比",
|
|
||||||
"average_kills": "Average kills"
|
|
||||||
},
|
|
||||||
"miscellaneous": {
|
|
||||||
"title": "Miscellaneous",
|
|
||||||
"average_tier": "Average tier",
|
|
||||||
"average_spots": "Average spots",
|
|
||||||
"average_xp": "Average XP",
|
|
||||||
"kills_to_death_ratio": "撃破/被撃破比"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"link": {
|
|
||||||
"name": "link",
|
|
||||||
"description": "Links your Blitz and Discord account",
|
|
||||||
"body": {
|
|
||||||
"accounts_linked": "Accounts linked",
|
|
||||||
"no_role_permissions": {
|
|
||||||
"title": "{name} failed to verify",
|
|
||||||
"description": "I don't have the permission to manage roles."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"embed": {
|
|
||||||
"title": "Incorrect account?",
|
|
||||||
"description": "Use the command again and select a username from the search results."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"search_clans": {
|
|
||||||
"name": "search-clans",
|
|
||||||
"description": "Search clans",
|
|
||||||
"options": {
|
|
||||||
"limit": {
|
|
||||||
"name": "limit",
|
|
||||||
"description": "The max number of clan results (default: {limit})"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"title": "Clan search for {search} in region {region}",
|
|
||||||
"no_results": "No clans found"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"search_players": {
|
|
||||||
"name": "search-players",
|
|
||||||
"description": "Search players",
|
|
||||||
"options": {
|
|
||||||
"limit": {
|
|
||||||
"name": "limit",
|
|
||||||
"description": "The max number of player results (default: {limit})"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"title": "Player search for {search} in region {region}",
|
|
||||||
"no_results": "No players found"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rating_leaderboard": {
|
|
||||||
"name": "rating-leaderboard",
|
|
||||||
"description": "Rating battles statistics",
|
|
||||||
"subcommands": {
|
|
||||||
"neighbors": {
|
|
||||||
"name": "neighbors",
|
|
||||||
"description": "Neighboring players on the leaderboard"
|
|
||||||
},
|
|
||||||
"league": {
|
|
||||||
"name": "league",
|
|
||||||
"description": "Top players of a league"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"limit": {
|
|
||||||
"name": "limit",
|
|
||||||
"description": "How many neighbors to display (default: {count})"
|
|
||||||
},
|
|
||||||
"season": {
|
|
||||||
"name": "season",
|
|
||||||
"description": "Season number (default: current)",
|
|
||||||
"choices": {
|
|
||||||
"current": "{season} (current)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"league": {
|
|
||||||
"name": "league",
|
|
||||||
"description": "The league to display"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"top_players": "Top {count} players",
|
|
||||||
"no_participation": "# {player} didn't play rating in season {season}\n\nThis player did not participate in this season or did not get past calibration.",
|
|
||||||
"no_ongoing_season": "# No ongoing season\n\nThere isn't a currently running rating season.",
|
|
||||||
"deleted_player": "Deleted {id}",
|
|
||||||
"neighbors": "Rating neighbors",
|
|
||||||
"more": "+ {count} more"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"today": {
|
|
||||||
"name": "今日",
|
|
||||||
"description": "Today's played tanks and statistics"
|
|
||||||
},
|
|
||||||
"stats": {
|
|
||||||
"name": "",
|
|
||||||
"description": "Quick statistics for a period"
|
|
||||||
},
|
|
||||||
"owned_tanks": {
|
|
||||||
"name": "owned-tanks",
|
|
||||||
"description": "Shows all own tanks in a tier",
|
|
||||||
"body": {
|
|
||||||
"title": "# {name}'s owned tier {tier} tanks\n\n"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"permissions": {
|
|
||||||
"name": "permissions",
|
|
||||||
"description": "Checks wether the bot has the required permissions to function",
|
|
||||||
"body": {
|
|
||||||
"title": "# Permissions\n\n{body}",
|
|
||||||
"view_channels": "View channels: needed to find the message the refresh button was used on",
|
|
||||||
"read_message_history": "Read message history: needed to find the message to refresh",
|
|
||||||
"attach_files": "Attach files: needed to add images to image-based commands",
|
|
||||||
"external_emojis": "External emojis: needed to add national flags and tank class emojis"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ping": {
|
|
||||||
"name": "ping",
|
|
||||||
"description": "Check wether the bot is alive.",
|
|
||||||
"body": {
|
|
||||||
"pong": "Pong 🏓",
|
|
||||||
"pong_with_time": "Pong 🏓 - {time}ms"
|
|
||||||
},
|
|
||||||
"subcommands": {
|
|
||||||
"blitzkit": {
|
|
||||||
"name": "blitzkit",
|
|
||||||
"description": "Ping BlitzKit"
|
|
||||||
},
|
|
||||||
"wotb": {
|
|
||||||
"name": "wotb",
|
|
||||||
"description": "Ping World of Tanks Blitz"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"player_info": {
|
|
||||||
"name": "player-info",
|
|
||||||
"description": "Basic information about a player",
|
|
||||||
"body": {
|
|
||||||
"title": "{name}'s information",
|
|
||||||
"nickname": "Nickname",
|
|
||||||
"battles": "戦闘数",
|
|
||||||
"winrate": "勝率",
|
|
||||||
"account_id": "Account ID",
|
|
||||||
"created": "Created",
|
|
||||||
"last_battle": "Last battle"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rating": {
|
|
||||||
"name": "rating",
|
|
||||||
"description": "Rating player's statistics",
|
|
||||||
"subcommands": {
|
|
||||||
"today": {
|
|
||||||
"name": "今日",
|
|
||||||
"description": "Today's rating statistics"
|
|
||||||
},
|
|
||||||
"season": {
|
|
||||||
"name": "season",
|
|
||||||
"description": "This season's rating statistics"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"subtitle": {
|
|
||||||
"today": "Today's rating statistics",
|
|
||||||
"season": "This season's rating statistics"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"errors": {
|
|
||||||
"no_participation": "# {name} hasn't played rating\n\nThis player hasn't participated in the rating gamemode this season.",
|
|
||||||
"unrecorded_stats": "# Statistics currently unavailable\n\nWargaming may be currently be facing server downtime. If there is an on-going season, statistics should be available withing 24 hours."
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"website": {
|
"website": {
|
||||||
"redirect": {
|
"redirect": {
|
||||||
"title": "301: moved permanently",
|
"title": "301: moved permanently",
|
||||||
@@ -654,6 +194,7 @@
|
|||||||
"title": "Settings",
|
"title": "Settings",
|
||||||
"description": "Change BlitzKit settings",
|
"description": "Change BlitzKit settings",
|
||||||
"dev_mode": "開発者モード",
|
"dev_mode": "開発者モード",
|
||||||
|
"auto_load_models": "Auto-load models",
|
||||||
"language": "言語 / Language"
|
"language": "言語 / Language"
|
||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
@@ -741,14 +282,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home": {
|
"home": {
|
||||||
"pwa": {
|
|
||||||
"title": "Install the BlitzKit App",
|
|
||||||
"new": "NEW",
|
|
||||||
"checking": "Checking compatibility...",
|
|
||||||
"instructions": "Instructions for Apple devices.",
|
|
||||||
"install": "Install",
|
|
||||||
"dismiss": "Dismiss"
|
|
||||||
},
|
|
||||||
"discord": {
|
"discord": {
|
||||||
"join_short": "Join cool people!",
|
"join_short": "Join cool people!",
|
||||||
"join_long": "Join super duper cool people!",
|
"join_long": "Join super duper cool people!",
|
||||||
@@ -880,6 +413,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sandbox": {
|
"sandbox": {
|
||||||
|
"load_model": "Load model",
|
||||||
"poses": {
|
"poses": {
|
||||||
"hull_down": "ハルダウン",
|
"hull_down": "ハルダウン",
|
||||||
"face_hug": "密着",
|
"face_hug": "密着",
|
||||||
@@ -983,8 +517,7 @@
|
|||||||
"title": "構成",
|
"title": "構成",
|
||||||
"equalizer": {
|
"equalizer": {
|
||||||
"title": "Equalizer",
|
"title": "Equalizer",
|
||||||
"equalize": "Equalize",
|
"equalize": "Equalize"
|
||||||
"beta": "Beta"
|
|
||||||
},
|
},
|
||||||
"modules": {
|
"modules": {
|
||||||
"title": "モジュール",
|
"title": "モジュール",
|
||||||
@@ -1040,6 +573,8 @@
|
|||||||
"shellRicochet": "跳弾角度",
|
"shellRicochet": "跳弾角度",
|
||||||
"dpm": "DPM",
|
"dpm": "DPM",
|
||||||
"dpmEffective": "60秒での有効値",
|
"dpmEffective": "60秒での有効値",
|
||||||
|
"peekabooDpm": "Peekaboo DPM",
|
||||||
|
"peekabooDpmInfo": "Damage per minute assuming you only fire after resetting camouflage (or the reload finishes, if it's slower) — at least 10 seconds between shots.",
|
||||||
"shells": "砲弾",
|
"shells": "砲弾",
|
||||||
"mostOptimalShellIndex": "最適な弾数",
|
"mostOptimalShellIndex": "最適な弾数",
|
||||||
"shellReloads": "Reloads",
|
"shellReloads": "Reloads",
|
||||||
@@ -1088,11 +623,12 @@
|
|||||||
"hullTraverseSoftTerrain": "軟弱地",
|
"hullTraverseSoftTerrain": "軟弱地",
|
||||||
"health": "耐久値",
|
"health": "耐久値",
|
||||||
"fireChance": "火災発生率",
|
"fireChance": "火災発生率",
|
||||||
|
"trackRepairTime": "Track repair time",
|
||||||
"viewRange": "視認範囲",
|
"viewRange": "視認範囲",
|
||||||
"camouflageStill": "静止時",
|
"camouflageStill": "静止時",
|
||||||
"camouflageMoving": "移動時",
|
"camouflageMoving": "移動時",
|
||||||
"camouflageShootingStill": "静止時",
|
"camouflageShootingStill": "Shooting while still",
|
||||||
"camouflageShootingMoving": "移動時",
|
"camouflageShootingMoving": "Shooting while moving",
|
||||||
"camouflageCaughtOnFire": "Caught on fire",
|
"camouflageCaughtOnFire": "Caught on fire",
|
||||||
"width": "全幅",
|
"width": "全幅",
|
||||||
"height": "全高",
|
"height": "全高",
|
||||||
|
|||||||
+114
-578
@@ -37,10 +37,11 @@
|
|||||||
"d_1": "Wczoraj"
|
"d_1": "Wczoraj"
|
||||||
},
|
},
|
||||||
"branches": {
|
"branches": {
|
||||||
"local": "dev",
|
"beta": "Beta",
|
||||||
"dev": "beta",
|
"development": "Development",
|
||||||
"opentest": "otwarty test",
|
"opentest": "OpenTest",
|
||||||
"preview": "podgląd"
|
"preview": "Preview",
|
||||||
|
"production": "Production"
|
||||||
},
|
},
|
||||||
"locales": {
|
"locales": {
|
||||||
"en": "Angielski",
|
"en": "Angielski",
|
||||||
@@ -184,467 +185,6 @@
|
|||||||
"cumulative_battle_life_time": "Całkowity czas bitwy"
|
"cumulative_battle_life_time": "Całkowity czas bitwy"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bot": {
|
|
||||||
"common": {
|
|
||||||
"errors": {
|
|
||||||
"clan_not_found": "# Could not find clan\nCouldn't find \"{search}\". Try selecting a clan from the search result.",
|
|
||||||
"player_not_found": "# Could not find user\nI couldn't find user \"{search}\". Try picking an user from the search result, typing in a valid username, or using the `/link` command.",
|
|
||||||
"player_not_linked": "# Użyj `/link` aby zacząć\nNie wiem, kim jesteś, ale możesz mi dziś powiedzieć!",
|
|
||||||
"tank_name_not_found": "# Tank not found\nCould not find tank by the name \"{search}\".",
|
|
||||||
"tank_id_not_found": "# Tank not found\nCould not find tank by the ID \"{search}\". Try typing the name of the tank instead of a number.",
|
|
||||||
"no_tank_stats": "# Brak dostępnych statystyk czołgów\nTen gracz nie ma żadnych dostępnych statystyk. Może to nie być gracz, którego szukasz.",
|
|
||||||
"get_help": "Pomóż serwerowi Discord",
|
|
||||||
"uncaught_error": "# BlitzKit wpadł w błąd!\nPrzepraszamy za to. Możesz [dołączyć do oficjalnego serwera Discord](https://discord.gg/nDt7AjGJQH), aby uzyskać pomoc.",
|
|
||||||
"preview": "# Ta komenda jest w podglądzie\n\nMożesz uzyskać dostęp do tej komendy tylko na [oficjalnym serwerze Discorda](https://discord.gg/nDt7AjGJQH). Polecenie będzie ogólnie dostępne wkrótce.",
|
|
||||||
"query_too_small": "# Twoje wyszukiwanie jest zbyt krótkie\nTwoje wyszukiwanie musi mieć co najmniej 3 znaki.",
|
|
||||||
"query_too_long": "# Twoje wyszukiwanie jest zbyt długie\nTwoje wyszukiwanie musi mieć maksymalnie 100 znaków."
|
|
||||||
},
|
|
||||||
"wn8": {
|
|
||||||
"name": "WN8",
|
|
||||||
"types": {
|
|
||||||
"very_bad": "Bardzo złe",
|
|
||||||
"bad": "Złe",
|
|
||||||
"below_average": "Poniżej średniej",
|
|
||||||
"average": "Średnia",
|
|
||||||
"above_average": "Powyżej średniej",
|
|
||||||
"good": "Dobrze",
|
|
||||||
"very_good": "Bardzo dobrze",
|
|
||||||
"great": "Świetne",
|
|
||||||
"unicum": "Unikalny",
|
|
||||||
"super_unicum": "Bardzo unikalny"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"subcommands": {
|
|
||||||
"today": {
|
|
||||||
"name": "dziś",
|
|
||||||
"description": "Dziś"
|
|
||||||
},
|
|
||||||
"30": {
|
|
||||||
"name": "30",
|
|
||||||
"description": "30 dni"
|
|
||||||
},
|
|
||||||
"60": {
|
|
||||||
"name": "60",
|
|
||||||
"description": "60 dni"
|
|
||||||
},
|
|
||||||
"90": {
|
|
||||||
"name": "90",
|
|
||||||
"description": "90 dni"
|
|
||||||
},
|
|
||||||
"career": {
|
|
||||||
"name": "kariera",
|
|
||||||
"description": "Kariera"
|
|
||||||
},
|
|
||||||
"custom": {
|
|
||||||
"name": "custom",
|
|
||||||
"description": "Zakres niestandardowy",
|
|
||||||
"options": {
|
|
||||||
"start": {
|
|
||||||
"name": "start",
|
|
||||||
"description": "Rozpocznij od dnia dzisiejszego"
|
|
||||||
},
|
|
||||||
"end": {
|
|
||||||
"name": "zakończ",
|
|
||||||
"description": "Zakończ od dnia dzisiejszego"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"clan": {
|
|
||||||
"name": "klan",
|
|
||||||
"description": "Wpisz nazwę klanu lub tag"
|
|
||||||
},
|
|
||||||
"tank": {
|
|
||||||
"name": "czołg",
|
|
||||||
"description": "Czołg do pobrania statystyk"
|
|
||||||
},
|
|
||||||
"username": {
|
|
||||||
"name": "nazwa użytkownika",
|
|
||||||
"description": "Nazwa użytkownika Blitz gracza"
|
|
||||||
},
|
|
||||||
"filters": {
|
|
||||||
"nation": {
|
|
||||||
"name": "naród",
|
|
||||||
"description": "Naród"
|
|
||||||
},
|
|
||||||
"class": {
|
|
||||||
"name": "klasa",
|
|
||||||
"description": "Klasa"
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"name": "rodzaj",
|
|
||||||
"description": "Rodzaj"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"region": {
|
|
||||||
"name": "region",
|
|
||||||
"description": "Region"
|
|
||||||
},
|
|
||||||
"tier": {
|
|
||||||
"name": "poziom",
|
|
||||||
"description": "Poziom",
|
|
||||||
"choices": {
|
|
||||||
"tier": "Tier {tier_1} - {tier_2}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"periods": {
|
|
||||||
"career": "Kariera",
|
|
||||||
"today": "Dzisiaj",
|
|
||||||
"days": "{days} days",
|
|
||||||
"custom": "{day_1} - {day_2} days"
|
|
||||||
},
|
|
||||||
"filters": {
|
|
||||||
"none": "Brak filtrów",
|
|
||||||
"tier": "Tier {tier}"
|
|
||||||
},
|
|
||||||
"no_data": {
|
|
||||||
"battles_in_period": "Brak bitew w tym okresie",
|
|
||||||
"battles_in_season": "Brak bitew w tym sezonie",
|
|
||||||
"players_in_period": "Brak graczy w tym okresie",
|
|
||||||
"tanks_found": "Nie znaleziono czołgu"
|
|
||||||
},
|
|
||||||
"buttons": {
|
|
||||||
"refresh": "Odśwież"
|
|
||||||
},
|
|
||||||
"hero_stats": {
|
|
||||||
"battles": "Bitwy",
|
|
||||||
"winrate": "Zwycięstwa",
|
|
||||||
"damage": "Obrażenia",
|
|
||||||
"damage_ratio": "Współczynnik obrażeń",
|
|
||||||
"tier": "Poziom",
|
|
||||||
"survival": "Przeżycie",
|
|
||||||
"accuracy": "Celność",
|
|
||||||
"kills": "Zabójstwa"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"commands": {
|
|
||||||
"dead": "# Stat Commands Are Dead\n\nThe BlitzKit Discord bot used to use BlitzStars to fetch periodic statistics. BlitzStars has enabled aggressive Cloudflare protections; hence, disabling BlitzKit from using BlitzStar's API. This has impacted the following commands:\n\n- `/stats`\n- `/today`\n- `/breakdown`\n- `/evolution`\n- `/full-stats`\n\nPlease use [Aftermath](<https://amth.one/invite>) as an alternative which is completely independent of BlitzStars. BlitzKit-hosted stat commands will return in the near future.",
|
|
||||||
"replay": {
|
|
||||||
"name": "powtórz",
|
|
||||||
"description": "Wyświetl wyniki powtórki",
|
|
||||||
"options": {
|
|
||||||
"file": {
|
|
||||||
"name": "file",
|
|
||||||
"description": "Replay file"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"research": {
|
|
||||||
"name": "badanie",
|
|
||||||
"description": "Wyświetla wydatki na badanie linii",
|
|
||||||
"options": {
|
|
||||||
"target_tank": {
|
|
||||||
"name": "docelowy czołg",
|
|
||||||
"description": "Ostatni czołg do badań w linii"
|
|
||||||
},
|
|
||||||
"starting_tank": {
|
|
||||||
"name": "czołg rozpoczynający",
|
|
||||||
"description": "Czołg początkowy w linii (automatycznie, jeżeli nie jest dostarczony)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"subtitle": "Rozpocznij badania",
|
|
||||||
"total": "Całkowity",
|
|
||||||
"research": "Research: {cost}",
|
|
||||||
"upgrades": "Upgrades: {cost}",
|
|
||||||
"purchase": "Purchase: {cost}",
|
|
||||||
"equipment": "Equipment: {cost}",
|
|
||||||
"estimation": "# To jest szacunek!\n\nTa lista może zawierać już zbadane czołgi z powodu niedokładnych informacji dostarczanych przez Wargaming. Spróbuj podać `starting-tank` z wiersza podczas używania polecenia, jeśli możesz."
|
|
||||||
},
|
|
||||||
"errors": {
|
|
||||||
"non_tech_tree": "# {tank} is not on the tech tree\n\nYou cannot research a premium/collector tank.",
|
|
||||||
"tier_1": "# {tank} is a tier I\n\nTier I tanks are always unlocked for free for all players.",
|
|
||||||
"already_researched": "# {tank} is already researched\n\nTry providing a `starting-tank` when using the command to view the totals for a line you have already researched.",
|
|
||||||
"start_end_equal": "# {tank} was provided twice\n\nMake sure `starting-tank` and `target-tank` are different.",
|
|
||||||
"tanks_not_on_line": "# {tank_1} and {tank_2} are not on the same line\n\nMake sure `starting-tank` and `target-tank` are on the same tech-tree line.",
|
|
||||||
"unordered": "# {tank_1} higher tiered to {tank_2}\n\nMake sure to provide {tank_2} as the `starting-tank` instead as it is the lower tiered tank."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"about": {
|
|
||||||
"name": "opis",
|
|
||||||
"description": "Wszystkie informacje na temat bota",
|
|
||||||
"subcommands": {
|
|
||||||
"commands": {
|
|
||||||
"name": "komendy",
|
|
||||||
"description": "Lista wszystkich poleceń i ich opisów",
|
|
||||||
"body": "# Polecenia\n\nBlitzKit oferuje następujące polecenia:\n\n"
|
|
||||||
},
|
|
||||||
"embeds": {
|
|
||||||
"name": "osadzenie",
|
|
||||||
"description": "Jak działają osadzone"
|
|
||||||
},
|
|
||||||
"introduction": {
|
|
||||||
"name": "wprowadzenie",
|
|
||||||
"description": "O bocie"
|
|
||||||
},
|
|
||||||
"invite": {
|
|
||||||
"name": "zaproszenie",
|
|
||||||
"description": "Jak zaprosić bota"
|
|
||||||
},
|
|
||||||
"timezones": {
|
|
||||||
"name": "strefy czasowe",
|
|
||||||
"description": "W jaki sposób BlitzKit wnioskuje i wykorzystuje Twoją strefę czasową"
|
|
||||||
},
|
|
||||||
"credits": {
|
|
||||||
"name": "uznania",
|
|
||||||
"description": "Ludzie, którzy pomogli BlitzKit"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"breakdown": {
|
|
||||||
"name": "podział",
|
|
||||||
"description": "Podział przez okres według rozgrywanych czołgów",
|
|
||||||
"body": {
|
|
||||||
"total": "Ogółem",
|
|
||||||
"battles": "Bitwy",
|
|
||||||
"wn8": "WN8",
|
|
||||||
"winrate": "Śr. wygranych",
|
|
||||||
"damage": "Uszkodzenia",
|
|
||||||
"unknown_tank": "Unknown tank {id}"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"debug": {
|
|
||||||
"name": "debugowanie",
|
|
||||||
"description": "Debugowanie informacji o botu",
|
|
||||||
"body": {
|
|
||||||
"title": "# Debug\n\n",
|
|
||||||
"version": "Wersja",
|
|
||||||
"shard": {
|
|
||||||
"label": "Fragment",
|
|
||||||
"default": "domyślne"
|
|
||||||
},
|
|
||||||
"uptime": "Czas działania"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"evolution": {
|
|
||||||
"name": "rozwój",
|
|
||||||
"description": "Rozwój statystyk",
|
|
||||||
"groups": {
|
|
||||||
"player": {
|
|
||||||
"name": "gracz",
|
|
||||||
"description": "Statystyki gracza"
|
|
||||||
},
|
|
||||||
"tank": {
|
|
||||||
"name": "czołg",
|
|
||||||
"description": "Statystyki czołgu"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"inactive": {
|
|
||||||
"name": "inactive",
|
|
||||||
"description": "Lists all inactive players in a clan above a threshold",
|
|
||||||
"options": {
|
|
||||||
"threshold": {
|
|
||||||
"name": "threshold",
|
|
||||||
"description": "The number of days inactive (default: {days} days)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"subtitle": "Inactive for {days}+ days",
|
|
||||||
"listing": "{days} days"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"full_stats": {
|
|
||||||
"name": "full-stats",
|
|
||||||
"description": "Full in-game statistics",
|
|
||||||
"body": {
|
|
||||||
"cards": {
|
|
||||||
"games": {
|
|
||||||
"title": "Games",
|
|
||||||
"winrate": "Śr. wygranych",
|
|
||||||
"battles": "Bitwy",
|
|
||||||
"wins_losses": "Zwycięstwa / porażki"
|
|
||||||
},
|
|
||||||
"efficiency": {
|
|
||||||
"title": "Efficiency",
|
|
||||||
"wn8": "WN8",
|
|
||||||
"survival": "Przeżycie",
|
|
||||||
"accuracy": "Skuteczność"
|
|
||||||
},
|
|
||||||
"lethality": {
|
|
||||||
"title": "Lethality",
|
|
||||||
"average_damage": "Średnie uszkodzenia",
|
|
||||||
"damage_per_tier": "Damage per tier",
|
|
||||||
"damage_ratio": "Współczynnik obrażeń",
|
|
||||||
"average_kills": "Average kills"
|
|
||||||
},
|
|
||||||
"miscellaneous": {
|
|
||||||
"title": "Miscellaneous",
|
|
||||||
"average_tier": "Średni poziom",
|
|
||||||
"average_spots": "Average spots",
|
|
||||||
"average_xp": "Average XP",
|
|
||||||
"kills_to_death_ratio": "Stosunek zabójstw do śmierci"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"link": {
|
|
||||||
"name": "link",
|
|
||||||
"description": "Links your Blitz and Discord account",
|
|
||||||
"body": {
|
|
||||||
"accounts_linked": "Accounts linked",
|
|
||||||
"no_role_permissions": {
|
|
||||||
"title": "{name} failed to verify",
|
|
||||||
"description": "I don't have the permission to manage roles."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"embed": {
|
|
||||||
"title": "Incorrect account?",
|
|
||||||
"description": "Use the command again and select a username from the search results."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"search_clans": {
|
|
||||||
"name": "search-clans",
|
|
||||||
"description": "Search clans",
|
|
||||||
"options": {
|
|
||||||
"limit": {
|
|
||||||
"name": "",
|
|
||||||
"description": "The max number of clan results (default: {limit})"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"title": "Clan search for {search} in region {region}",
|
|
||||||
"no_results": "No clans found"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"search_players": {
|
|
||||||
"name": "search-players",
|
|
||||||
"description": "Search players",
|
|
||||||
"options": {
|
|
||||||
"limit": {
|
|
||||||
"name": "",
|
|
||||||
"description": "The max number of player results (default: {limit})"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"title": "Player search for {search} in region {region}",
|
|
||||||
"no_results": "No players found"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rating_leaderboard": {
|
|
||||||
"name": "rating-leaderboard",
|
|
||||||
"description": "Rating battles statistics",
|
|
||||||
"subcommands": {
|
|
||||||
"neighbors": {
|
|
||||||
"name": "neighbors",
|
|
||||||
"description": "Neighboring players on the leaderboard"
|
|
||||||
},
|
|
||||||
"league": {
|
|
||||||
"name": "league",
|
|
||||||
"description": "Najlepsi gracze ligi"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"limit": {
|
|
||||||
"name": "",
|
|
||||||
"description": "How many neighbors to display (default: {count})"
|
|
||||||
},
|
|
||||||
"season": {
|
|
||||||
"name": "season",
|
|
||||||
"description": "Season number (default: current)",
|
|
||||||
"choices": {
|
|
||||||
"current": "{season} (current)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"league": {
|
|
||||||
"name": "league",
|
|
||||||
"description": "The league to display"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"top_players": "Top {count} players",
|
|
||||||
"no_participation": "# {player} didn't play rating in season {season}\n\nThis player did not participate in this season or did not get past calibration.",
|
|
||||||
"no_ongoing_season": "# No ongoing season\n\nThere isn't a currently running rating season.",
|
|
||||||
"deleted_player": "Deleted {id}",
|
|
||||||
"neighbors": "Rating neighbors",
|
|
||||||
"more": "+ {count} more"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"today": {
|
|
||||||
"name": "dzisiaj",
|
|
||||||
"description": "Dzisiejsze zagrane czołgami i statystyki"
|
|
||||||
},
|
|
||||||
"stats": {
|
|
||||||
"name": "stats",
|
|
||||||
"description": "Szybkie statystyki na okres"
|
|
||||||
},
|
|
||||||
"owned_tanks": {
|
|
||||||
"name": "posiadane czołgi",
|
|
||||||
"description": "Pokazuje wszystkie własne czołgi na poziomie",
|
|
||||||
"body": {
|
|
||||||
"title": "# {name}'s owned tier {tier} tanks\n\n"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"permissions": {
|
|
||||||
"name": "uprawnienia",
|
|
||||||
"description": "Sprawdza, czy bot ma wymagane uprawnienia do funkcji",
|
|
||||||
"body": {
|
|
||||||
"title": "# Permissions\n\n{body}",
|
|
||||||
"view_channels": "Wyświetl kanały: potrzebne do znalezienia wiadomości użyty przycisk odświeżania",
|
|
||||||
"read_message_history": "Przeczytaj historię wiadomości: potrzebne do znalezienia wiadomości do odświeżenia",
|
|
||||||
"attach_files": "Dołącz pliki: potrzebne do dodawania obrazów do komend opartych na obrazach",
|
|
||||||
"external_emojis": "Zewnętrzne emotikony: potrzebne do dodania flagi krajowych i emotikonów klasy zbiorników"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ping": {
|
|
||||||
"name": "ping",
|
|
||||||
"description": "Sprawdź, czy bot żyje.",
|
|
||||||
"body": {
|
|
||||||
"pong": "Pong 🏓",
|
|
||||||
"pong_with_time": "Pong 🏓 - {time}ms"
|
|
||||||
},
|
|
||||||
"subcommands": {
|
|
||||||
"blitzkit": {
|
|
||||||
"name": "blitzkit",
|
|
||||||
"description": "Ping BlitzKit"
|
|
||||||
},
|
|
||||||
"wotb": {
|
|
||||||
"name": "wotb",
|
|
||||||
"description": "Ping World of Tanks Blitz"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"player_info": {
|
|
||||||
"name": "informacje o graczu",
|
|
||||||
"description": "Podstawowe informacje o graczu",
|
|
||||||
"body": {
|
|
||||||
"title": "{name}'s information",
|
|
||||||
"nickname": "Nick",
|
|
||||||
"battles": "Bitwy",
|
|
||||||
"winrate": "Śr. wygranych",
|
|
||||||
"account_id": "ID konta",
|
|
||||||
"created": "Stworzony",
|
|
||||||
"last_battle": "Ostatnia bitwa"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rating": {
|
|
||||||
"name": "klasyfikacja",
|
|
||||||
"description": "Statystyki klasyfikacji gracza",
|
|
||||||
"subcommands": {
|
|
||||||
"today": {
|
|
||||||
"name": "dzisiaj",
|
|
||||||
"description": "Dzisiejsze statystyki klasyfikacji"
|
|
||||||
},
|
|
||||||
"season": {
|
|
||||||
"name": "sezon",
|
|
||||||
"description": "Statystyki klasyfikacji w tym sezonie"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"subtitle": {
|
|
||||||
"today": "Dzisiejsze statystyki klasyfikacji",
|
|
||||||
"season": "Statystyki klasyfikacji w tym sezonie"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"errors": {
|
|
||||||
"no_participation": "# {name} hasn't played rating\n\nThis player hasn't participated in the rating gamemode this season.",
|
|
||||||
"unrecorded_stats": "# Statistics currently unavailable\n\nWargaming may be currently be facing server downtime. If there is an on-going season, statistics should be available withing 24 hours."
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"website": {
|
"website": {
|
||||||
"redirect": {
|
"redirect": {
|
||||||
"title": "301: moved permanently",
|
"title": "301: moved permanently",
|
||||||
@@ -654,6 +194,7 @@
|
|||||||
"title": "Settings",
|
"title": "Settings",
|
||||||
"description": "Change BlitzKit settings",
|
"description": "Change BlitzKit settings",
|
||||||
"dev_mode": "Development mode",
|
"dev_mode": "Development mode",
|
||||||
|
"auto_load_models": "Auto-load models",
|
||||||
"language": "Language"
|
"language": "Language"
|
||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
@@ -679,198 +220,190 @@
|
|||||||
"clear": "Clear",
|
"clear": "Clear",
|
||||||
"tier": "Tier {tier}",
|
"tier": "Tier {tier}",
|
||||||
"passive": "{name} (Passive)",
|
"passive": "{name} (Passive)",
|
||||||
"active": "{name} (Active)",
|
"active": "{name} (Aktywne)",
|
||||||
"no_tanks_found": {
|
"no_tanks_found": {
|
||||||
"body": "No tanks found.",
|
"body": "Nie znaleziono czołgu.",
|
||||||
"search_again": "",
|
"search_again": "",
|
||||||
"clear_filters": "Try clearing filters."
|
"clear_filters": "Try clearing filters."
|
||||||
},
|
},
|
||||||
"sort": {
|
"sort": {
|
||||||
"meta.none": "none",
|
"meta.none": "brak",
|
||||||
"survivability.health": "health",
|
"survivability.health": "punkty.życia",
|
||||||
"survivability.viewRange": "view range",
|
"survivability.viewRange": "zasięg widzenia",
|
||||||
"survivability.camouflageStill": "camouflage still",
|
"survivability.camouflageStill": "kamuflaż w bezruchu",
|
||||||
"survivability.camouflageMoving": "camouflage moving",
|
"survivability.camouflageMoving": "kamuflaż w trakcie ruchu",
|
||||||
"survivability.camouflageShooting": "camouflage shooting",
|
"survivability.camouflageShooting": "kamuflaż podczas strzału",
|
||||||
"survivability.volume": "volume",
|
"survivability.volume": "wartość",
|
||||||
"survivability.length": "length",
|
"survivability.length": "długość",
|
||||||
"fire.dpm": "standard DPM",
|
"fire.dpm": "DPM pocisków podstawowych",
|
||||||
"fire.dpmPremium": "premium DPM",
|
"fire.dpmPremium": "DPM pocisków premium",
|
||||||
"fire.reload": "reload",
|
"fire.reload": "przeładowanie",
|
||||||
"fire.caliber": "caliber",
|
"fire.caliber": "kaliber",
|
||||||
"fire.standardPenetration": "standard penetration",
|
"fire.standardPenetration": "Penetracja pocisków standardowych",
|
||||||
"fire.premiumPenetration": "premium penetration",
|
"fire.premiumPenetration": "Penetracja pocisków premium",
|
||||||
"fire.tertiaryPenetration": "tertiary penetration",
|
"fire.tertiaryPenetration": "tertiary penetration",
|
||||||
"fire.damage": "damage",
|
"fire.damage": "uszkodzenia",
|
||||||
"fire.moduleDamage": "module damage",
|
"fire.moduleDamage": "Uszkodzenia modułów",
|
||||||
"fire.shellVelocity": "shell velocity",
|
"fire.shellVelocity": "Prędkość pocisku",
|
||||||
"fire.shellRange": "shell range",
|
"fire.shellRange": "Zasięg pocisku",
|
||||||
"fire.shellCapacity": "shell capacity",
|
"fire.shellCapacity": "Maksymalna ilość pocisków",
|
||||||
"fire.aimTime": "aim time",
|
"fire.aimTime": "Czas celowania",
|
||||||
"fire.dispersionStill": "dispersion still",
|
"fire.dispersionStill": "dispersion still",
|
||||||
"fire.dispersionMoving": "dispersion moving",
|
"fire.dispersionMoving": "dispersion moving",
|
||||||
"fire.gunDepression": "gun depression",
|
"fire.gunDepression": "Depresja działa",
|
||||||
"fire.gunElevation": "gun elevation",
|
"fire.gunElevation": "Elewacja działa",
|
||||||
"maneuverability.forwardsSpeed": "forwards speed",
|
"maneuverability.forwardsSpeed": "Maksymalna prędkość do przodu",
|
||||||
"maneuverability.backwardsSpeed": "backwards speed",
|
"maneuverability.backwardsSpeed": "Maksymalna prędkość do tyłu",
|
||||||
"maneuverability.power": "power",
|
"maneuverability.power": "Moc silnika",
|
||||||
"maneuverability.powerToWeight": "power to weight",
|
"maneuverability.powerToWeight": "Proporcja mocy do masy",
|
||||||
"maneuverability.weight": "weight",
|
"maneuverability.weight": "Masa czołgu",
|
||||||
"maneuverability.traverseSpeed": "traverse speed"
|
"maneuverability.traverseSpeed": "traverse speed"
|
||||||
},
|
},
|
||||||
"sort_dropdown": {
|
"sort_dropdown": {
|
||||||
"label": "Sort",
|
"label": "Filtruj",
|
||||||
"groups": {
|
"groups": {
|
||||||
"sort": {
|
"sort": {
|
||||||
"no_sort": "No sort",
|
"no_sort": "Brak filtrów",
|
||||||
"label": "Sort by",
|
"label": "Filtruj według",
|
||||||
"fire": "Fire",
|
"fire": "Siła ognia",
|
||||||
"maneuverability": "Maneuverability",
|
"maneuverability": "Mobilność ",
|
||||||
"survivability": "Survivability"
|
"survivability": "Przetrwanie"
|
||||||
},
|
},
|
||||||
"direction": {
|
"direction": {
|
||||||
"label": "Direction",
|
"label": "Direction",
|
||||||
"ascending": "Ascending",
|
"ascending": "Rosnąco",
|
||||||
"descending": "Descending"
|
"descending": "Malejąco"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"warnings": {
|
"warnings": {
|
||||||
"test": "Tanks in testing are subject to change and may not represent the final product."
|
"test": "Wartości statystyk czołgów w fazie testowej mogą ulec zmianie."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home": {
|
"home": {
|
||||||
"pwa": {
|
|
||||||
"title": "Install the BlitzKit App",
|
|
||||||
"new": "NEW",
|
|
||||||
"checking": "Checking compatibility...",
|
|
||||||
"instructions": "Instructions for Apple devices.",
|
|
||||||
"install": "Install",
|
|
||||||
"dismiss": "Dismiss"
|
|
||||||
},
|
|
||||||
"discord": {
|
"discord": {
|
||||||
"join_short": "Join cool people!",
|
"join_short": "Dołącz do elity!",
|
||||||
"join_long": "Join super duper cool people!",
|
"join_long": "Dołącz do topowej elity!",
|
||||||
"action": "Discord"
|
"action": "Discord"
|
||||||
},
|
},
|
||||||
"hero": {
|
"hero": {
|
||||||
"credit": "By {name} ❤️"
|
"credit": "Według {name} ♥️"
|
||||||
},
|
},
|
||||||
"hot_tanks": {
|
"hot_tanks": {
|
||||||
"title": "Popular tanks",
|
"title": "Popularne czołgi",
|
||||||
"subtitle": "Last {days} days"
|
"subtitle": "Ostatnie {days} dni"
|
||||||
},
|
},
|
||||||
"other_projects": {
|
"other_projects": {
|
||||||
"title": "Other cool projects"
|
"title": "Inne epickie projekty"
|
||||||
},
|
},
|
||||||
"help_translate": "Please help translate {name} to {language}!",
|
"help_translate": "Proszę pomóż przetłumaczyć {name} na {language}!",
|
||||||
"seo_description": "Tools for everything World of Tanks Blitz"
|
"seo_description": "Narzędzia do wszystkiego World of Tanks Blitz"
|
||||||
},
|
},
|
||||||
"docs": {
|
"docs": {
|
||||||
"patches": {
|
"patches": {
|
||||||
"name": "BlitzKit Changelogs",
|
"name": "Zapisy zmian BlitzKit",
|
||||||
"seo_description": "Changelogs for BlitzKit Discord bot and website"
|
"seo_description": "Zapisy zmian BlitzKit: Discord bot i strona internetowa"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tools": {
|
"tools": {
|
||||||
"playlist": {
|
"playlist": {
|
||||||
"reset": "Reset",
|
"reset": "Resetuj",
|
||||||
"shuffle": "Shuffle",
|
"shuffle": "Wymieszaj",
|
||||||
"remove": "Remove played",
|
"remove": "Usuń czołgi, którymi grałem",
|
||||||
"tracking": "BlitzKit is tracking your battles",
|
"tracking": "BlitzKit zapisuje twoje bitwy",
|
||||||
"sort": {
|
"sort": {
|
||||||
"button": "Sort by",
|
"button": "Filtruj według",
|
||||||
"last_played": "Last played",
|
"last_played": "Ostatnio używane czołgi",
|
||||||
"least_played": "Least played"
|
"least_played": "Najmniej używane czołgi"
|
||||||
},
|
},
|
||||||
"table": {
|
"table": {
|
||||||
"index": "#",
|
"index": "#",
|
||||||
"never": "Never",
|
"never": "Nigdy",
|
||||||
"tank": "Tank",
|
"tank": "Czołg",
|
||||||
"last_played": "Last played",
|
"last_played": "Ostatnio używane czołgi",
|
||||||
"battles": "Career battles",
|
"battles": "Wszystkie bitwy na koncie",
|
||||||
"unrecorded": "--",
|
"unrecorded": "--",
|
||||||
"wins": "Zwycięstwa"
|
"wins": "Zwycięstwa"
|
||||||
},
|
},
|
||||||
"large_warning": {
|
"large_warning": {
|
||||||
"title": "That's a lot of tanks!",
|
"title": "To jest mnóstwo czołgów!",
|
||||||
"description": "Are you sure you want to create a playlist of {count} tanks? That's {time} hours of gameplay at 50% winrate!",
|
"description": "Czy na pewno chcesz stworzyć playlistę złożoną z {count} czołgów? To {time} godzin gry przy 50% zwycięstw!",
|
||||||
"cancel": "Cancel",
|
"cancel": "Anuluj",
|
||||||
"proceed": "Proceed"
|
"proceed": "Zatwierdź"
|
||||||
},
|
},
|
||||||
"generate": "Generate playlist",
|
"generate": "Wygeneruj playlistę",
|
||||||
"name": "Playlist",
|
"name": "Playlista",
|
||||||
"description": "Tank playlist generator",
|
"description": "Generator playlisty czołgów",
|
||||||
"seo_description": "Don't know what to play in World of Tanks Blitz? Use BlitzKit Playlist to get suggestions!",
|
"seo_description": "Nie wiesz, którym czołgiem grać w World of Tanks Blitz? Użyj funkcji playlisty BlitzKit, i ułóż własną listę czołgów do gry!",
|
||||||
"button": "Generate",
|
"button": "Wygeneruj",
|
||||||
"pool_size": "{count} possible tanks"
|
"pool_size": "{count} możliwe czołgi"
|
||||||
},
|
},
|
||||||
"mixer": {
|
"mixer": {
|
||||||
"name": "Mixer",
|
"name": "Mikser",
|
||||||
"button": "Mix and match",
|
"button": "Mix and match",
|
||||||
"description": "Mix tank modules",
|
"description": "Mix tank modules",
|
||||||
"seo_description": "Mix and match hulls, turrets, and guns of tanks in World of Tanks Blitz",
|
"seo_description": "Mix and match hulls, turrets, and guns of tanks in World of Tanks Blitz",
|
||||||
"screenshot": "Screenshot",
|
"screenshot": "Zrzut ekranu",
|
||||||
"randomize": "Randomize"
|
"randomize": "Wymieszaj"
|
||||||
},
|
},
|
||||||
"guess": {
|
"guess": {
|
||||||
"name": "Guess",
|
"name": "Zgadnij",
|
||||||
"button": "What could it be?",
|
"button": "What could it be?",
|
||||||
"description": "Silhouette mini-game",
|
"description": "Silhouette mini-game",
|
||||||
"seo_description": "Play a tank guessing game with a silhouette in World of Tanks Blitz",
|
"seo_description": "Play a tank guessing game with a silhouette in World of Tanks Blitz",
|
||||||
"search": {
|
"search": {
|
||||||
"placeholder": "Type to guess...",
|
"placeholder": "Wpisz odpowiedź",
|
||||||
"skip": "Skip",
|
"skip": "Pomiń",
|
||||||
"guess": "Guess",
|
"guess": "Zgaduję",
|
||||||
"next": "Next",
|
"next": "Następny",
|
||||||
"no_results": "Brak wyników"
|
"no_results": "Brak wyników"
|
||||||
},
|
},
|
||||||
"stats": "{correct} / {total} correct, {streak} streak",
|
"stats": "{correct} / {total} correct, {streak} streak",
|
||||||
"help": {
|
"help": {
|
||||||
"title": "Partially reveal tank?",
|
"title": "Odsłonić część czołgu?",
|
||||||
"description": "Reveals the tank without showing the name. This round will be considered incorrect and break your streak!",
|
"description": "Reveals the tank without showing the name. This round will be considered incorrect and break your streak!",
|
||||||
"cancel": "Cancel",
|
"cancel": "Anuluj",
|
||||||
"reveal": "Reveal"
|
"reveal": "Pokaż"
|
||||||
},
|
},
|
||||||
"clear": "Clear",
|
"clear": "Wyczyść",
|
||||||
"select_all": "Select all",
|
"select_all": "Zaznacz wszystko ",
|
||||||
"tier": "Tier {tier}"
|
"tier": "Poziom czołgu {tier}"
|
||||||
},
|
},
|
||||||
"tankopedia": {
|
"tankopedia": {
|
||||||
"search": "Search a stat...",
|
"search": "Wyszukaj statystykę...",
|
||||||
"name": "Tankopedia",
|
"name": "Tankopedia",
|
||||||
"button": "Find tanks",
|
"button": "Znajdź czołg",
|
||||||
"description": "Blitz tank encyclopedia",
|
"description": "Encyklopedia czołgów w WoTb",
|
||||||
"seo_description": "Statistics, armor, and more for all tanks in World of Tanks Blitz",
|
"seo_description": "Statistics, armor, and more for all tanks in World of Tanks Blitz",
|
||||||
"tank_seo_title": "{name} - Tier {tier} {nationality} {class} | {website} Tankopedia | World of Tanks Blitz (WoTB)",
|
"tank_seo_title": "{name} - Tier {tier} {nationality} {class} | {website} Tankopedia | World of Tanks Blitz (WoTB)",
|
||||||
"tank_seo_description": "{name} armor, statistics, equipment, provisions, and more. {dpm} DPM, {alpha}hp alpha, {penetration}mm penetration, {speed}kph top speed, {health}hp health.",
|
"tank_seo_description": "{name} armor, statistics, equipment, provisions, and more. {dpm} DPM, {alpha}hp alpha, {penetration}mm penetration, {speed}kph top speed, {health}hp health.",
|
||||||
"visualizers": {
|
"visualizers": {
|
||||||
"reload": {
|
"reload": {
|
||||||
"skip": "Skip"
|
"skip": "Pomiń"
|
||||||
},
|
},
|
||||||
"assault": {
|
"assault": {
|
||||||
"title": "Assault shells"
|
"title": "Assault shells"
|
||||||
},
|
},
|
||||||
"rotator": {
|
"rotator": {
|
||||||
"hull": "Hull",
|
"hull": "Kadłub",
|
||||||
"turret": "Turret",
|
"turret": "Wieża",
|
||||||
"hard": "Hard",
|
"hard": "Utwardzony",
|
||||||
"medium": "Średni",
|
"medium": "Średni",
|
||||||
"soft": "Soft",
|
"soft": "Miękki",
|
||||||
"effective": "Effective"
|
"effective": "Rzeczywisty"
|
||||||
},
|
},
|
||||||
"ricochet": {
|
"ricochet": {
|
||||||
"angle": "Angle",
|
"angle": "Kąt",
|
||||||
"normalization": "Normalization",
|
"normalization": "Normalization",
|
||||||
"effective_angle": "Effective angle",
|
"effective_angle": "Rzeczywisty kąt nachylenia pancerza",
|
||||||
"armor": "Armor",
|
"armor": "Pancerz",
|
||||||
"no_ricochet": "Explosive shells don't ricochet"
|
"no_ricochet": "Pociski odłamkowe nie rykoszetują."
|
||||||
},
|
},
|
||||||
"view_range": {
|
"view_range": {
|
||||||
"camo": "Camo",
|
"camo": "Kamuflaż",
|
||||||
"ghost_factory": "Ghost Factory",
|
"ghost_factory": "Fabryka duchów",
|
||||||
"dead_rail": "Dead Rail"
|
"dead_rail": "Martwy tor"
|
||||||
},
|
},
|
||||||
"flexibility": {
|
"flexibility": {
|
||||||
"yaw": "Yaw",
|
"yaw": "Yaw",
|
||||||
@@ -880,6 +413,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sandbox": {
|
"sandbox": {
|
||||||
|
"load_model": "Load model",
|
||||||
"poses": {
|
"poses": {
|
||||||
"hull_down": "Hull down",
|
"hull_down": "Hull down",
|
||||||
"face_hug": "Face hug",
|
"face_hug": "Face hug",
|
||||||
@@ -983,8 +517,7 @@
|
|||||||
"title": "Configuration",
|
"title": "Configuration",
|
||||||
"equalizer": {
|
"equalizer": {
|
||||||
"title": "Equalizer",
|
"title": "Equalizer",
|
||||||
"equalize": "Equalize",
|
"equalize": "Equalize"
|
||||||
"beta": "Beta"
|
|
||||||
},
|
},
|
||||||
"modules": {
|
"modules": {
|
||||||
"title": "Modules",
|
"title": "Modules",
|
||||||
@@ -1040,6 +573,8 @@
|
|||||||
"shellRicochet": "Ricochet",
|
"shellRicochet": "Ricochet",
|
||||||
"dpm": "DPM",
|
"dpm": "DPM",
|
||||||
"dpmEffective": "Effective at 60s",
|
"dpmEffective": "Effective at 60s",
|
||||||
|
"peekabooDpm": "Peekaboo DPM",
|
||||||
|
"peekabooDpmInfo": "Damage per minute assuming you only fire after resetting camouflage (or the reload finishes, if it's slower) — at least 10 seconds between shots.",
|
||||||
"shells": "Shells",
|
"shells": "Shells",
|
||||||
"mostOptimalShellIndex": "Most optimal shell",
|
"mostOptimalShellIndex": "Most optimal shell",
|
||||||
"shellReloads": "Reloads",
|
"shellReloads": "Reloads",
|
||||||
@@ -1088,11 +623,12 @@
|
|||||||
"hullTraverseSoftTerrain": "Soft",
|
"hullTraverseSoftTerrain": "Soft",
|
||||||
"health": "Health",
|
"health": "Health",
|
||||||
"fireChance": "Fire chance",
|
"fireChance": "Fire chance",
|
||||||
|
"trackRepairTime": "Track repair time",
|
||||||
"viewRange": "View range",
|
"viewRange": "View range",
|
||||||
"camouflageStill": "Still",
|
"camouflageStill": "Still",
|
||||||
"camouflageMoving": "Moving",
|
"camouflageMoving": "Moving",
|
||||||
"camouflageShootingStill": "Still",
|
"camouflageShootingStill": "Shooting while still",
|
||||||
"camouflageShootingMoving": "Moving",
|
"camouflageShootingMoving": "Shooting while moving",
|
||||||
"camouflageCaughtOnFire": "Caught on fire",
|
"camouflageCaughtOnFire": "Caught on fire",
|
||||||
"width": "Width",
|
"width": "Width",
|
||||||
"height": "Height",
|
"height": "Height",
|
||||||
@@ -1120,10 +656,10 @@
|
|||||||
"loader": "Loader"
|
"loader": "Loader"
|
||||||
},
|
},
|
||||||
"maneuverability": {
|
"maneuverability": {
|
||||||
"title": "Maneuverability"
|
"title": "Mobilność "
|
||||||
},
|
},
|
||||||
"survivability": {
|
"survivability": {
|
||||||
"title": "Survivability"
|
"title": "Przetrwanie"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compare": {
|
"compare": {
|
||||||
|
|||||||
+17
-481
@@ -37,10 +37,11 @@
|
|||||||
"d_1": "Ontem"
|
"d_1": "Ontem"
|
||||||
},
|
},
|
||||||
"branches": {
|
"branches": {
|
||||||
"local": "dev",
|
"beta": "Beta",
|
||||||
"dev": "beta",
|
"development": "Development",
|
||||||
"opentest": "testeaberto",
|
"opentest": "TesteAberto",
|
||||||
"preview": "visualização"
|
"preview": "Preview",
|
||||||
|
"production": "Produção"
|
||||||
},
|
},
|
||||||
"locales": {
|
"locales": {
|
||||||
"en": "Inglês",
|
"en": "Inglês",
|
||||||
@@ -184,476 +185,16 @@
|
|||||||
"cumulative_battle_life_time": "Tempo de batalha total"
|
"cumulative_battle_life_time": "Tempo de batalha total"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bot": {
|
|
||||||
"common": {
|
|
||||||
"errors": {
|
|
||||||
"clan_not_found": "# Could not find clan\nCouldn't find \"{search}\". Try selecting a clan from the search result.",
|
|
||||||
"player_not_found": "# Could not find user\nI couldn't find user \"{search}\". Try picking an user from the search result, typing in a valid username, or using the `/link` command.",
|
|
||||||
"player_not_linked": "Digite \"/link\" para começar.\nEu posso não saber quem é você, mas pode-me dizer hoje sobre isso!",
|
|
||||||
"tank_name_not_found": "# Tank not found\nCould not find tank by the name \"{search}\".",
|
|
||||||
"tank_id_not_found": "# Tank not found\nCould not find tank by the ID \"{search}\". Try typing the name of the tank instead of a number.",
|
|
||||||
"no_tank_stats": "# Nenhuma estatística de tanques disponível\nEsse jogador não tem as suas estatísticas disponíveis. Talvez esse pode não ser o jogador que procura.",
|
|
||||||
"get_help": "Servidor de Ajuda no Discord",
|
|
||||||
"uncaught_error": "# O BlitzKit apresentou um erro!\nSentimos muito por isso. Sinta-se a vontade para [entrar no servidor oficial no Discord]\n(https://discord.gg/nDt7AjGJQH) para conseguir ajuda.",
|
|
||||||
"preview": "# Este comando está na pré-visualização\n\nVocê só pode acessar este comando no [servidor oficial do Discord](https://discord.gg/nDt7AjGJQH). O comando estará geralmente disponível em breve.",
|
|
||||||
"query_too_small": "# Sua pesquisa é muito curta\nSua pesquisa deve ter pelo menos 3 caracteres.",
|
|
||||||
"query_too_long": "# Sua pesquisa é muito longa\nSua pesquisa deve ter no máximo 100 caracteres."
|
|
||||||
},
|
|
||||||
"wn8": {
|
|
||||||
"name": "WN8",
|
|
||||||
"types": {
|
|
||||||
"very_bad": "Muito ruim",
|
|
||||||
"bad": "Ruim",
|
|
||||||
"below_average": "Abaixo da média",
|
|
||||||
"average": "Na média",
|
|
||||||
"above_average": "Acima da média",
|
|
||||||
"good": "Bom",
|
|
||||||
"very_good": "Muito bom",
|
|
||||||
"great": "Ótimo",
|
|
||||||
"unicum": "Unicum",
|
|
||||||
"super_unicum": "Super unicum"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"subcommands": {
|
|
||||||
"today": {
|
|
||||||
"name": "hoje",
|
|
||||||
"description": "Hoje"
|
|
||||||
},
|
|
||||||
"30": {
|
|
||||||
"name": "30",
|
|
||||||
"description": "30 dias"
|
|
||||||
},
|
|
||||||
"60": {
|
|
||||||
"name": "60",
|
|
||||||
"description": "60 dias"
|
|
||||||
},
|
|
||||||
"90": {
|
|
||||||
"name": "90",
|
|
||||||
"description": "90 dias"
|
|
||||||
},
|
|
||||||
"career": {
|
|
||||||
"name": "carreira",
|
|
||||||
"description": "Carreira"
|
|
||||||
},
|
|
||||||
"custom": {
|
|
||||||
"name": "personalizado",
|
|
||||||
"description": "Intervalo personalizado",
|
|
||||||
"options": {
|
|
||||||
"start": {
|
|
||||||
"name": "iniciar",
|
|
||||||
"description": "Iniciar em número de dias atrás a partir de hoje"
|
|
||||||
},
|
|
||||||
"end": {
|
|
||||||
"name": "terminar",
|
|
||||||
"description": "Termina em número de dias atrás a partir de hoje"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"clan": {
|
|
||||||
"name": "clã",
|
|
||||||
"description": "O nome ou tag do clã"
|
|
||||||
},
|
|
||||||
"tank": {
|
|
||||||
"name": "tanque",
|
|
||||||
"description": "O tanque para obter estatísticas para"
|
|
||||||
},
|
|
||||||
"username": {
|
|
||||||
"name": "nome de usuário",
|
|
||||||
"description": "O nome de usuário Blitz do jogador"
|
|
||||||
},
|
|
||||||
"filters": {
|
|
||||||
"nation": {
|
|
||||||
"name": "nação",
|
|
||||||
"description": "Nação"
|
|
||||||
},
|
|
||||||
"class": {
|
|
||||||
"name": "classe",
|
|
||||||
"description": "Classe"
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"name": "tipo",
|
|
||||||
"description": "Tipo"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"region": {
|
|
||||||
"name": "região",
|
|
||||||
"description": "Região"
|
|
||||||
},
|
|
||||||
"tier": {
|
|
||||||
"name": "nível",
|
|
||||||
"description": "Nível",
|
|
||||||
"choices": {
|
|
||||||
"tier": "Tier {tier_1} - {tier_2}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"periods": {
|
|
||||||
"career": "Carreira",
|
|
||||||
"today": "Hoje",
|
|
||||||
"days": "{days} days",
|
|
||||||
"custom": "{day_1} - {day_2} days"
|
|
||||||
},
|
|
||||||
"filters": {
|
|
||||||
"none": "Sem filtros",
|
|
||||||
"tier": "Tier {tier}"
|
|
||||||
},
|
|
||||||
"no_data": {
|
|
||||||
"battles_in_period": "Não há batalhas jogadas neste período",
|
|
||||||
"battles_in_season": "Não há batalhas jogadas nesta temporada",
|
|
||||||
"players_in_period": "Nenhum jogador neste período",
|
|
||||||
"tanks_found": "Nenhum tanque encontrado"
|
|
||||||
},
|
|
||||||
"buttons": {
|
|
||||||
"refresh": "Atualizar"
|
|
||||||
},
|
|
||||||
"hero_stats": {
|
|
||||||
"battles": "Batalhas",
|
|
||||||
"winrate": "Taxa de vitória",
|
|
||||||
"damage": "Dano",
|
|
||||||
"damage_ratio": "Razão entre dano dado e recebido",
|
|
||||||
"tier": "Nível",
|
|
||||||
"survival": "Sobrevivência",
|
|
||||||
"accuracy": "Precisão",
|
|
||||||
"kills": "Abates"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"commands": {
|
|
||||||
"dead": "# Stat Commands Are Dead\n\nThe BlitzKit Discord bot used to use BlitzStars to fetch periodic statistics. BlitzStars has enabled aggressive Cloudflare protections; hence, disabling BlitzKit from using BlitzStar's API. This has impacted the following commands:\n\n- `/stats`\n- `/today`\n- `/breakdown`\n- `/evolution`\n- `/full-stats`\n\nPlease use [Aftermath](<https://amth.one/invite>) as an alternative which is completely independent of BlitzStars. BlitzKit-hosted stat commands will return in the near future.",
|
|
||||||
"replay": {
|
|
||||||
"name": "replay",
|
|
||||||
"description": "Exibir resultados de replays",
|
|
||||||
"options": {
|
|
||||||
"file": {
|
|
||||||
"name": "file",
|
|
||||||
"description": "Replay file"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"research": {
|
|
||||||
"name": "pesquisa",
|
|
||||||
"description": "Liste as despesas na pesquisa de uma linha",
|
|
||||||
"options": {
|
|
||||||
"target_tank": {
|
|
||||||
"name": "tanque-alvo",
|
|
||||||
"description": "O último tanque para pesquisar na linha"
|
|
||||||
},
|
|
||||||
"starting_tank": {
|
|
||||||
"name": "tanque-inicial",
|
|
||||||
"description": "O tanque inicial na linha (inferido automaticamente se não fornecido)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"subtitle": "Pesquisa",
|
|
||||||
"total": "Total",
|
|
||||||
"research": "Research: {cost}",
|
|
||||||
"upgrades": "Upgrades: {cost}",
|
|
||||||
"purchase": "Purchase: {cost}",
|
|
||||||
"equipment": "Equipment: {cost}",
|
|
||||||
"estimation": "# Esta é uma estimativa!\n\nEsta lista pode incluir tanques já pesquisados devido à informação imprecisa que a Wargaming fornece. Tente fornecer um `tanque-inicial` da linha ao usar o comando, se puder."
|
|
||||||
},
|
|
||||||
"errors": {
|
|
||||||
"non_tech_tree": "# {tank} is not on the tech tree\n\nYou cannot research a premium/collector tank.",
|
|
||||||
"tier_1": "# {tank} is a tier I\n\nTier I tanks are always unlocked for free for all players.",
|
|
||||||
"already_researched": "# {tank} is already researched\n\nTry providing a `starting-tank` when using the command to view the totals for a line you have already researched.",
|
|
||||||
"start_end_equal": "# {tank} was provided twice\n\nMake sure `starting-tank` and `target-tank` are different.",
|
|
||||||
"tanks_not_on_line": "# {tank_1} and {tank_2} are not on the same line\n\nMake sure `starting-tank` and `target-tank` are on the same tech-tree line.",
|
|
||||||
"unordered": "# {tank_1} higher tiered to {tank_2}\n\nMake sure to provide {tank_2} as the `starting-tank` instead as it is the lower tiered tank."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"about": {
|
|
||||||
"name": "sobre",
|
|
||||||
"description": "Todas as informações que você precisa sobre o bot",
|
|
||||||
"subcommands": {
|
|
||||||
"commands": {
|
|
||||||
"name": "comandos",
|
|
||||||
"description": "Lista de todos os comandos e suas descrições",
|
|
||||||
"body": "# Comandos\n\nBlitzKit oferece os seguintes comandos:\n"
|
|
||||||
},
|
|
||||||
"embeds": {
|
|
||||||
"name": "incorporar",
|
|
||||||
"description": "Como incorporações funcionam"
|
|
||||||
},
|
|
||||||
"introduction": {
|
|
||||||
"name": "Introdução",
|
|
||||||
"description": "Sobre o bot"
|
|
||||||
},
|
|
||||||
"invite": {
|
|
||||||
"name": "convite",
|
|
||||||
"description": "Como convidar o bot"
|
|
||||||
},
|
|
||||||
"timezones": {
|
|
||||||
"name": "fusos horários",
|
|
||||||
"description": "Como o BlitzKit inferi e usa seu fuso horário"
|
|
||||||
},
|
|
||||||
"credits": {
|
|
||||||
"name": "créditos",
|
|
||||||
"description": "Pessoas que ajudaram BlitzKit"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"breakdown": {
|
|
||||||
"name": "divisão",
|
|
||||||
"description": "Análise de um período por tanques jogados",
|
|
||||||
"body": {
|
|
||||||
"total": "Total",
|
|
||||||
"battles": "Batalhas",
|
|
||||||
"wn8": "WN8",
|
|
||||||
"winrate": "Taxa de vitória",
|
|
||||||
"damage": "Dano",
|
|
||||||
"unknown_tank": "Unknown tank {id}"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"debug": {
|
|
||||||
"name": "depuração",
|
|
||||||
"description": "Depurar informações sobre o bot",
|
|
||||||
"body": {
|
|
||||||
"title": "# Depuração\n",
|
|
||||||
"version": "Versão",
|
|
||||||
"shard": {
|
|
||||||
"label": "Fragmento",
|
|
||||||
"default": "padrão"
|
|
||||||
},
|
|
||||||
"uptime": "Tempo de atividade"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"evolution": {
|
|
||||||
"name": "evolução",
|
|
||||||
"description": "Evolução das estatísticas",
|
|
||||||
"groups": {
|
|
||||||
"player": {
|
|
||||||
"name": "jogador",
|
|
||||||
"description": "Estatísticas do Jogador"
|
|
||||||
},
|
|
||||||
"tank": {
|
|
||||||
"name": "tanque",
|
|
||||||
"description": "Estatísticas do tanque"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"inactive": {
|
|
||||||
"name": "inativo",
|
|
||||||
"description": "Liste todos os jogadores inativos em um clã acima de um limite",
|
|
||||||
"options": {
|
|
||||||
"threshold": {
|
|
||||||
"name": "limite",
|
|
||||||
"description": "The number of days inactive (default: {days} days)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"subtitle": "Inactive for {days}+ days",
|
|
||||||
"listing": "{days} days"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"full_stats": {
|
|
||||||
"name": "estatísticas-completas",
|
|
||||||
"description": "Estatísticas completas dentro do jogo",
|
|
||||||
"body": {
|
|
||||||
"cards": {
|
|
||||||
"games": {
|
|
||||||
"title": "Jogos",
|
|
||||||
"winrate": "Taxa de vitória",
|
|
||||||
"battles": "Batalhas",
|
|
||||||
"wins_losses": "Vitórias / Derrotas"
|
|
||||||
},
|
|
||||||
"efficiency": {
|
|
||||||
"title": "Eficiência",
|
|
||||||
"wn8": "WN8",
|
|
||||||
"survival": "Sobrevivência",
|
|
||||||
"accuracy": "Precisão"
|
|
||||||
},
|
|
||||||
"lethality": {
|
|
||||||
"title": "Letalidade",
|
|
||||||
"average_damage": "Dano médio",
|
|
||||||
"damage_per_tier": "Dano por nível",
|
|
||||||
"damage_ratio": "Razão entre dano dado e recebido",
|
|
||||||
"average_kills": "Média de abates"
|
|
||||||
},
|
|
||||||
"miscellaneous": {
|
|
||||||
"title": "Diversos",
|
|
||||||
"average_tier": "Nível médio",
|
|
||||||
"average_spots": "Média de detecções",
|
|
||||||
"average_xp": "EXP Médio",
|
|
||||||
"kills_to_death_ratio": "Razão entre abates e mortes"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"link": {
|
|
||||||
"name": "link",
|
|
||||||
"description": "Conecte sua conta Blitz e Discord",
|
|
||||||
"body": {
|
|
||||||
"accounts_linked": "Contas vinculadas",
|
|
||||||
"no_role_permissions": {
|
|
||||||
"title": "{name} failed to verify",
|
|
||||||
"description": "Eu não tenho permissão para gerenciar funções."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"embed": {
|
|
||||||
"title": "Conta incorreta?",
|
|
||||||
"description": "Use o comando novamente e selecione um nome de usuário dos resultados da pesquisa."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"search_clans": {
|
|
||||||
"name": "procurar-clãs",
|
|
||||||
"description": "Procurar clãs",
|
|
||||||
"options": {
|
|
||||||
"limit": {
|
|
||||||
"name": "limite",
|
|
||||||
"description": "The max number of clan results (default: {limit})"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"title": "Clan search for {search} in region {region}",
|
|
||||||
"no_results": "Nenhum clã encontrado"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"search_players": {
|
|
||||||
"name": "pesquisa-jogadores",
|
|
||||||
"description": "Procurar jogadores",
|
|
||||||
"options": {
|
|
||||||
"limit": {
|
|
||||||
"name": "limite",
|
|
||||||
"description": "The max number of player results (default: {limit})"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"title": "Player search for {search} in region {region}",
|
|
||||||
"no_results": "Nenhum jogador encontrado"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rating_leaderboard": {
|
|
||||||
"name": "classificação-tabela de classificação",
|
|
||||||
"description": "Estatísticas de batalhas de classificação",
|
|
||||||
"subcommands": {
|
|
||||||
"neighbors": {
|
|
||||||
"name": "vizinhos",
|
|
||||||
"description": "Jogadores vizinhos na tabela de classificação"
|
|
||||||
},
|
|
||||||
"league": {
|
|
||||||
"name": "Liga",
|
|
||||||
"description": "Melhores jogadores de uma liga"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"limit": {
|
|
||||||
"name": "limite",
|
|
||||||
"description": "How many neighbors to display (default: {count})"
|
|
||||||
},
|
|
||||||
"season": {
|
|
||||||
"name": "temporada",
|
|
||||||
"description": "Número da temporada (padrão: atual)",
|
|
||||||
"choices": {
|
|
||||||
"current": "{season} (current)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"league": {
|
|
||||||
"name": "Liga",
|
|
||||||
"description": "A liga para exibir"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"top_players": "Top {count} players",
|
|
||||||
"no_participation": "# {player} didn't play rating in season {season}\n\nThis player did not participate in this season or did not get past calibration.",
|
|
||||||
"no_ongoing_season": "# Nenhuma temporada em andamento\n\nNão há uma temporada de classificação em execução no momento.",
|
|
||||||
"deleted_player": "Deleted {id}",
|
|
||||||
"neighbors": "Classificação de vizinhos",
|
|
||||||
"more": "+ {count} more"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"today": {
|
|
||||||
"name": "hoje",
|
|
||||||
"description": "Tanques jogados hoje e estatísticas"
|
|
||||||
},
|
|
||||||
"stats": {
|
|
||||||
"name": "estatísticas",
|
|
||||||
"description": "Estatísticas rápidas para um período"
|
|
||||||
},
|
|
||||||
"owned_tanks": {
|
|
||||||
"name": "tanques-possuídos",
|
|
||||||
"description": "Mostra todos os tanques possuídos em um nível",
|
|
||||||
"body": {
|
|
||||||
"title": "# {name}'s owned tier {tier} tanks\n\n"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"permissions": {
|
|
||||||
"name": "Permissões",
|
|
||||||
"description": "Verifica se o bot tem as permissões necessárias para funcionar",
|
|
||||||
"body": {
|
|
||||||
"title": "# Permissions\n\n{body}",
|
|
||||||
"view_channels": "Ver canais: necessário para encontrar a mensagem em que o botão atualizar foi usado",
|
|
||||||
"read_message_history": "Histórico de mensagens lidas: necessário para encontrar a mensagem para atualizar",
|
|
||||||
"attach_files": "Anexar arquivos: necessário para adicionar imagens a comandos baseados em imagens",
|
|
||||||
"external_emojis": "Emojis externos: necessário para adicionar bandeiras nacionais e emojis de classe de tanque"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ping": {
|
|
||||||
"name": "ping",
|
|
||||||
"description": "Verifique se o bot está vivo.",
|
|
||||||
"body": {
|
|
||||||
"pong": "Pong 🏓",
|
|
||||||
"pong_with_time": "Pong 🏓 - {time}ms"
|
|
||||||
},
|
|
||||||
"subcommands": {
|
|
||||||
"blitzkit": {
|
|
||||||
"name": "blitzkit",
|
|
||||||
"description": "Ping BlitzKit"
|
|
||||||
},
|
|
||||||
"wotb": {
|
|
||||||
"name": "wotb",
|
|
||||||
"description": "Ping World of Tanks Blitz"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"player_info": {
|
|
||||||
"name": "informação do jogador",
|
|
||||||
"description": "Informações básicas sobre um jogador",
|
|
||||||
"body": {
|
|
||||||
"title": "{name}'s information",
|
|
||||||
"nickname": "Apelido",
|
|
||||||
"battles": "Batalhas",
|
|
||||||
"winrate": "Taxa de vitória",
|
|
||||||
"account_id": "ID da conta",
|
|
||||||
"created": "Criado",
|
|
||||||
"last_battle": "Última batalha"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rating": {
|
|
||||||
"name": "classificação",
|
|
||||||
"description": "Estatísticas de jogador de classificação",
|
|
||||||
"subcommands": {
|
|
||||||
"today": {
|
|
||||||
"name": "hoje",
|
|
||||||
"description": "Estatísticas de classificação hoje"
|
|
||||||
},
|
|
||||||
"season": {
|
|
||||||
"name": "temporada",
|
|
||||||
"description": "Estatísticas de classificação desta temporada"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"subtitle": {
|
|
||||||
"today": "Estatísticas de classificação hoje",
|
|
||||||
"season": "Estatísticas de classificação desta temporada"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"errors": {
|
|
||||||
"no_participation": "# {name} hasn't played rating\n\nThis player hasn't participated in the rating gamemode this season.",
|
|
||||||
"unrecorded_stats": "# Estatísticas atualmente indisponível\n\nWargaming pode estar no momento, enfrentando tempo de inatividade do servidor. Se houver uma temporada em curso, as estatísticas deverão ser disponibilizadas dentro de 24 horas."
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"website": {
|
"website": {
|
||||||
"redirect": {
|
"redirect": {
|
||||||
"title": "301: moved permanently",
|
"title": "301: movido permanentemente",
|
||||||
"body": "This page has moved. Redirecting..."
|
"body": "This page has moved. Redirecting..."
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"title": "Settings",
|
"title": "Configurações",
|
||||||
"description": "Change BlitzKit settings",
|
"description": "Change BlitzKit settings",
|
||||||
"dev_mode": "Modo de desenvolvimento",
|
"dev_mode": "Modo de desenvolvimento",
|
||||||
|
"auto_load_models": "Auto-load models",
|
||||||
"language": "Idioma"
|
"language": "Idioma"
|
||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
@@ -666,9 +207,9 @@
|
|||||||
"copied": "Copiado!"
|
"copied": "Copiado!"
|
||||||
},
|
},
|
||||||
"tank_search": {
|
"tank_search": {
|
||||||
"select_dialog_title": "Search for tanks",
|
"select_dialog_title": "Procura por tanque",
|
||||||
"swap_dialog_title": "Swap tank",
|
"swap_dialog_title": "Swap tank",
|
||||||
"clear_filters": "Clear filters",
|
"clear_filters": "Limpar filtros",
|
||||||
"login": "Login to use this",
|
"login": "Login to use this",
|
||||||
"search_bar_hint": "Procurar tanques...",
|
"search_bar_hint": "Procurar tanques...",
|
||||||
"recent": "Visto recentemente",
|
"recent": "Visto recentemente",
|
||||||
@@ -741,14 +282,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home": {
|
"home": {
|
||||||
"pwa": {
|
|
||||||
"title": "Install the BlitzKit App",
|
|
||||||
"new": "NEW",
|
|
||||||
"checking": "Checking compatibility...",
|
|
||||||
"instructions": "Instructions for Apple devices.",
|
|
||||||
"install": "Install",
|
|
||||||
"dismiss": "Dismiss"
|
|
||||||
},
|
|
||||||
"discord": {
|
"discord": {
|
||||||
"join_short": "Join cool people!",
|
"join_short": "Join cool people!",
|
||||||
"join_long": "Join super duper cool people!",
|
"join_long": "Join super duper cool people!",
|
||||||
@@ -880,6 +413,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sandbox": {
|
"sandbox": {
|
||||||
|
"load_model": "Load model",
|
||||||
"poses": {
|
"poses": {
|
||||||
"hull_down": "Casco para baixo",
|
"hull_down": "Casco para baixo",
|
||||||
"face_hug": "Abraço facial",
|
"face_hug": "Abraço facial",
|
||||||
@@ -983,8 +517,7 @@
|
|||||||
"title": "Configuração",
|
"title": "Configuração",
|
||||||
"equalizer": {
|
"equalizer": {
|
||||||
"title": "Equalizer",
|
"title": "Equalizer",
|
||||||
"equalize": "Equalize",
|
"equalize": "Equalize"
|
||||||
"beta": "Beta"
|
|
||||||
},
|
},
|
||||||
"modules": {
|
"modules": {
|
||||||
"title": "Módulos",
|
"title": "Módulos",
|
||||||
@@ -1040,6 +573,8 @@
|
|||||||
"shellRicochet": "Ricochete",
|
"shellRicochet": "Ricochete",
|
||||||
"dpm": "DPM",
|
"dpm": "DPM",
|
||||||
"dpmEffective": "Efetivo aos 60s",
|
"dpmEffective": "Efetivo aos 60s",
|
||||||
|
"peekabooDpm": "Peekaboo DPM",
|
||||||
|
"peekabooDpmInfo": "Damage per minute assuming you only fire after resetting camouflage (or the reload finishes, if it's slower) — at least 10 seconds between shots.",
|
||||||
"shells": "Projéteis",
|
"shells": "Projéteis",
|
||||||
"mostOptimalShellIndex": "Projétil mais ideal",
|
"mostOptimalShellIndex": "Projétil mais ideal",
|
||||||
"shellReloads": "Reloads",
|
"shellReloads": "Reloads",
|
||||||
@@ -1088,11 +623,12 @@
|
|||||||
"hullTraverseSoftTerrain": "Macio",
|
"hullTraverseSoftTerrain": "Macio",
|
||||||
"health": "Vida",
|
"health": "Vida",
|
||||||
"fireChance": "Chance de incêndio",
|
"fireChance": "Chance de incêndio",
|
||||||
|
"trackRepairTime": "Track repair time",
|
||||||
"viewRange": "Alcance de visão",
|
"viewRange": "Alcance de visão",
|
||||||
"camouflageStill": "Parado",
|
"camouflageStill": "Parado",
|
||||||
"camouflageMoving": "Em movimento",
|
"camouflageMoving": "Em movimento",
|
||||||
"camouflageShootingStill": "Parado",
|
"camouflageShootingStill": "Shooting while still",
|
||||||
"camouflageShootingMoving": "Em movimento",
|
"camouflageShootingMoving": "Shooting while moving",
|
||||||
"camouflageCaughtOnFire": "Preso em chamas",
|
"camouflageCaughtOnFire": "Preso em chamas",
|
||||||
"width": "Largura",
|
"width": "Largura",
|
||||||
"height": "Altura",
|
"height": "Altura",
|
||||||
|
|||||||
+13
-477
@@ -37,10 +37,11 @@
|
|||||||
"d_1": "Вчера"
|
"d_1": "Вчера"
|
||||||
},
|
},
|
||||||
"branches": {
|
"branches": {
|
||||||
"local": "dev",
|
"beta": "Бета",
|
||||||
"dev": "бета",
|
"development": "Development",
|
||||||
"opentest": "общий тест",
|
"opentest": "Открытый тест",
|
||||||
"preview": "превью"
|
"preview": "Preview",
|
||||||
|
"production": "Production"
|
||||||
},
|
},
|
||||||
"locales": {
|
"locales": {
|
||||||
"en": "Английский",
|
"en": "Английский",
|
||||||
@@ -184,467 +185,6 @@
|
|||||||
"cumulative_battle_life_time": "Общее время в боях"
|
"cumulative_battle_life_time": "Общее время в боях"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bot": {
|
|
||||||
"common": {
|
|
||||||
"errors": {
|
|
||||||
"clan_not_found": "# Не удалось найти клан\nНе найден «{search}». Попробуйте выбрать клан из результатов поиска.",
|
|
||||||
"player_not_found": "# Не удалось найти пользователя\nНе удалось найти пользователя «{search}». Попробуйте выбрать пользователя из результатов поиска, введя правильное имя пользователя или используя команду «/link».",
|
|
||||||
"player_not_linked": "# Используйте «/link», чтобы начать\nЯ не знаю, кто ты, но давай познакомимся сегодня!",
|
|
||||||
"tank_name_not_found": "# Танк не найден\nНе удалось найти танк с названием «{search}».",
|
|
||||||
"tank_id_not_found": "# Танк не найден\nНе удалось найти танк с ID «{search}». Попробуйте ввести название танка вместо числа.",
|
|
||||||
"no_tank_stats": "# Статистика танка недоступна\nУ этого игрока нет доступной статистики. Возможно, это не тот игрок, которого вы ищете.",
|
|
||||||
"get_help": "Получить помощь",
|
|
||||||
"uncaught_error": "# BlitzKit столкнулся с ошибкой!\nНам очень жаль. Не стесняйтесь и [присоединяйтесь к официальному серверу Discord](https://discord.gg/nDt7AjGJQH), чтобы получить помощь.",
|
|
||||||
"preview": "# Эта команда находится в тестируется\n\nВы можете получить доступ к этой команде только на [официальном сервере Discord] (https://discord.gg/nDt7AjGJQH). Команда скоро станет общедоступной.",
|
|
||||||
"query_too_small": "# Ваш поисковой слишком короткий\nДлина вашего запроса не менее 3 символов.",
|
|
||||||
"query_too_long": "# Ваш поисковой запрос слишком длинный\nДлина вашего запроса должна составлять не более 100 символов."
|
|
||||||
},
|
|
||||||
"wn8": {
|
|
||||||
"name": "WN8",
|
|
||||||
"types": {
|
|
||||||
"very_bad": "Очень плохо",
|
|
||||||
"bad": "Плохо",
|
|
||||||
"below_average": "Ниже среднего",
|
|
||||||
"average": "Средне",
|
|
||||||
"above_average": "Выше среднего",
|
|
||||||
"good": "Хорошо",
|
|
||||||
"very_good": "Очень хорошо",
|
|
||||||
"great": "Отлично",
|
|
||||||
"unicum": "Уникально",
|
|
||||||
"super_unicum": "Крайне уникально"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"subcommands": {
|
|
||||||
"today": {
|
|
||||||
"name": "cегодня",
|
|
||||||
"description": "Cегодня"
|
|
||||||
},
|
|
||||||
"30": {
|
|
||||||
"name": "30",
|
|
||||||
"description": "30 дней"
|
|
||||||
},
|
|
||||||
"60": {
|
|
||||||
"name": "60",
|
|
||||||
"description": "60 дней"
|
|
||||||
},
|
|
||||||
"90": {
|
|
||||||
"name": "90",
|
|
||||||
"description": "90 дней"
|
|
||||||
},
|
|
||||||
"career": {
|
|
||||||
"name": "карьера",
|
|
||||||
"description": "Карьера"
|
|
||||||
},
|
|
||||||
"custom": {
|
|
||||||
"name": "пользовательский",
|
|
||||||
"description": "Собственный диапазон",
|
|
||||||
"options": {
|
|
||||||
"start": {
|
|
||||||
"name": "начать",
|
|
||||||
"description": "Начать через N дней с сегодняшнего дня"
|
|
||||||
},
|
|
||||||
"end": {
|
|
||||||
"name": "конец",
|
|
||||||
"description": "Закончить через N дней с сегодняшнего дня"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"clan": {
|
|
||||||
"name": "клан",
|
|
||||||
"description": "Название или тег клана"
|
|
||||||
},
|
|
||||||
"tank": {
|
|
||||||
"name": "танк",
|
|
||||||
"description": "Танк для получения статистики для"
|
|
||||||
},
|
|
||||||
"username": {
|
|
||||||
"name": "ник",
|
|
||||||
"description": "Ник игрока в Blitz"
|
|
||||||
},
|
|
||||||
"filters": {
|
|
||||||
"nation": {
|
|
||||||
"name": "нация",
|
|
||||||
"description": "Нация"
|
|
||||||
},
|
|
||||||
"class": {
|
|
||||||
"name": "класс",
|
|
||||||
"description": "Класс"
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"name": "тип",
|
|
||||||
"description": "Тип"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"region": {
|
|
||||||
"name": "регион",
|
|
||||||
"description": "Регион"
|
|
||||||
},
|
|
||||||
"tier": {
|
|
||||||
"name": "уровень",
|
|
||||||
"description": "Уровень",
|
|
||||||
"choices": {
|
|
||||||
"tier": "Уровень {tier_1} - {tier_2}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"periods": {
|
|
||||||
"career": "Карьера",
|
|
||||||
"today": "Cегодня",
|
|
||||||
"days": "{days} дней",
|
|
||||||
"custom": "{day_1} - {day_2} дней"
|
|
||||||
},
|
|
||||||
"filters": {
|
|
||||||
"none": "Без фильтров",
|
|
||||||
"tier": "{tier} уровень"
|
|
||||||
},
|
|
||||||
"no_data": {
|
|
||||||
"battles_in_period": "За этот период боёв не было",
|
|
||||||
"battles_in_season": "За этот сезон боёв не было",
|
|
||||||
"players_in_period": "Нет игроков за этот период",
|
|
||||||
"tanks_found": "Танки не найдены"
|
|
||||||
},
|
|
||||||
"buttons": {
|
|
||||||
"refresh": "Обновить"
|
|
||||||
},
|
|
||||||
"hero_stats": {
|
|
||||||
"battles": "Боёв",
|
|
||||||
"winrate": "Коэффициент побед",
|
|
||||||
"damage": "Урон",
|
|
||||||
"damage_ratio": "Коэффициент урона",
|
|
||||||
"tier": "Уровень",
|
|
||||||
"survival": "Выживание",
|
|
||||||
"accuracy": "Точность стрельбы",
|
|
||||||
"kills": "Уничтожил"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"commands": {
|
|
||||||
"dead": "# Команды статистики мертвы\n\nБот BlitzKit использует BlitzStars для получения периодической статистики. BlitzStars включил агрессивную защиту Cloudflare; следовательно, отключив BlitzKit от использования API BlitzStar. Это повлияло на следующие команды:\n\n- `/stats`\n- `/today`\n- `/breakdown`\n- `/evolution`\n- `/full-stats`\n\nПожалуйста, используйте [Aftermath](<https://amth.one/invite>) в качестве альтернативы, которая совершенно не зависит от BlitzStars. Команда статистики BlitzKit-hosted вернется в ближайшее время.",
|
|
||||||
"replay": {
|
|
||||||
"name": "повтор",
|
|
||||||
"description": "Показать результаты повтора",
|
|
||||||
"options": {
|
|
||||||
"file": {
|
|
||||||
"name": "файл",
|
|
||||||
"description": "Запись повтора"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"research": {
|
|
||||||
"name": "исследование",
|
|
||||||
"description": "Список ресурсов для исследования ветки",
|
|
||||||
"options": {
|
|
||||||
"target_tank": {
|
|
||||||
"name": "желаемый танк",
|
|
||||||
"description": "Желаемый танк ветки исследования"
|
|
||||||
},
|
|
||||||
"starting_tank": {
|
|
||||||
"name": "стартовый-танк",
|
|
||||||
"description": "Стартовый танк в ветке (назначен автоматически, если не установлен)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"subtitle": "Исследование",
|
|
||||||
"total": "Всего",
|
|
||||||
"research": "Исследование: {cost}",
|
|
||||||
"upgrades": "Улучшения: {cost}",
|
|
||||||
"purchase": "Покупка: {cost}",
|
|
||||||
"equipment": "Снаряжение: {cost}",
|
|
||||||
"estimation": "# Это приблизительная оценка!\n\nВ этот список могут входить уже исследованные танки из-за неточной информации, предоставляемой Wargaming. Попробуйте указать «стартовый танк» в строке при использовании команды, если сможете."
|
|
||||||
},
|
|
||||||
"errors": {
|
|
||||||
"non_tech_tree": "# {tank} отсутствует в дереве танков\n\nВы не можете исследовать премиумный / коллекционный танк.",
|
|
||||||
"tier_1": "# {tank} — танк I уровня\n\nУровень I всегда открыт бесплатно для всех игроков.",
|
|
||||||
"already_researched": "# {tank} уже исследован\n\nПопробуйте предоставить «starting-tank» при использовании команды для просмотра итогов уже исследованной ветки.",
|
|
||||||
"start_end_equal": "# {tank} был предоставлен дважды\n\nУбедитесь, что «starting-tank» и «target-tank» различаются.",
|
|
||||||
"tanks_not_on_line": "# {tank_1} и {tank_2} находятся не в одной ветке\n\nУбедитесь, что «starting-tank» и «target-tank» находятся на той же ветке дерева танков.",
|
|
||||||
"unordered": "# У {tank_1} более высокий уровень чем у {tank_2}\n\nОбязательно укажите {tank_2} в качестве «starting-tank», так как это танк более низкого уровня."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"about": {
|
|
||||||
"name": "about",
|
|
||||||
"description": "Вся необходимая информация о боте",
|
|
||||||
"subcommands": {
|
|
||||||
"commands": {
|
|
||||||
"name": "команды",
|
|
||||||
"description": "Список всех команд и их описаний",
|
|
||||||
"body": "# Команды\n\nBlitzKit предлагает следующие команды:\n\n"
|
|
||||||
},
|
|
||||||
"embeds": {
|
|
||||||
"name": "embeds",
|
|
||||||
"description": "Как работают встраиваемые элементы"
|
|
||||||
},
|
|
||||||
"introduction": {
|
|
||||||
"name": "введение",
|
|
||||||
"description": "О боте"
|
|
||||||
},
|
|
||||||
"invite": {
|
|
||||||
"name": "пригласить",
|
|
||||||
"description": "Как пригласить бота"
|
|
||||||
},
|
|
||||||
"timezones": {
|
|
||||||
"name": "timezones",
|
|
||||||
"description": "Как BlitzKit определяет и использует ваш часовой пояс"
|
|
||||||
},
|
|
||||||
"credits": {
|
|
||||||
"name": "авторы",
|
|
||||||
"description": "Люди, которые помогли BlitzKit"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"breakdown": {
|
|
||||||
"name": "распределение",
|
|
||||||
"description": "Статистика игр за период с распределением по танкам",
|
|
||||||
"body": {
|
|
||||||
"total": "Всего",
|
|
||||||
"battles": "Боёв",
|
|
||||||
"wn8": "WN8",
|
|
||||||
"winrate": "Коэффициент побед",
|
|
||||||
"damage": "Урон",
|
|
||||||
"unknown_tank": "Неизвестный танк {id}"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"debug": {
|
|
||||||
"name": "отладка",
|
|
||||||
"description": "Сведения для отладки",
|
|
||||||
"body": {
|
|
||||||
"title": "# Debug\n\n",
|
|
||||||
"version": "Версия",
|
|
||||||
"shard": {
|
|
||||||
"label": "Фрагмент",
|
|
||||||
"default": "default"
|
|
||||||
},
|
|
||||||
"uptime": "Время работы"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"evolution": {
|
|
||||||
"name": "изменения",
|
|
||||||
"description": "Изменения статистики",
|
|
||||||
"groups": {
|
|
||||||
"player": {
|
|
||||||
"name": "игрок",
|
|
||||||
"description": "Статистика игрока"
|
|
||||||
},
|
|
||||||
"tank": {
|
|
||||||
"name": "танк",
|
|
||||||
"description": "Статистика танков"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"inactive": {
|
|
||||||
"name": "неактивно",
|
|
||||||
"description": "Список всех неактивных игроков в клане выше порога",
|
|
||||||
"options": {
|
|
||||||
"threshold": {
|
|
||||||
"name": "порог",
|
|
||||||
"description": "Количество дней не активности (по умолчанию: {days} дней)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"subtitle": "Неактивен {days}+ дней",
|
|
||||||
"listing": "{days{days}"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"full_stats": {
|
|
||||||
"name": "full-stats",
|
|
||||||
"description": "Полная игровая статистика",
|
|
||||||
"body": {
|
|
||||||
"cards": {
|
|
||||||
"games": {
|
|
||||||
"title": "Игры",
|
|
||||||
"winrate": "Коэффициент побед",
|
|
||||||
"battles": "Боёв",
|
|
||||||
"wins_losses": "Побед / поражений"
|
|
||||||
},
|
|
||||||
"efficiency": {
|
|
||||||
"title": "Эффективность",
|
|
||||||
"wn8": "WN8",
|
|
||||||
"survival": "Выжил",
|
|
||||||
"accuracy": "Точность стрельбы"
|
|
||||||
},
|
|
||||||
"lethality": {
|
|
||||||
"title": "Смертность",
|
|
||||||
"average_damage": "Средний урон",
|
|
||||||
"damage_per_tier": "Урон по уровню",
|
|
||||||
"damage_ratio": "Коэффициент урона",
|
|
||||||
"average_kills": "Среднее число уничтоженных"
|
|
||||||
},
|
|
||||||
"miscellaneous": {
|
|
||||||
"title": "Прочее",
|
|
||||||
"average_tier": "Средний уровень",
|
|
||||||
"average_spots": "Среднее число попаданий",
|
|
||||||
"average_xp": "Средний опыт",
|
|
||||||
"kills_to_death_ratio": "Коэффициент убийств и смертей"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"link": {
|
|
||||||
"name": "ссылка",
|
|
||||||
"description": "Привяжите учётную запись Blitz и Discord",
|
|
||||||
"body": {
|
|
||||||
"accounts_linked": "Аккаунты привязаны",
|
|
||||||
"no_role_permissions": {
|
|
||||||
"title": "{name} не удалось проверить",
|
|
||||||
"description": "У меня нет разрешения на управление ролями."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"embed": {
|
|
||||||
"title": "Неверный аккаунт?",
|
|
||||||
"description": "Используйте команду снова и выберите имя пользователя из результатов поиска."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"search_clans": {
|
|
||||||
"name": "search-clans",
|
|
||||||
"description": "Поиск кланов",
|
|
||||||
"options": {
|
|
||||||
"limit": {
|
|
||||||
"name": "лимит",
|
|
||||||
"description": "Максимальное количество результатов клана (по умолчанию: {limit})"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"title": "Поиск клана {search} в регионе {region}",
|
|
||||||
"no_results": "Кланов не найдено"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"search_players": {
|
|
||||||
"name": "search-players",
|
|
||||||
"description": "Поиск игроков",
|
|
||||||
"options": {
|
|
||||||
"limit": {
|
|
||||||
"name": "лимит",
|
|
||||||
"description": "Максимальное число результатов игрока (по умолчанию: {limit})"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"title": "Поиск игрока {search} в регионе {region}",
|
|
||||||
"no_results": "Игроков не найдено"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rating_leaderboard": {
|
|
||||||
"name": "rating-leaderboard",
|
|
||||||
"description": "Статистика рейтингов боёв",
|
|
||||||
"subcommands": {
|
|
||||||
"neighbors": {
|
|
||||||
"name": "ближайшие",
|
|
||||||
"description": "Ближайшие игроки в таблице лидеров"
|
|
||||||
},
|
|
||||||
"league": {
|
|
||||||
"name": "лига",
|
|
||||||
"description": "Топ игроков лиги"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"limit": {
|
|
||||||
"name": "лимит",
|
|
||||||
"description": "Количество отображаемых ближайших игроков (по умолчанию: {count})"
|
|
||||||
},
|
|
||||||
"season": {
|
|
||||||
"name": "сезон",
|
|
||||||
"description": "Номер сезона (по умолчанию: текущий)",
|
|
||||||
"choices": {
|
|
||||||
"current": "{season} (текущий)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"league": {
|
|
||||||
"name": "лига",
|
|
||||||
"description": "Отображаемая лига"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"top_players": "Топ {count} игроков",
|
|
||||||
"no_participation": "# {player} не играл в рейтинг в сезоне {season}\n\nЭтот игрок не участвовал в этом сезоне или не получил прошлую калибровку.",
|
|
||||||
"no_ongoing_season": "# Нет текущего сезона\n\nВ данный момент нет рейтингового сезона.",
|
|
||||||
"deleted_player": "Удаленный {id}",
|
|
||||||
"neighbors": "Рейтинг ближайших игроков",
|
|
||||||
"more": "+ ещё {count}"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"today": {
|
|
||||||
"name": "today",
|
|
||||||
"description": "Танки, на которых сыграли сегодня и статистика"
|
|
||||||
},
|
|
||||||
"stats": {
|
|
||||||
"name": "статистика",
|
|
||||||
"description": "Быстрая статистика за период"
|
|
||||||
},
|
|
||||||
"owned_tanks": {
|
|
||||||
"name": "cобственные-танки",
|
|
||||||
"description": "Показывает все принадлежащие танки на уровне",
|
|
||||||
"body": {
|
|
||||||
"title": "# {name} принадлежат танки {tier} уровня\n\n"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"permissions": {
|
|
||||||
"name": "разрешения",
|
|
||||||
"description": "Проверяет, есть ли у бота необходимые разрешения для работы",
|
|
||||||
"body": {
|
|
||||||
"title": "# Разрешения\n\n{body}",
|
|
||||||
"view_channels": "Просмотр каналов: необходимо найти сообщение, на котором была использована кнопка обновления",
|
|
||||||
"read_message_history": "Просмотр истории сообщений: необходимо найти сообщение для обновления",
|
|
||||||
"attach_files": "Прикрепить файлы: необходимо для добавления изображений в команды на основе изображения",
|
|
||||||
"external_emojis": "Внешние эмоции: необходимы для добавления национальных флагов и эмодзи класса танков"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ping": {
|
|
||||||
"name": "пинг",
|
|
||||||
"description": "Проверьте, что бот жив.",
|
|
||||||
"body": {
|
|
||||||
"pong": "Понг 🏓",
|
|
||||||
"pong_with_time": "Понг 🏓 — {time}мс"
|
|
||||||
},
|
|
||||||
"subcommands": {
|
|
||||||
"blitzkit": {
|
|
||||||
"name": "blitzkit",
|
|
||||||
"description": "Пинг BlitzKit"
|
|
||||||
},
|
|
||||||
"wotb": {
|
|
||||||
"name": "wotb",
|
|
||||||
"description": "Пинг World of Tanks Blitz"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"player_info": {
|
|
||||||
"name": "player-ifor",
|
|
||||||
"description": "Basic information about a player",
|
|
||||||
"body": {
|
|
||||||
"title": "Информация о {name}",
|
|
||||||
"nickname": "Никнейм",
|
|
||||||
"battles": "Боёв",
|
|
||||||
"winrate": "Коэффициент побед",
|
|
||||||
"account_id": "ID учётной записи",
|
|
||||||
"created": "Создано",
|
|
||||||
"last_battle": "Последний бой"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rating": {
|
|
||||||
"name": "рейтинг",
|
|
||||||
"description": "Статистика рейтинга игрока",
|
|
||||||
"subcommands": {
|
|
||||||
"today": {
|
|
||||||
"name": "cегодня",
|
|
||||||
"description": "Статистика рейтинга за сегодня"
|
|
||||||
},
|
|
||||||
"season": {
|
|
||||||
"name": "сезон",
|
|
||||||
"description": "Статистика рейтинга в этом сезоне"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"subtitle": {
|
|
||||||
"today": "Статистика рейтинга за сегодня",
|
|
||||||
"season": "Статистика рейтинга в этом сезоне"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"errors": {
|
|
||||||
"no_participation": "# {name} не получил рейтинга\n\nЭтот игрок в этом сезоне не участвовал в рейтинговом режиме.",
|
|
||||||
"unrecorded_stats": "# Статистика недоступна в настоящее время\n\nВ настоящее время Wargaming, возможно, сталкивается с простоями сервера. Если сезон продолжается, статистика должна быть доступна в течение 24 часов."
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"website": {
|
"website": {
|
||||||
"redirect": {
|
"redirect": {
|
||||||
"title": "301: перемещено навсегда",
|
"title": "301: перемещено навсегда",
|
||||||
@@ -654,6 +194,7 @@
|
|||||||
"title": "Настройки",
|
"title": "Настройки",
|
||||||
"description": "Изменить настройки BlitzKit",
|
"description": "Изменить настройки BlitzKit",
|
||||||
"dev_mode": "Режим разработчика",
|
"dev_mode": "Режим разработчика",
|
||||||
|
"auto_load_models": "Auto-load models",
|
||||||
"language": "Язык"
|
"language": "Язык"
|
||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
@@ -741,14 +282,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home": {
|
"home": {
|
||||||
"pwa": {
|
|
||||||
"title": "Установите приложение BlitzKit",
|
|
||||||
"new": "НОВИНКА",
|
|
||||||
"checking": "Проверка совместимости...",
|
|
||||||
"instructions": "Инструкция для устройств Apple.",
|
|
||||||
"install": "Установка",
|
|
||||||
"dismiss": "Отклонить"
|
|
||||||
},
|
|
||||||
"discord": {
|
"discord": {
|
||||||
"join_short": "Присоединяйтесь к крутым ребятам!",
|
"join_short": "Присоединяйтесь к крутым ребятам!",
|
||||||
"join_long": "Присоединяйся к супер-дупер крутым ребятам!",
|
"join_long": "Присоединяйся к супер-дупер крутым ребятам!",
|
||||||
@@ -880,6 +413,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sandbox": {
|
"sandbox": {
|
||||||
|
"load_model": "Load model",
|
||||||
"poses": {
|
"poses": {
|
||||||
"hull_down": "За холмом",
|
"hull_down": "За холмом",
|
||||||
"face_hug": "В упор",
|
"face_hug": "В упор",
|
||||||
@@ -983,8 +517,7 @@
|
|||||||
"title": "Конфигурация",
|
"title": "Конфигурация",
|
||||||
"equalizer": {
|
"equalizer": {
|
||||||
"title": "Уравнение",
|
"title": "Уравнение",
|
||||||
"equalize": "Уравнять",
|
"equalize": "Уравнять"
|
||||||
"beta": "Бета"
|
|
||||||
},
|
},
|
||||||
"modules": {
|
"modules": {
|
||||||
"title": "Модули",
|
"title": "Модули",
|
||||||
@@ -1040,6 +573,8 @@
|
|||||||
"shellRicochet": "Рикошет",
|
"shellRicochet": "Рикошет",
|
||||||
"dpm": "ДПМ",
|
"dpm": "ДПМ",
|
||||||
"dpmEffective": "Эффективность за 60с",
|
"dpmEffective": "Эффективность за 60с",
|
||||||
|
"peekabooDpm": "Peekaboo DPM",
|
||||||
|
"peekabooDpmInfo": "Damage per minute assuming you only fire after resetting camouflage (or the reload finishes, if it's slower) — at least 10 seconds between shots.",
|
||||||
"shells": "Снарядов в барабане",
|
"shells": "Снарядов в барабане",
|
||||||
"mostOptimalShellIndex": "Самый эффективный снаряд",
|
"mostOptimalShellIndex": "Самый эффективный снаряд",
|
||||||
"shellReloads": "Перезарядка",
|
"shellReloads": "Перезарядка",
|
||||||
@@ -1088,11 +623,12 @@
|
|||||||
"hullTraverseSoftTerrain": "На мягком грунте",
|
"hullTraverseSoftTerrain": "На мягком грунте",
|
||||||
"health": "Прочность",
|
"health": "Прочность",
|
||||||
"fireChance": "Вероятность возгорания",
|
"fireChance": "Вероятность возгорания",
|
||||||
|
"trackRepairTime": "Track repair time",
|
||||||
"viewRange": "Радиус обзора",
|
"viewRange": "Радиус обзора",
|
||||||
"camouflageStill": "Когда неподвижен",
|
"camouflageStill": "Когда неподвижен",
|
||||||
"camouflageMoving": "В движении",
|
"camouflageMoving": "В движении",
|
||||||
"camouflageShootingStill": "После выстрела, если неподвижен",
|
"camouflageShootingStill": "Shooting while still",
|
||||||
"camouflageShootingMoving": "После выстрела в движении",
|
"camouflageShootingMoving": "Shooting while moving",
|
||||||
"camouflageCaughtOnFire": "При пожаре",
|
"camouflageCaughtOnFire": "При пожаре",
|
||||||
"width": "Ширина",
|
"width": "Ширина",
|
||||||
"height": "Высота",
|
"height": "Высота",
|
||||||
|
|||||||
+56
-520
@@ -13,7 +13,7 @@
|
|||||||
"hp": "{value}од",
|
"hp": "{value}од",
|
||||||
"x": "x{value}",
|
"x": "x{value}",
|
||||||
"percentage": "{value}%",
|
"percentage": "{value}%",
|
||||||
"deg_s": "{value}град/c",
|
"deg_s": "{value}°/c",
|
||||||
"plus": "+{value}"
|
"plus": "+{value}"
|
||||||
},
|
},
|
||||||
"gun_types": {
|
"gun_types": {
|
||||||
@@ -37,10 +37,11 @@
|
|||||||
"d_1": "Вчора"
|
"d_1": "Вчора"
|
||||||
},
|
},
|
||||||
"branches": {
|
"branches": {
|
||||||
"local": "розробник",
|
"beta": "Бета",
|
||||||
"dev": "бета",
|
"development": "Розробка",
|
||||||
"opentest": "відкритий тест",
|
"opentest": "Відкритий тест",
|
||||||
"preview": "попередній перегляд"
|
"preview": "Preview",
|
||||||
|
"production": "Production"
|
||||||
},
|
},
|
||||||
"locales": {
|
"locales": {
|
||||||
"en": "Англійська",
|
"en": "Англійська",
|
||||||
@@ -184,467 +185,6 @@
|
|||||||
"cumulative_battle_life_time": "Загальний час бою"
|
"cumulative_battle_life_time": "Загальний час бою"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bot": {
|
|
||||||
"common": {
|
|
||||||
"errors": {
|
|
||||||
"clan_not_found": "# Не вдалося знайти клан\nНе вдалося знайти \"{search}\". Спробуйте обрати клан з результату пошуку.",
|
|
||||||
"player_not_found": "# Не вдалося знайти користувача\nНе вдалося знайти користувача \"{search}\". Спробуйте вибрати користувача із результатів пошуку, ввівши правильне ім'я користувача, або скористайтеся командою `/link`.",
|
|
||||||
"player_not_linked": "# Використайте команду \"/link\" щоб почати\nЯ не знаю, хто ви, але ви можете сказати мені сьогодні!",
|
|
||||||
"tank_name_not_found": "# Танк не знайдено\nНе вдалося знайти танк із назвою «{search}».",
|
|
||||||
"tank_id_not_found": "# Танк не знайдено\nНе вдалося знайти танк з ID «{search}». Спробуйте ввести назву танка замість номера.",
|
|
||||||
"no_tank_stats": "# Немає статистики для танка\nЦей гравець не має статистики.\nМожливо, це не той гравець, якого ви шукаєте.",
|
|
||||||
"get_help": "Допомогти Discord серверу",
|
|
||||||
"uncaught_error": "# Упс! BlitzKit зіткнувся з помилкою!\nНам дуже шкода. Можете попросити допомоги на [офіційному сервері Discord](https://discord.gg/nDt7AjGJQH).",
|
|
||||||
"preview": "# Ця команда є в попередньому перегляді\n\nВи можете отримати доступ лише до цієї команди на [офіційному сервері Discord](https://discord.gg/nDt7AjGJQH). Команда в цілому буде доступна найближчим часом.",
|
|
||||||
"query_too_small": "# Ваш пошук занадто короткий\nВаш пошук повинен бути щонайменше 3 символи.",
|
|
||||||
"query_too_long": "# Ваш пошук занадто довгий\nВаш пошук повинен бути щонайбільше 100 символи."
|
|
||||||
},
|
|
||||||
"wn8": {
|
|
||||||
"name": "WN8",
|
|
||||||
"types": {
|
|
||||||
"very_bad": "Дуже погано",
|
|
||||||
"bad": "Погано",
|
|
||||||
"below_average": "Нижче середнього",
|
|
||||||
"average": "Середнє",
|
|
||||||
"above_average": "Вище середнього",
|
|
||||||
"good": "Добре",
|
|
||||||
"very_good": "Дуже добре",
|
|
||||||
"great": "Відмінно",
|
|
||||||
"unicum": "Винятковий",
|
|
||||||
"super_unicum": "Супер винятковий"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"subcommands": {
|
|
||||||
"today": {
|
|
||||||
"name": "сьогодні",
|
|
||||||
"description": "Сьогодні"
|
|
||||||
},
|
|
||||||
"30": {
|
|
||||||
"name": "30",
|
|
||||||
"description": "30 днів"
|
|
||||||
},
|
|
||||||
"60": {
|
|
||||||
"name": "60",
|
|
||||||
"description": "60 днів"
|
|
||||||
},
|
|
||||||
"90": {
|
|
||||||
"name": "90",
|
|
||||||
"description": "90 днів"
|
|
||||||
},
|
|
||||||
"career": {
|
|
||||||
"name": "кар'єра",
|
|
||||||
"description": "Кар'єра"
|
|
||||||
},
|
|
||||||
"custom": {
|
|
||||||
"name": "користувацьке",
|
|
||||||
"description": "Власний діапазон",
|
|
||||||
"options": {
|
|
||||||
"start": {
|
|
||||||
"name": "почати",
|
|
||||||
"description": "Початок за кількістю днів тому від сьогодні"
|
|
||||||
},
|
|
||||||
"end": {
|
|
||||||
"name": "кінець",
|
|
||||||
"description": "Кінець за кількістю днів тому від сьогодні"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"clan": {
|
|
||||||
"name": "клан",
|
|
||||||
"description": "Назва клану або тег"
|
|
||||||
},
|
|
||||||
"tank": {
|
|
||||||
"name": "танк",
|
|
||||||
"description": "Танк для якого треба отримати статистику"
|
|
||||||
},
|
|
||||||
"username": {
|
|
||||||
"name": "ім'я користувача",
|
|
||||||
"description": "Бліц ім'я гравця"
|
|
||||||
},
|
|
||||||
"filters": {
|
|
||||||
"nation": {
|
|
||||||
"name": "нація",
|
|
||||||
"description": "Нація"
|
|
||||||
},
|
|
||||||
"class": {
|
|
||||||
"name": "клас",
|
|
||||||
"description": "Клас"
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"name": "вид",
|
|
||||||
"description": "Вид"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"region": {
|
|
||||||
"name": "регіон",
|
|
||||||
"description": "Регіон"
|
|
||||||
},
|
|
||||||
"tier": {
|
|
||||||
"name": "рівень",
|
|
||||||
"description": "Рівень",
|
|
||||||
"choices": {
|
|
||||||
"tier": "Рівень {tier_1} - {tier_2}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"periods": {
|
|
||||||
"career": "Кар'єра",
|
|
||||||
"today": "Сьогодні",
|
|
||||||
"days": "{days} днів",
|
|
||||||
"custom": "{day_1} - {day_2} днів"
|
|
||||||
},
|
|
||||||
"filters": {
|
|
||||||
"none": "Немає фільтрів",
|
|
||||||
"tier": "Рівень {tier}"
|
|
||||||
},
|
|
||||||
"no_data": {
|
|
||||||
"battles_in_period": "За цей період боїв не було",
|
|
||||||
"battles_in_season": "У цьому сезоні боїв не було",
|
|
||||||
"players_in_period": "Немає гравців за цей період",
|
|
||||||
"tanks_found": "Жодних танків не знайдено"
|
|
||||||
},
|
|
||||||
"buttons": {
|
|
||||||
"refresh": "Оновити"
|
|
||||||
},
|
|
||||||
"hero_stats": {
|
|
||||||
"battles": "Бої",
|
|
||||||
"winrate": "Відсоток перемог",
|
|
||||||
"damage": "Шкода",
|
|
||||||
"damage_ratio": "Коефіцієнт шкоди",
|
|
||||||
"tier": "Рівень",
|
|
||||||
"survival": "Виживання",
|
|
||||||
"accuracy": "Точність",
|
|
||||||
"kills": "Знищено"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"commands": {
|
|
||||||
"dead": ".",
|
|
||||||
"replay": {
|
|
||||||
"name": "реплей",
|
|
||||||
"description": "Показати результати реплею",
|
|
||||||
"options": {
|
|
||||||
"file": {
|
|
||||||
"name": "",
|
|
||||||
"description": "Replay filehttps://crowdin.com/editor/blitzkrieg/80/en-uk?view=side-by-side#9706"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"research": {
|
|
||||||
"name": "дослідження",
|
|
||||||
"description": "Показує витрати в дослідженні гілки",
|
|
||||||
"options": {
|
|
||||||
"target_tank": {
|
|
||||||
"name": "цільовий танк",
|
|
||||||
"description": "Останній танк для дослідження в гілці"
|
|
||||||
},
|
|
||||||
"starting_tank": {
|
|
||||||
"name": "початковий танк",
|
|
||||||
"description": "Початковий танк в гілці (виводиться автоматично, якщо не передбачено)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"subtitle": "Дослідження",
|
|
||||||
"total": "Загалом",
|
|
||||||
"research": "Дослідження: {cost}",
|
|
||||||
"upgrades": "Прокачування: {cost}",
|
|
||||||
"purchase": "Вартість: {cost}",
|
|
||||||
"equipment": "Спорядження: {cost}",
|
|
||||||
"estimation": "# Це оцінка!\n\nЦей список може включати вже досліджені танки через неточну інформацію для вантажу. Спробуйте використати \"початковий танк\" з рядка за допомогою команди."
|
|
||||||
},
|
|
||||||
"errors": {
|
|
||||||
"non_tech_tree": "#{tank} відсутній в дереві дослідження\n\nВи не можете дослідити преміум/колеційний танк.",
|
|
||||||
"tier_1": "#{tank} І рівня \n\nТанки І рівня завжди розблоковані для всіх гравців безкоштовно",
|
|
||||||
"already_researched": "# {tank} вже було досліджено\n\nСпробуйте використати `початковий-танк` коли використовуєте команду для перегляду загальної гілки, яку ви вже дослідили",
|
|
||||||
"start_end_equal": "#{tank} було введено двічі \n\nПереконайтесь що `початковий-танк` та `ціль-танк` різні",
|
|
||||||
"tanks_not_on_line": "# {tank_1} та {tank_2} не в одній гілці\n\nПереконайтесь що `початковий-танк` та `ціль-танк` знаходяться в єдиній гілці дерева дослідження",
|
|
||||||
"unordered": "# {tank_1} вище рівнем відносно {tank_2}\n\nОбов’язково вкажіть {tank_2} як `початковий-танк`, оскільки це танк нижчого рівня."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"about": {
|
|
||||||
"name": "про бота",
|
|
||||||
"description": "Вся інформація про бота",
|
|
||||||
"subcommands": {
|
|
||||||
"commands": {
|
|
||||||
"name": "команди",
|
|
||||||
"description": "Список всіх команд та їх описів",
|
|
||||||
"body": "# Команди\n\nBlitzKit пропонує наступні команди:\n\n"
|
|
||||||
},
|
|
||||||
"embeds": {
|
|
||||||
"name": "вкладення",
|
|
||||||
"description": "Як працюють вкладення"
|
|
||||||
},
|
|
||||||
"introduction": {
|
|
||||||
"name": "ознайомлення",
|
|
||||||
"description": "Про бота"
|
|
||||||
},
|
|
||||||
"invite": {
|
|
||||||
"name": "запрошення",
|
|
||||||
"description": "Як запросити бота"
|
|
||||||
},
|
|
||||||
"timezones": {
|
|
||||||
"name": "часові пояси",
|
|
||||||
"description": "Як BlitzKit отримує інформацію про час і використовує ваш часовий пояс"
|
|
||||||
},
|
|
||||||
"credits": {
|
|
||||||
"name": "кредити",
|
|
||||||
"description": "Люди, які допомогли BlitzKit"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"breakdown": {
|
|
||||||
"name": "аналіз",
|
|
||||||
"description": "Аналіз періоду за зіграними танками",
|
|
||||||
"body": {
|
|
||||||
"total": "Загалом",
|
|
||||||
"battles": "Бої",
|
|
||||||
"wn8": "WN8",
|
|
||||||
"winrate": "Відсоток перемог",
|
|
||||||
"damage": "Шкода",
|
|
||||||
"unknown_tank": "Невідомий танк {id}"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"debug": {
|
|
||||||
"name": "налагодження",
|
|
||||||
"description": "Інформація про налагодження бота",
|
|
||||||
"body": {
|
|
||||||
"title": "# Налагодження\n\n",
|
|
||||||
"version": "Версія",
|
|
||||||
"shard": {
|
|
||||||
"label": "Уламок",
|
|
||||||
"default": "за замовчуванням"
|
|
||||||
},
|
|
||||||
"uptime": "Час роботи"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"evolution": {
|
|
||||||
"name": "еволюція",
|
|
||||||
"description": "Еволюція статистики",
|
|
||||||
"groups": {
|
|
||||||
"player": {
|
|
||||||
"name": "гравець",
|
|
||||||
"description": "Статистика гравця"
|
|
||||||
},
|
|
||||||
"tank": {
|
|
||||||
"name": "танк",
|
|
||||||
"description": "Статистика танків"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"inactive": {
|
|
||||||
"name": "неактивний",
|
|
||||||
"description": "Відображає всіх неактивних гравців у клані вище порогу",
|
|
||||||
"options": {
|
|
||||||
"threshold": {
|
|
||||||
"name": "поріг",
|
|
||||||
"description": "Кількість днів неактивності (за замовчуванням: {days} днів)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"subtitle": "Неактивний {days}+ днів",
|
|
||||||
"listing": "{days} днів"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"full_stats": {
|
|
||||||
"name": "повна статистика",
|
|
||||||
"description": "Повна ігрова статистика",
|
|
||||||
"body": {
|
|
||||||
"cards": {
|
|
||||||
"games": {
|
|
||||||
"title": "Ігри",
|
|
||||||
"winrate": "Відсоток перемог",
|
|
||||||
"battles": "Бої",
|
|
||||||
"wins_losses": "Перемоги / поразки"
|
|
||||||
},
|
|
||||||
"efficiency": {
|
|
||||||
"title": "Ефективність",
|
|
||||||
"wn8": "WN8",
|
|
||||||
"survival": "Виживання",
|
|
||||||
"accuracy": "Точність"
|
|
||||||
},
|
|
||||||
"lethality": {
|
|
||||||
"title": "Летальність",
|
|
||||||
"average_damage": "Середня шкода",
|
|
||||||
"damage_per_tier": "Шкода за рівень",
|
|
||||||
"damage_ratio": "Коефіцієнт шкоди",
|
|
||||||
"average_kills": "Середня кількість знищень"
|
|
||||||
},
|
|
||||||
"miscellaneous": {
|
|
||||||
"title": "Різне",
|
|
||||||
"average_tier": "Середній рівень",
|
|
||||||
"average_spots": "Середній засвіт",
|
|
||||||
"average_xp": "Середній досвід",
|
|
||||||
"kills_to_death_ratio": "Співвідношення знищень до смертей"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"link": {
|
|
||||||
"name": "посилання",
|
|
||||||
"description": "Прив'язує ваш Blitz та Discord акаунт",
|
|
||||||
"body": {
|
|
||||||
"accounts_linked": "Прив'язані акаунти",
|
|
||||||
"no_role_permissions": {
|
|
||||||
"title": "{name} не вдалося перевірити",
|
|
||||||
"description": "У мене немає дозволу керувати ролями."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"embed": {
|
|
||||||
"title": "Невірний обліковий запис?",
|
|
||||||
"description": "Використайте команду ще раз і виберіть ім'я користувача з результатів пошуку."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"search_clans": {
|
|
||||||
"name": "пошук кланів",
|
|
||||||
"description": "Пошук кланів",
|
|
||||||
"options": {
|
|
||||||
"limit": {
|
|
||||||
"name": "ліміт",
|
|
||||||
"description": "Максимальна кількість результатів клану (за замовчуванням: {limit})"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"title": "Пошук клану для {search} в регіоні {region}",
|
|
||||||
"no_results": "Жодного клану не знайдено"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"search_players": {
|
|
||||||
"name": "пошук гравців",
|
|
||||||
"description": "Пошук гравців",
|
|
||||||
"options": {
|
|
||||||
"limit": {
|
|
||||||
"name": "ліміт",
|
|
||||||
"description": "Максимальна кількість результатів гравця (за замовчуванням: {limit})"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"title": "Пошук гравця для {search} у регіоні {region}",
|
|
||||||
"no_results": "Гравця не знайдено"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rating_leaderboard": {
|
|
||||||
"name": "таблиця рейтингу",
|
|
||||||
"description": "Статистика рейтингових боїв",
|
|
||||||
"subcommands": {
|
|
||||||
"neighbors": {
|
|
||||||
"name": "сусіди",
|
|
||||||
"description": "Сусідуючі гравці в лідерборді"
|
|
||||||
},
|
|
||||||
"league": {
|
|
||||||
"name": "ліга",
|
|
||||||
"description": "Найкращий гравець ліги"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"limit": {
|
|
||||||
"name": "ліміт",
|
|
||||||
"description": "Скільки сусідів відобразити (за замовчуванням: {count})"
|
|
||||||
},
|
|
||||||
"season": {
|
|
||||||
"name": "сезон",
|
|
||||||
"description": "Базова інформація про гравця",
|
|
||||||
"choices": {
|
|
||||||
"current": "{season} (поточний)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"league": {
|
|
||||||
"name": "ліга",
|
|
||||||
"description": "Ліга для відображення"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"top_players": "Топ {count} гравців",
|
|
||||||
"no_participation": "# {player} не грав у рейтингу в сезоні {season}\n\nЦей гравець не брав участь у цьому сезоні або не проходив калібрування",
|
|
||||||
"no_ongoing_season": "# Немає поточного сезону\n\nВ даний час немає сезону рейтингу.",
|
|
||||||
"deleted_player": "",
|
|
||||||
"neighbors": "Сусіди по рейтингу",
|
|
||||||
"more": "+ {count} ще"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"today": {
|
|
||||||
"name": "сьогодні",
|
|
||||||
"description": "Сьогодні зіграні танки та статистика"
|
|
||||||
},
|
|
||||||
"stats": {
|
|
||||||
"name": "статистика",
|
|
||||||
"description": "Коротка статистика за період"
|
|
||||||
},
|
|
||||||
"owned_tanks": {
|
|
||||||
"name": "отримані танки",
|
|
||||||
"description": "Показує всі ваші танки даного рівня",
|
|
||||||
"body": {
|
|
||||||
"title": "# {name} отриманих рівнів {tier} танків\n\n"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"permissions": {
|
|
||||||
"name": "дозволи",
|
|
||||||
"description": "Перевіряє чи бот має необхідні дозволи для роботи",
|
|
||||||
"body": {
|
|
||||||
"title": "# Дозволи\n\n{body}",
|
|
||||||
"view_channels": "Перегляньте канали: необхідне для знаходження повідомлення, на якому використовувалася кнопка оновлення",
|
|
||||||
"read_message_history": "Прочитайте історію повідомлень: потрібно знайти повідомлення для оновлення",
|
|
||||||
"attach_files": "Закріпіть файли: потрібно для додавання зображень до команд на основі зображень",
|
|
||||||
"external_emojis": "Зовнішні емодзі: потрібні для додавання емодзі національних прапорів та класів техніки"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ping": {
|
|
||||||
"name": "",
|
|
||||||
"description": "Перевірити чи бот живий",
|
|
||||||
"body": {
|
|
||||||
"pong": "Понг🏓",
|
|
||||||
"pong_with_time": "Понг🏓 - {time}мс"
|
|
||||||
},
|
|
||||||
"subcommands": {
|
|
||||||
"blitzkit": {
|
|
||||||
"name": "BlitzKit",
|
|
||||||
"description": "Ping BlitzKit"
|
|
||||||
},
|
|
||||||
"wotb": {
|
|
||||||
"name": "WoTB",
|
|
||||||
"description": "Ping World of Tanks Blitz"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"player_info": {
|
|
||||||
"name": "інформація про гравця",
|
|
||||||
"description": "Базова інформація про гравця",
|
|
||||||
"body": {
|
|
||||||
"title": "інформація про {name}",
|
|
||||||
"nickname": "Нік",
|
|
||||||
"battles": "Бої",
|
|
||||||
"winrate": "Відсоток перемог",
|
|
||||||
"account_id": "ID акаунта",
|
|
||||||
"created": "Створено",
|
|
||||||
"last_battle": "Остання битва"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rating": {
|
|
||||||
"name": "рейтинг",
|
|
||||||
"description": "Статистика рейтингових боїв гравця ",
|
|
||||||
"subcommands": {
|
|
||||||
"today": {
|
|
||||||
"name": "сьогодні",
|
|
||||||
"description": "Сьогоднішня статистика рейтингових боїв"
|
|
||||||
},
|
|
||||||
"season": {
|
|
||||||
"name": "сезон",
|
|
||||||
"description": "Статистика рейтингових боїв поточного сезону"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"subtitle": {
|
|
||||||
"today": "Сьогоднішня статистика рейтингових боїв",
|
|
||||||
"season": "Статистика рейтингових боїв даного сезону"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"errors": {
|
|
||||||
"no_participation": "# {name} не грав рейтингові бої\n\nЦей гравець не брав участь у рейтинговому режимі цього сезону.",
|
|
||||||
"unrecorded_stats": "# Статистика на цей момент недоступна\n\nWargaming наразі зіткнулась з технічними несправностями. Якщо зараз проходить сезон, статистика буде доступною в найближчі 24 години."
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"website": {
|
"website": {
|
||||||
"redirect": {
|
"redirect": {
|
||||||
"title": "301: переміщено назавжди",
|
"title": "301: переміщено назавжди",
|
||||||
@@ -654,6 +194,7 @@
|
|||||||
"title": "Налаштування",
|
"title": "Налаштування",
|
||||||
"description": "Змінити налаштування BlitzKit ",
|
"description": "Змінити налаштування BlitzKit ",
|
||||||
"dev_mode": "Режим розробника",
|
"dev_mode": "Режим розробника",
|
||||||
|
"auto_load_models": "Auto-load models",
|
||||||
"language": "Мова"
|
"language": "Мова"
|
||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
@@ -741,30 +282,22 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home": {
|
"home": {
|
||||||
"pwa": {
|
|
||||||
"title": "",
|
|
||||||
"new": "",
|
|
||||||
"checking": "",
|
|
||||||
"instructions": ".",
|
|
||||||
"install": "",
|
|
||||||
"dismiss": "Dismiss"
|
|
||||||
},
|
|
||||||
"discord": {
|
"discord": {
|
||||||
"join_short": "Join cool people!",
|
"join_short": "Приєднуйся до суспільства!",
|
||||||
"join_long": "Join super duper cool people!",
|
"join_long": "Приєднуйся до найкрутішого суспільства!",
|
||||||
"action": "Discord"
|
"action": "Discord"
|
||||||
},
|
},
|
||||||
"hero": {
|
"hero": {
|
||||||
"credit": "By {name} ❤️"
|
"credit": "Від {name} ❤️"
|
||||||
},
|
},
|
||||||
"hot_tanks": {
|
"hot_tanks": {
|
||||||
"title": "Популярні танки",
|
"title": "Популярні танки",
|
||||||
"subtitle": "Last {days} days"
|
"subtitle": "Останні {days} днів"
|
||||||
},
|
},
|
||||||
"other_projects": {
|
"other_projects": {
|
||||||
"title": "Інші класні проєкти"
|
"title": "Інші класні проєкти"
|
||||||
},
|
},
|
||||||
"help_translate": "Please help translate {name} to {language}!",
|
"help_translate": "Будь ласка, допоможіть перекласти {name} на {language}!",
|
||||||
"seo_description": "Інструменти для всього, пов'язаного з WoT Blitz"
|
"seo_description": "Інструменти для всього, пов'язаного з WoT Blitz"
|
||||||
},
|
},
|
||||||
"docs": {
|
"docs": {
|
||||||
@@ -778,7 +311,7 @@
|
|||||||
"reset": "Скинути",
|
"reset": "Скинути",
|
||||||
"shuffle": "Перемішати",
|
"shuffle": "Перемішати",
|
||||||
"remove": "Видалити зіграні",
|
"remove": "Видалити зіграні",
|
||||||
"tracking": "BlitzKit is tracking your battles",
|
"tracking": "BlitzKit відстежує ваші бої",
|
||||||
"sort": {
|
"sort": {
|
||||||
"button": "Сортувати за",
|
"button": "Сортувати за",
|
||||||
"last_played": "Остання гра",
|
"last_played": "Остання гра",
|
||||||
@@ -804,15 +337,15 @@
|
|||||||
"description": "Tank playlist generator",
|
"description": "Tank playlist generator",
|
||||||
"seo_description": "Don't know what to play in World of Tanks Blitz? Use BlitzKit Playlist to get suggestions!",
|
"seo_description": "Don't know what to play in World of Tanks Blitz? Use BlitzKit Playlist to get suggestions!",
|
||||||
"button": "Створити",
|
"button": "Створити",
|
||||||
"pool_size": "{count} possible tanks"
|
"pool_size": "{count} можливі танки"
|
||||||
},
|
},
|
||||||
"mixer": {
|
"mixer": {
|
||||||
"name": "Mixer",
|
"name": "Mixer",
|
||||||
"button": "Mix and match",
|
"button": "Змішувати та поєднувати",
|
||||||
"description": "Mix tank modules",
|
"description": "Змішані танкові модулі",
|
||||||
"seo_description": "Mix and match hulls, turrets, and guns of tanks in World of Tanks Blitz",
|
"seo_description": "Mix and match hulls, turrets, and guns of tanks in World of Tanks Blitz",
|
||||||
"screenshot": "Screenshot",
|
"screenshot": "Знімок екрану",
|
||||||
"randomize": "Randomize"
|
"randomize": "Рандомізувати"
|
||||||
},
|
},
|
||||||
"guess": {
|
"guess": {
|
||||||
"name": "Guess",
|
"name": "Guess",
|
||||||
@@ -821,9 +354,9 @@
|
|||||||
"seo_description": "Play a tank guessing game with a silhouette in World of Tanks Blitz",
|
"seo_description": "Play a tank guessing game with a silhouette in World of Tanks Blitz",
|
||||||
"search": {
|
"search": {
|
||||||
"placeholder": "Type to guess...",
|
"placeholder": "Type to guess...",
|
||||||
"skip": "Skip",
|
"skip": "Пропустити",
|
||||||
"guess": "Guess",
|
"guess": "Guess",
|
||||||
"next": "Next",
|
"next": "Наступний",
|
||||||
"no_results": "Немає результатів"
|
"no_results": "Немає результатів"
|
||||||
},
|
},
|
||||||
"stats": "{correct} / {total} correct, {streak} streak",
|
"stats": "{correct} / {total} correct, {streak} streak",
|
||||||
@@ -838,7 +371,7 @@
|
|||||||
"tier": "Рівень {tier}"
|
"tier": "Рівень {tier}"
|
||||||
},
|
},
|
||||||
"tankopedia": {
|
"tankopedia": {
|
||||||
"search": "Search a stat...",
|
"search": "Шукаємо стати...",
|
||||||
"name": "Танкопедія",
|
"name": "Танкопедія",
|
||||||
"button": "Знайти танки",
|
"button": "Знайти танки",
|
||||||
"description": "Танкова енциклопедія",
|
"description": "Танкова енциклопедія",
|
||||||
@@ -880,6 +413,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sandbox": {
|
"sandbox": {
|
||||||
|
"load_model": "Load model",
|
||||||
"poses": {
|
"poses": {
|
||||||
"hull_down": "Від башти",
|
"hull_down": "Від башти",
|
||||||
"face_hug": "Клінч",
|
"face_hug": "Клінч",
|
||||||
@@ -909,7 +443,7 @@
|
|||||||
"ricochet": "Рикошет",
|
"ricochet": "Рикошет",
|
||||||
"explosion_radius": "Радіус розльоту уламків",
|
"explosion_radius": "Радіус розльоту уламків",
|
||||||
"exit": "Вийти",
|
"exit": "Вийти",
|
||||||
"reset": "Reset"
|
"reset": "Скинути"
|
||||||
},
|
},
|
||||||
"advanced": "Advanced highlighting",
|
"advanced": "Advanced highlighting",
|
||||||
"shot_card": {
|
"shot_card": {
|
||||||
@@ -918,7 +452,7 @@
|
|||||||
"spaced": "Spaced",
|
"spaced": "Spaced",
|
||||||
"external": "External",
|
"external": "External",
|
||||||
"gap": "Gap",
|
"gap": "Gap",
|
||||||
"gun": "Gun",
|
"gun": "Пушка",
|
||||||
"track": "Гусениці"
|
"track": "Гусениці"
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
@@ -928,7 +462,7 @@
|
|||||||
"splash": "{damage} Од"
|
"splash": "{damage} Од"
|
||||||
},
|
},
|
||||||
"stats": {
|
"stats": {
|
||||||
"thickness_and_angle": "{thickness}mm {angle}°",
|
"thickness_and_angle": "{thickness}мм {angle}°",
|
||||||
"nominal": "{thickness}mm nominal",
|
"nominal": "{thickness}mm nominal",
|
||||||
"ricochet_loss": "{loss}% penetration"
|
"ricochet_loss": "{loss}% penetration"
|
||||||
}
|
}
|
||||||
@@ -941,7 +475,7 @@
|
|||||||
"external": "External",
|
"external": "External",
|
||||||
"edit": {
|
"edit": {
|
||||||
"label": "Редагувати",
|
"label": "Редагувати",
|
||||||
"reset": "Reset"
|
"reset": "Скинути"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -954,7 +488,7 @@
|
|||||||
},
|
},
|
||||||
"vanilla": "Vanilla",
|
"vanilla": "Vanilla",
|
||||||
"opentest": "Відкритий тест",
|
"opentest": "Відкритий тест",
|
||||||
"full_name": "Full name",
|
"full_name": "Повна назва",
|
||||||
"nation": "Нація",
|
"nation": "Нація",
|
||||||
"class": "Клас",
|
"class": "Клас",
|
||||||
"tier": "Рівень",
|
"tier": "Рівень",
|
||||||
@@ -969,11 +503,11 @@
|
|||||||
"tech_tree": {
|
"tech_tree": {
|
||||||
"title": "Звичайний",
|
"title": "Звичайний",
|
||||||
"battle": "1 бій",
|
"battle": "1 бій",
|
||||||
"battles": "{count} battles",
|
"battles": "{count} битви",
|
||||||
"route": "Route {index} of {count}"
|
"route": "Route {index} of {count}"
|
||||||
},
|
},
|
||||||
"game_modes": {
|
"game_modes": {
|
||||||
"title": "Game mode abilities"
|
"title": "Здібності ігрового режиму"
|
||||||
},
|
},
|
||||||
"review": {
|
"review": {
|
||||||
"title": "Review videos",
|
"title": "Review videos",
|
||||||
@@ -983,8 +517,7 @@
|
|||||||
"title": "Configuration",
|
"title": "Configuration",
|
||||||
"equalizer": {
|
"equalizer": {
|
||||||
"title": "Equalizer",
|
"title": "Equalizer",
|
||||||
"equalize": "Equalize",
|
"equalize": "Equalize"
|
||||||
"beta": "Beta"
|
|
||||||
},
|
},
|
||||||
"modules": {
|
"modules": {
|
||||||
"title": "Модулі",
|
"title": "Модулі",
|
||||||
@@ -1040,6 +573,8 @@
|
|||||||
"shellRicochet": "Рикошет",
|
"shellRicochet": "Рикошет",
|
||||||
"dpm": "DPM",
|
"dpm": "DPM",
|
||||||
"dpmEffective": "Effective at 60s",
|
"dpmEffective": "Effective at 60s",
|
||||||
|
"peekabooDpm": "Peekaboo DPM",
|
||||||
|
"peekabooDpmInfo": "Damage per minute assuming you only fire after resetting camouflage (or the reload finishes, if it's slower) — at least 10 seconds between shots.",
|
||||||
"shells": "Снаряди",
|
"shells": "Снаряди",
|
||||||
"mostOptimalShellIndex": "Most optimal shell",
|
"mostOptimalShellIndex": "Most optimal shell",
|
||||||
"shellReloads": "Reloads",
|
"shellReloads": "Reloads",
|
||||||
@@ -1086,15 +621,16 @@
|
|||||||
"hullTraverseHardTerrain": "Hard",
|
"hullTraverseHardTerrain": "Hard",
|
||||||
"hullTraverseMediumTerrain": "Середній",
|
"hullTraverseMediumTerrain": "Середній",
|
||||||
"hullTraverseSoftTerrain": "Soft",
|
"hullTraverseSoftTerrain": "Soft",
|
||||||
"health": "Health",
|
"health": "Здоров'я",
|
||||||
"fireChance": "Fire chance",
|
"fireChance": "Fire chance",
|
||||||
|
"trackRepairTime": "Track repair time",
|
||||||
"viewRange": "View range",
|
"viewRange": "View range",
|
||||||
"camouflageStill": "Нерухомо",
|
"camouflageStill": "Нерухомо",
|
||||||
"camouflageMoving": "У русі",
|
"camouflageMoving": "У русі",
|
||||||
"camouflageShootingStill": "Нерухомо",
|
"camouflageShootingStill": "Нерухомо",
|
||||||
"camouflageShootingMoving": "У русі",
|
"camouflageShootingMoving": "У русі",
|
||||||
"camouflageCaughtOnFire": "Caught on fire",
|
"camouflageCaughtOnFire": "Caught on fire",
|
||||||
"width": "Width",
|
"width": "Ширина",
|
||||||
"height": "Height",
|
"height": "Height",
|
||||||
"length": "Length",
|
"length": "Length",
|
||||||
"volume": "Volume",
|
"volume": "Volume",
|
||||||
@@ -1208,13 +744,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"gallery": {
|
"gallery": {
|
||||||
"name": "Gallery",
|
"name": "Галерея",
|
||||||
"button": "Browse all",
|
"button": "Browse all",
|
||||||
"description": "Blitz player avatars",
|
"description": "Blitz player avatars",
|
||||||
"seo_description": "All World of Tanks Blitz player avatars",
|
"seo_description": "Усі World of Tanks Blitz аватари гравців",
|
||||||
"last_updated": "Last updated on {time}",
|
"last_updated": "Last updated on {time}",
|
||||||
"search": {
|
"search": {
|
||||||
"hint": "Search avatars...",
|
"hint": "Шукаємо аватари...",
|
||||||
"results": "{count} avatars"
|
"results": "{count} avatars"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1251,18 +787,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tier_list": {
|
"tier_list": {
|
||||||
"name": "Tier list",
|
"name": "Список рівнів",
|
||||||
"button": "Rank tanks",
|
"button": "Ранги танків",
|
||||||
"description": "Rank Blitz tanks",
|
"description": "Ранги танків з блітзу",
|
||||||
"seo_description": "Explore tier lists ranking tanks from best to worst, based on player ratings and statistical performance in World of Tanks Blitz",
|
"seo_description": "Explore tier lists ranking tanks from best to worst, based on player ratings and statistical performance in World of Tanks Blitz",
|
||||||
"buttons": {
|
"buttons": {
|
||||||
"reset": "Reset",
|
"reset": "Скинути",
|
||||||
"share": "Share"
|
"share": "Поділитися"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"embed": {
|
"embed": {
|
||||||
"name": "Embed",
|
"name": "Embed",
|
||||||
"button": "Create now",
|
"button": "Створити зараз",
|
||||||
"description": "Embeds for streaming",
|
"description": "Embeds for streaming",
|
||||||
"seo_description": "Create embeds for streaming World of Tanks Blitz with extreme customization",
|
"seo_description": "Create embeds for streaming World of Tanks Blitz with extreme customization",
|
||||||
"coming_soon": "More embeds coming soon.",
|
"coming_soon": "More embeds coming soon.",
|
||||||
@@ -1273,20 +809,20 @@
|
|||||||
},
|
},
|
||||||
"configuration": {
|
"configuration": {
|
||||||
"import": {
|
"import": {
|
||||||
"title": "Import",
|
"title": "Імпортувати",
|
||||||
"description": "Paste your current URL if you have one already to import your settings",
|
"description": "Paste your current URL if you have one already to import your settings",
|
||||||
"hint": "Paste URL...",
|
"hint": "Вставити посилання...",
|
||||||
"apply": "Apply",
|
"apply": "Apply",
|
||||||
"idiot_title": "Invalid URL",
|
"idiot_title": "Некоректне посилання",
|
||||||
"idiot_description": "Try pasting the URL that BlitzKit previously generated, you silly goose!",
|
"idiot_description": "Try pasting the URL that BlitzKit previously generated, you silly goose!",
|
||||||
"idiot_button": "Okay, my bad"
|
"idiot_button": "Okay, my bad"
|
||||||
},
|
},
|
||||||
"export": {
|
"export": {
|
||||||
"title": "Export",
|
"title": "Експортувати",
|
||||||
"description": "Copy all properties for you streaming software",
|
"description": "Copy all properties for you streaming software",
|
||||||
"generate": {
|
"generate": {
|
||||||
"button": "Generate URL",
|
"button": "Згенерувати посилання",
|
||||||
"title": "Generate URL",
|
"title": "Генерація посилання",
|
||||||
"subtitle": "Search an account to track",
|
"subtitle": "Search an account to track",
|
||||||
"cancel": "",
|
"cancel": "",
|
||||||
"success": {
|
"success": {
|
||||||
@@ -1303,7 +839,7 @@
|
|||||||
},
|
},
|
||||||
"customize": {
|
"customize": {
|
||||||
"title": "Customize",
|
"title": "Customize",
|
||||||
"reset": "Reset",
|
"reset": "Скинути",
|
||||||
"description": "Bells and whistles of your embed"
|
"description": "Bells and whistles of your embed"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1311,7 +847,7 @@
|
|||||||
"breakdown": {
|
"breakdown": {
|
||||||
"name": "Breakdown",
|
"name": "Breakdown",
|
||||||
"options": {
|
"options": {
|
||||||
"width": "Width",
|
"width": "Ширина",
|
||||||
"height": "Height",
|
"height": "Height",
|
||||||
"showTotal": "Show total",
|
"showTotal": "Show total",
|
||||||
"listGap": "List gap",
|
"listGap": "List gap",
|
||||||
@@ -1351,14 +887,14 @@
|
|||||||
"seo_description": "Live and archived full rating leaderboard for World of Tanks Blitz"
|
"seo_description": "Live and archived full rating leaderboard for World of Tanks Blitz"
|
||||||
},
|
},
|
||||||
"discord": {
|
"discord": {
|
||||||
"name": "Discord bot",
|
"name": "Діскорд бот",
|
||||||
"button": "Install now",
|
"button": "Встановити зараз",
|
||||||
"description": "Stats right in Discord",
|
"description": "Stats right in Discord",
|
||||||
"seo_description": "Get stats right in Discord with BlitzKit's Discord bot"
|
"seo_description": "Get stats right in Discord with BlitzKit's Discord bot"
|
||||||
},
|
},
|
||||||
"more": {
|
"more": {
|
||||||
"name": "More coming soon",
|
"name": "Буде через певний час",
|
||||||
"button": "Join Discord",
|
"button": "Приєднатись до Діскорду",
|
||||||
"description": "What we're making",
|
"description": "What we're making",
|
||||||
"seo_description": "What we're making with BlitzKit"
|
"seo_description": "What we're making with BlitzKit"
|
||||||
},
|
},
|
||||||
|
|||||||
+166
-630
File diff suppressed because it is too large.
Load diff
@@ -1,5 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "@blitzkit/scripts",
|
"name": "@blitzkit/scripts",
|
||||||
|
"private": true,
|
||||||
|
"scripts": {
|
||||||
|
"discover-ids": "bun src/discoverIds/index.ts",
|
||||||
|
"build-protos": "bun src/protos.ts",
|
||||||
|
"record-performance": "bun src/recordPerformance/index.ts",
|
||||||
|
"download-client": "bun src/downloadClient/index.ts",
|
||||||
|
"vfs": "bun src/vfs/index.ts"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blitzkit/closed": "workspace:*",
|
"@blitzkit/closed": "workspace:*",
|
||||||
"@blitzkit/core": "workspace:*",
|
"@blitzkit/core": "workspace:*",
|
||||||
@@ -34,20 +42,5 @@
|
|||||||
"unzipit": "^1.4.3",
|
"unzipit": "^1.4.3",
|
||||||
"yaml": "^2.8.1"
|
"yaml": "^2.8.1"
|
||||||
},
|
},
|
||||||
"private": true,
|
|
||||||
"scripts": {
|
|
||||||
"build:assets": "bun src/buildAssets/index.ts",
|
|
||||||
"build:averages": "bun src/averages.ts",
|
|
||||||
"setup:depotdownloader": "bun src/setupDepotDownloader.ts",
|
|
||||||
"setup:patches": "bun src/applyPatches.ts",
|
|
||||||
"build:reviews": "bun src/reviews.ts",
|
|
||||||
"build:ids": "bun src/discoverIds/index.ts",
|
|
||||||
"build:ratingleaderboard": "bun src/buildRatingLeaderboard.ts",
|
|
||||||
"build:proxyclient": "bun src/buildProxyClient.ts",
|
|
||||||
"build:catalogitemaccesssor": "bun src/buildCatalogItemAccessor.ts",
|
|
||||||
"prunestrings": "bun src/pruneStrings.ts",
|
|
||||||
"build:protos": "bun src/protos.ts",
|
|
||||||
"patchnotes": "bun src/patchNotes.ts"
|
|
||||||
},
|
|
||||||
"type": "module"
|
"type": "module"
|
||||||
}
|
}
|
||||||
@@ -1,229 +0,0 @@
|
|||||||
import {
|
|
||||||
AverageDefinitions,
|
|
||||||
AverageDefinitionsAllStats,
|
|
||||||
AverageDefinitionsEntry,
|
|
||||||
type IndividualTankStats,
|
|
||||||
REGIONS,
|
|
||||||
type Region,
|
|
||||||
Samples,
|
|
||||||
averageDefinitionsAllStatsKeys,
|
|
||||||
emptySamples,
|
|
||||||
getAccountInfo,
|
|
||||||
getTankStats,
|
|
||||||
idToRegion,
|
|
||||||
} from "@blitzkit/core";
|
|
||||||
import { chunk, times } from "lodash-es";
|
|
||||||
import { AssetUploader } from "./core/github/assetUploader";
|
|
||||||
import { fetchPreDiscoveredIds } from "./core/github/fetchPreDiscoveredIds";
|
|
||||||
|
|
||||||
interface DataPoint {
|
|
||||||
x: number;
|
|
||||||
y: number;
|
|
||||||
w: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
const MINUTE = 60 * 1000;
|
|
||||||
const HOUR = 60 * MINUTE;
|
|
||||||
const DAY = 24 * HOUR;
|
|
||||||
// const MAX_ACTIVITY_TIME = 120 * DAY;
|
|
||||||
// const MIN_BATTLES = 5000;
|
|
||||||
const RUN_TIME = 5 * HOUR + 55 * MINUTE;
|
|
||||||
const THREADS = 10;
|
|
||||||
const PLAYER_IDS_PER_CALL = 100;
|
|
||||||
|
|
||||||
const startTime = Date.now();
|
|
||||||
const preDiscoveredIds = await fetchPreDiscoveredIds();
|
|
||||||
const playerIds: Record<Region, number[][]> = {
|
|
||||||
asia: chunk(
|
|
||||||
preDiscoveredIds.filter((id) => idToRegion(id) === "asia"),
|
|
||||||
PLAYER_IDS_PER_CALL,
|
|
||||||
),
|
|
||||||
com: chunk(
|
|
||||||
preDiscoveredIds.filter((id) => idToRegion(id) === "com"),
|
|
||||||
PLAYER_IDS_PER_CALL,
|
|
||||||
),
|
|
||||||
eu: chunk(
|
|
||||||
preDiscoveredIds.filter((id) => idToRegion(id) === "eu"),
|
|
||||||
PLAYER_IDS_PER_CALL,
|
|
||||||
),
|
|
||||||
};
|
|
||||||
let regionIndex = 0;
|
|
||||||
const samples: Samples = { ...emptySamples };
|
|
||||||
const availableRegions = [...REGIONS];
|
|
||||||
const tankIds: number[] = [];
|
|
||||||
const tanksSorted: Record<number, IndividualTankStats[]> = {};
|
|
||||||
let postWorkRequested = false;
|
|
||||||
|
|
||||||
times(THREADS, async () => {
|
|
||||||
while (availableRegions.length > 0 && startTime + RUN_TIME > Date.now()) {
|
|
||||||
const region = availableRegions[regionIndex];
|
|
||||||
const regionIds = playerIds[region];
|
|
||||||
const [ids] = regionIds.splice(
|
|
||||||
Math.floor(Math.random() * regionIds.length),
|
|
||||||
1,
|
|
||||||
);
|
|
||||||
const accountInfo = await getAccountInfo(region, ids, undefined, {
|
|
||||||
fields: "last_battle_time,statistics.all.battles",
|
|
||||||
});
|
|
||||||
|
|
||||||
const filteredIds = ids.filter((_, index) => {
|
|
||||||
const info = accountInfo[index];
|
|
||||||
|
|
||||||
if (info === null) return false;
|
|
||||||
|
|
||||||
const timeSinceLastActivity = Date.now() - info.last_battle_time * 1000;
|
|
||||||
|
|
||||||
samples.total++;
|
|
||||||
if (timeSinceLastActivity <= 120 * DAY) samples.d_120++;
|
|
||||||
if (timeSinceLastActivity <= 90 * DAY) samples.d_90++;
|
|
||||||
if (timeSinceLastActivity <= 60 * DAY) samples.d_60++;
|
|
||||||
if (timeSinceLastActivity <= 30 * DAY) samples.d_30++;
|
|
||||||
if (timeSinceLastActivity <= 7 * DAY) samples.d_7++;
|
|
||||||
if (timeSinceLastActivity <= 1 * DAY) samples.d_1++;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
|
|
||||||
// return (
|
|
||||||
// timeSinceLastActivity <= MAX_ACTIVITY_TIME &&
|
|
||||||
// info.statistics.all.battles > MIN_BATTLES
|
|
||||||
// );
|
|
||||||
});
|
|
||||||
|
|
||||||
const players = await Promise.all(
|
|
||||||
filteredIds.map((id) =>
|
|
||||||
getTankStats(region, id, {
|
|
||||||
fields: "last_battle_time,battle_life_time,all,tank_id",
|
|
||||||
}),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
|
|
||||||
players.forEach((tanks) => {
|
|
||||||
tanks?.forEach((tank) => {
|
|
||||||
if (tank.all.battles === 0) return;
|
|
||||||
|
|
||||||
if (!tankIds.includes(tank.tank_id)) {
|
|
||||||
console.log(
|
|
||||||
`Found new tank: ${tank.tank_id} (${tankIds.length + 1})`,
|
|
||||||
);
|
|
||||||
tankIds.push(tank.tank_id);
|
|
||||||
tanksSorted[tank.tank_id] = [];
|
|
||||||
}
|
|
||||||
|
|
||||||
tanksSorted[tank.tank_id].push(tank);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
if (regionIds.length === 0 && availableRegions.includes(region)) {
|
|
||||||
availableRegions.splice(availableRegions.indexOf(region), 1);
|
|
||||||
}
|
|
||||||
regionIndex = (regionIndex + 1) % availableRegions.length;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!postWorkRequested) {
|
|
||||||
postWorkRequested = true;
|
|
||||||
postWork();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
async function postWork() {
|
|
||||||
console.log(
|
|
||||||
`Generating statistics based on ${samples.d_120.toLocaleString()} players (${samples.total.toLocaleString()} checked in total) and ${
|
|
||||||
tankIds.length
|
|
||||||
} tanks...`,
|
|
||||||
);
|
|
||||||
|
|
||||||
using uploader = new AssetUploader("averages");
|
|
||||||
const averages: Record<number, AverageDefinitionsEntry> = {};
|
|
||||||
|
|
||||||
tankIds.forEach((id) => {
|
|
||||||
const tanksSortedEntry = tanksSorted[id];
|
|
||||||
// const tanks = tanksSortedEntry.filter(
|
|
||||||
// (tank) => Date.now() - tank.last_battle_time * 1000 <= MAX_ACTIVITY_TIME,
|
|
||||||
// );
|
|
||||||
const tanks = tanksSortedEntry;
|
|
||||||
const entry: {
|
|
||||||
mu: Partial<Record<keyof AverageDefinitionsAllStats, number>>;
|
|
||||||
sigma: Partial<Record<keyof AverageDefinitionsAllStats, number>>;
|
|
||||||
r: Partial<Record<keyof AverageDefinitionsAllStats, number>>;
|
|
||||||
samples: Samples;
|
|
||||||
} = {
|
|
||||||
mu: {},
|
|
||||||
sigma: {},
|
|
||||||
r: {},
|
|
||||||
samples: { ...emptySamples },
|
|
||||||
};
|
|
||||||
|
|
||||||
tanks.forEach((tank) => {
|
|
||||||
const timeSinceLastActivity = Date.now() - tank.last_battle_time * 1000;
|
|
||||||
|
|
||||||
entry.samples!.total++;
|
|
||||||
if (timeSinceLastActivity <= 120 * DAY) entry.samples!.d_120++;
|
|
||||||
if (timeSinceLastActivity <= 90 * DAY) entry.samples!.d_90++;
|
|
||||||
if (timeSinceLastActivity <= 60 * DAY) entry.samples!.d_60++;
|
|
||||||
if (timeSinceLastActivity <= 30 * DAY) entry.samples!.d_30++;
|
|
||||||
if (timeSinceLastActivity <= 7 * DAY) entry.samples!.d_7++;
|
|
||||||
if (timeSinceLastActivity <= 1 * DAY) entry.samples!.d_1++;
|
|
||||||
});
|
|
||||||
|
|
||||||
const dataWY = tanks.map((tank) => ({
|
|
||||||
w: tank.all.battles,
|
|
||||||
y: tank.all.wins / tank.all.battles,
|
|
||||||
}));
|
|
||||||
|
|
||||||
averageDefinitionsAllStatsKeys.forEach((key) => {
|
|
||||||
const data: DataPoint[] = dataWY.map(({ w, y }, index) => ({
|
|
||||||
w,
|
|
||||||
x:
|
|
||||||
(key === "battle_life_time"
|
|
||||||
? tanks[index].battle_life_time
|
|
||||||
: tanks[index].all[key]) / w,
|
|
||||||
y,
|
|
||||||
}));
|
|
||||||
|
|
||||||
if (data.length === 0) return;
|
|
||||||
|
|
||||||
function sum(slicer: (data: DataPoint) => number) {
|
|
||||||
return data.reduce(
|
|
||||||
(accumulator, data) => accumulator + slicer(data),
|
|
||||||
0,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const sum_w = sum(({ w }) => w);
|
|
||||||
const sum_wx = sum(({ w, x }) => w * x);
|
|
||||||
const sum_wy = sum(({ w, y }) => w * y);
|
|
||||||
const x_bar = sum_wx / sum_w;
|
|
||||||
const y_bar = sum_wy / sum_w;
|
|
||||||
// undo normalization for mu to get a simple average
|
|
||||||
const mu = sum(({ w, x }) => w * x) / samples.d_120;
|
|
||||||
|
|
||||||
const sigma_numerator = sum(({ w, x }) => w * (x - x_bar) ** 2);
|
|
||||||
const sigma = Math.sqrt(sigma_numerator / sum_w);
|
|
||||||
|
|
||||||
const r_numerator = sum(({ w, x, y }) => w * (x - x_bar) * (y - y_bar));
|
|
||||||
const r_denominator_x = sum(({ w, x }) => w * (x - x_bar) ** 2);
|
|
||||||
const r_denominator_y = sum(({ w, y }) => w * (y - y_bar) ** 2);
|
|
||||||
const r = r_numerator / Math.sqrt(r_denominator_x * r_denominator_y);
|
|
||||||
|
|
||||||
entry.mu[key] = mu;
|
|
||||||
entry.sigma[key] = sigma;
|
|
||||||
entry.r[key] = isNaN(r) ? 0 : r;
|
|
||||||
});
|
|
||||||
|
|
||||||
averages[id] = entry as AverageDefinitionsEntry;
|
|
||||||
});
|
|
||||||
|
|
||||||
const time = Date.now();
|
|
||||||
const averageDefinitions = {
|
|
||||||
averages,
|
|
||||||
samples,
|
|
||||||
time,
|
|
||||||
} satisfies AverageDefinitions;
|
|
||||||
|
|
||||||
await uploader.add({
|
|
||||||
path: "averages.pb",
|
|
||||||
content: AverageDefinitions.encode(averageDefinitions).finish(),
|
|
||||||
});
|
|
||||||
|
|
||||||
await uploader.flush();
|
|
||||||
}
|
|
||||||
@@ -1,62 +0,0 @@
|
|||||||
import { readdir, readFile, writeFile } from "fs/promises";
|
|
||||||
|
|
||||||
const SOURCES = "../../packages/closed/protos";
|
|
||||||
const TARGET = "../../packages/closed/src/unreal/catalogItemAccessor.ts";
|
|
||||||
|
|
||||||
const componentPattern = /^message (\w+)Component {/gm;
|
|
||||||
|
|
||||||
const files = await readdir(SOURCES).then((files) =>
|
|
||||||
files.filter(
|
|
||||||
(file) =>
|
|
||||||
file.startsWith("blitz_static_") && file.endsWith("_component.proto")
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
const imports: { name: string; file: string }[] = [];
|
|
||||||
|
|
||||||
for (const file of files) {
|
|
||||||
const content = await readFile(`${SOURCES}/${file}`).then((buffer) =>
|
|
||||||
buffer.toString()
|
|
||||||
);
|
|
||||||
const components = content.matchAll(componentPattern);
|
|
||||||
|
|
||||||
for (const match of components) {
|
|
||||||
const name = match[1];
|
|
||||||
const duplicate = imports.find((_import) => _import.name === name);
|
|
||||||
|
|
||||||
if (duplicate) {
|
|
||||||
console.warn(
|
|
||||||
`Duplicate component ${name} across ${duplicate.file}.proto and ${file}`
|
|
||||||
);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
const importFile = file.replace(".proto", "");
|
|
||||||
|
|
||||||
imports.push({ name, file: importFile });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let content = "";
|
|
||||||
|
|
||||||
for (const _import of imports) {
|
|
||||||
content += `import { ${_import.name}Component } from "@protos/${_import.file}";\n`;
|
|
||||||
}
|
|
||||||
|
|
||||||
content +=
|
|
||||||
'import { BaseCatalogItemAccessor } from "./baseCatalogItemAccessor";\n\n';
|
|
||||||
content +=
|
|
||||||
"export class CatalogItemAccessor extends BaseCatalogItemAccessor {\n";
|
|
||||||
|
|
||||||
for (const _import of imports) {
|
|
||||||
const strippedName = _import.name.replace("BlitzStatic", "");
|
|
||||||
const defaultName = strippedName[0].toLowerCase() + strippedName.slice(1);
|
|
||||||
|
|
||||||
content += ` ${strippedName}(name = "${defaultName}Component") {\n`;
|
|
||||||
content += ` return this.component(name, ${_import.name}Component);\n`;
|
|
||||||
content += " }\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
content += "}\n";
|
|
||||||
|
|
||||||
await writeFile(TARGET, content);
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
import { readFile, writeFile } from "fs/promises";
|
|
||||||
|
|
||||||
const IMPORT = "@protos/auto_legacy_proxy_client";
|
|
||||||
const SOURCE = "../../packages/closed/protos/auto_legacy_proxy_client.proto";
|
|
||||||
const TARGET = "../../packages/closed/src/unreal/methodPopulatedProxyClient.ts";
|
|
||||||
|
|
||||||
const requestPattern = /^message (\w+)Request {/gm;
|
|
||||||
const source = await readFile(SOURCE).then((buffer) => buffer.toString());
|
|
||||||
const requests = source.matchAll(requestPattern);
|
|
||||||
|
|
||||||
const imports: string[] = [];
|
|
||||||
const names: string[] = [];
|
|
||||||
|
|
||||||
for (const match of requests) {
|
|
||||||
const name = match[1];
|
|
||||||
|
|
||||||
imports.push(`${name}Request`, `${name}Response`);
|
|
||||||
names.push(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
let content = "";
|
|
||||||
|
|
||||||
content += "import {\n";
|
|
||||||
content += imports.map((i) => ` ${i},`).join("\n");
|
|
||||||
content += `\n} from "${IMPORT}";\n`;
|
|
||||||
|
|
||||||
content += 'import { BaseProxyClient } from "./baseProxyClient";\n\n';
|
|
||||||
|
|
||||||
content +=
|
|
||||||
"export abstract class MethodPopulatedProxyClient extends BaseProxyClient {\n";
|
|
||||||
content += names
|
|
||||||
.map((name) => {
|
|
||||||
return ` ${name}(data: ${name}Request) {
|
|
||||||
return this.request("${name}Request", ${name}Request, data, ${name}Response);
|
|
||||||
}\n`;
|
|
||||||
})
|
|
||||||
.join("");
|
|
||||||
content += "}\n";
|
|
||||||
|
|
||||||
await writeFile(TARGET, content);
|
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
import { $ } from "bun";
|
||||||
|
import { mkdir, rm } from "node:fs/promises";
|
||||||
|
|
||||||
|
export class GitObjectStorage {
|
||||||
|
constructor(
|
||||||
|
private repo: string,
|
||||||
|
private base: string,
|
||||||
|
private token?: string,
|
||||||
|
) {}
|
||||||
|
|
||||||
|
async init() {
|
||||||
|
await rm(this.base, { recursive: true, force: true });
|
||||||
|
|
||||||
|
console.log(`Cloning ${this.repo} to ${this.base}`);
|
||||||
|
|
||||||
|
const url = this.token
|
||||||
|
? `https://x-access-token:${this.token}@github.com/${this.repo}.git`
|
||||||
|
: `https://github.com/${this.repo}.git`;
|
||||||
|
|
||||||
|
await $`git clone --depth 1 ${url} ${this.base}`;
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
async commit() {
|
||||||
|
const shell = $.cwd(this.base);
|
||||||
|
|
||||||
|
await shell`git add .`.quiet();
|
||||||
|
await shell`git commit --amend --reset-author -m "ids update ${new Date().toISOString()}"`.quiet();
|
||||||
|
await shell`git push --force-with-lease`;
|
||||||
|
}
|
||||||
|
|
||||||
|
async mkdir(path: string) {
|
||||||
|
await mkdir(`${this.base}/${path}`, { recursive: true });
|
||||||
|
}
|
||||||
|
|
||||||
|
async rm(path: string) {
|
||||||
|
await rm(`${this.base}/${path}`, { force: true });
|
||||||
|
}
|
||||||
|
|
||||||
|
async write(path: string, bytes: Uint8Array | string) {
|
||||||
|
await Bun.write(`${this.base}/${path}`, bytes);
|
||||||
|
}
|
||||||
|
|
||||||
|
file(path: string) {
|
||||||
|
return Bun.file(`${this.base}/${path}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
async bytes(path: string) {
|
||||||
|
const file = this.file(path);
|
||||||
|
return await file.bytes();
|
||||||
|
}
|
||||||
|
|
||||||
|
async json<Type>(path: string) {
|
||||||
|
const file = this.file(path);
|
||||||
|
return (await file.json()) as Type;
|
||||||
|
}
|
||||||
|
}
|
||||||
+7
@@ -1,3 +1,5 @@
|
|||||||
|
import { decompress } from "lz4js";
|
||||||
|
|
||||||
export class IdArray {
|
export class IdArray {
|
||||||
constructor(
|
constructor(
|
||||||
private array: Uint32Array = new Uint32Array(),
|
private array: Uint32Array = new Uint32Array(),
|
||||||
@@ -57,6 +59,11 @@ export class IdArray {
|
|||||||
return new IdArray(uintArray, size);
|
return new IdArray(uintArray, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static fromCompressed(bytes: Uint8Array) {
|
||||||
|
const decompressed = decompress(bytes);
|
||||||
|
return this.fromBytes(decompressed);
|
||||||
|
}
|
||||||
|
|
||||||
static fromArray(array: number[]) {
|
static fromArray(array: number[]) {
|
||||||
const uintArray = new Uint32Array(this.nextPowerOf2(array.length));
|
const uintArray = new Uint32Array(this.nextPowerOf2(array.length));
|
||||||
|
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
export const API_RATE = 10; // 10Hz
|
||||||
|
export const MAX_IDS_PER_CALL = 100;
|
||||||
|
export const MAX_DRY_STREAK = 10_000;
|
||||||
|
|
||||||
|
export const ACCOMMODATED_ID_COUNT = 500_000_000; // 500M ids
|
||||||
|
|
||||||
|
const PERFORMANCE_RUN_TIME = (5 * 60 + 30) * 60;
|
||||||
|
export const IDS_PER_CHUNK = PERFORMANCE_RUN_TIME * API_RATE;
|
||||||
|
export const CHUNK_COUNT = Math.ceil(ACCOMMODATED_ID_COUNT / IDS_PER_CHUNK);
|
||||||
Loaded 100 of 211 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user