mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
Compare commits
1
Commits
main
..
light-room
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1551cfe2b9 |
No files matched your search
@@ -1,38 +0,0 @@
|
|||||||
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?
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
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.
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
version: 2
|
|
||||||
updates:
|
|
||||||
- package-ecosystem: "bun"
|
|
||||||
directory: "/"
|
|
||||||
schedule:
|
|
||||||
interval: "daily"
|
|
||||||
@@ -139,14 +139,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Trigger deployment
|
- name: Trigger deployment
|
||||||
|
|
||||||
# Deploy if:
|
if: ${{ github.ref == 'refs/heads/production' }}
|
||||||
# 1. Running cron from main using content from production to target production
|
|
||||||
# 2. Running manually and targeting non-production
|
|
||||||
if: >-
|
|
||||||
${{
|
|
||||||
github.ref == 'refs/heads/production' ||
|
|
||||||
(inputs.environment != '' && inputs.environment != 'production')
|
|
||||||
}}
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TOKEN: ${{ secrets.GH_NODE_DEPLOY_TOKEN }}
|
TOKEN: ${{ secrets.GH_NODE_DEPLOY_TOKEN }}
|
||||||
|
|||||||
@@ -1,661 +0,0 @@
|
|||||||
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
@@ -0,0 +1,50 @@
|
|||||||
|
# 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,75 +1,41 @@
|
|||||||
# BlitzKit
|
# BlitzKit
|
||||||
|
|
||||||
Your Blitz experience, elevated. https://blitzkit.app/.
|
Tools for everything and anything, World of Tanks Blitz.
|
||||||
|
|
||||||
## Developing: Prerequisites
|
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/.
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
### Bun
|
## Packages
|
||||||
|
|
||||||
[Bun](https://bun.sh/) is the package manager and runtime that BlitzKit uses.
|
| Package | Title | Source | Memo |
|
||||||
|
| ------------------------------------ | -------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
|
||||||
|
| [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. |
|
||||||
|
|
||||||
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.
|
## Submodules
|
||||||
|
|
||||||
### Protocol Buffer
|
| Submodule | Title | Source | Memo |
|
||||||
|
| ------------------------------------------------------ | --------- | ----------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
|
| [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. |
|
||||||
|
|
||||||
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.
|
## Environment Variables
|
||||||
|
|
||||||
### World of Tanks Blitz
|
| Name | Source | BlitzKit Default | Memo |
|
||||||
|
| ------------------------------------------------------------- | -------------------------------------------------------------------------------- | ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
You will need a local installation of [World of Tanks Blitz](https://wotblitz.com/) for BlitzKit to build off.
|
| `PUBLIC_WARGAMING_APPLICATION_ID` | [Wargaming Developer's Room](https://developers.wargaming.net/) | | Application ID needed to communicate with Wargaming APIs. |
|
||||||
|
| `PUBLIC_PROMOTE_OPENTEST` | | `false` | Optional boolean dictating whether the website advertises [the opentest subdomain of BlitzKit](https://opentest.blitzkit.app/). |
|
||||||
### 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
|
|
||||||
```
|
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"words": [
|
"words": [
|
||||||
"gamemodes",
|
"gamemodes",
|
||||||
"Tankopedia"
|
"Tankopedia"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ Thank you to [Mark Greene](https://github.com/Hitjack007) for your contributions
|
|||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Combined game mode passive and active abilities into a single dropdown
|
- Combined game mode passive and active abilities into a single dropdown
|
||||||
- Added tier filters to the Guess game [Mark Greene]
|
- [Mark Greene] Added tier filters to the Guess game
|
||||||
- Changing tiers will break your streak
|
- Changing tiers will break your streak
|
||||||
|
|
||||||
## Fixes
|
## Fixes
|
||||||
|
|
||||||
- module damage is now properly shown when sorting with it in the tank search [Mark Greene]
|
- [Mark Greene] module damage is now properly shown when sorting with it in the tank search
|
||||||
- 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
|
||||||
|
|
||||||
- The turret for Centurion I is no longer offset from the body [GonnaHetzMe]
|
- [GonnaHetzMe] The turret for Centurion I is no longer offset from the body
|
||||||
- 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
|
||||||
|
|||||||
@@ -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
|
||||||
- Stock turrets now correctly mount the corresponding stock gun [Mark Greene]
|
- [Mark Greene] Stock turrets now correctly mount the corresponding stock gun
|
||||||
- The consumable and provision buttons in Compare are no longer tiny
|
- The consumable and provision buttons in Compare are no longer tiny
|
||||||
@@ -5,10 +5,10 @@ Thank you to [Mark Greene](https://github.com/Hitjack007) for your contributions
|
|||||||
## 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
|
||||||
- Added the ability to filter tanks by consumables [Mark Greene]
|
- [Mark Greene] Added the ability to filter tanks by consumables
|
||||||
- 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
|
||||||
- Provisions now properly affect terrain resistances [Mark Greene]
|
- [Mark Greene] Provisions now properly affect terrain resistances
|
||||||
@@ -13,11 +13,11 @@ Thank you to [GonnaHetzMe](https://github.com/karelpak1) for your contributions
|
|||||||
|
|
||||||
## Technical Features
|
## Technical Features
|
||||||
|
|
||||||
- Enabling dev mode now displays the tank's non-numerical id [GonnaHetzMe]
|
- [GonnaHetzMe] Enabling dev mode now displays the tank's non-numerical id
|
||||||
- The dev id and the new dev name are now copyable on click [GonnaHetzMe]
|
- [GonnaHetzMe] The dev id and the new dev name are now copyable on click
|
||||||
|
|
||||||
## Fixes
|
## Fixes
|
||||||
|
|
||||||
- Tech trees that start at tiers higher than tier 1 like the Blitz Nation ones now properly render their trees in Tankopedia [GonnaHetzMe]
|
- [GonnaHetzMe] Tech trees that start at tiers higher than tier 1 like the Blitz Nation ones now properly render their trees in Tankopedia
|
||||||
- The tank pitch/yaw inputs in the Tank Sandbox now initialize with the correct values instead of 0 [GonnaHetzMe]
|
- [GonnaHetzMe] The tank pitch/yaw inputs in the Tank Sandbox now initialize with the correct values instead of 0
|
||||||
- Large Repair Kits once again use the correct modern icon [GonnaHetzMe]
|
- [GonnaHetzMe] Large Repair Kits once again use the correct modern icon
|
||||||
@@ -4,5 +4,5 @@ Thank you to [GonnaHetzMe](https://github.com/karelpak1) for your contributions
|
|||||||
|
|
||||||
## Fixes
|
## Fixes
|
||||||
|
|
||||||
- Tank hit points in Equalizer mode is now accurate to the game [GonnaHetzMe]
|
- [GonnaHetzMe] Tank hit points in Equalizer mode is now accurate to the game
|
||||||
- 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
|
||||||
|
|
||||||
- Tungsten shells are now properly cropped [GonnaHetzMe]
|
- [GonnaHetzMe] Tungsten shells are now properly cropped
|
||||||
- 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
|
||||||
- The RHM. Pzw.'s turret no longer has the floating plate [GonnaHetzMe]
|
- [GonnaHetzMe] The RHM. Pzw.'s turret no longer has the floating plate
|
||||||
- Please give BlitzKit up to 1 hour to update the model
|
- Please give BlitzKit up to 1 hour to update the model
|
||||||
- Tanks with inclined turret rings like the Minotauro now display the correct pitch in the tank sandbox inputs [GonnaHetzMe]
|
- [GonnaHetzMe] Tanks with inclined turret rings like the Minotauro now display the correct pitch in the tank sandbox inputs
|
||||||
@@ -4,7 +4,7 @@ Thank you to [GonnaHetzMe](https://github.com/karelpak1) for your contributions
|
|||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Added tooltips to the module selector in Tankopedia [GonnaHetzMe]
|
- [GonnaHetzMe] Added tooltips to the module selector in Tankopedia
|
||||||
|
|
||||||
## 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
|
||||||
- Tanks with complex transparency like the Herdbreaker once again handle opacity correctly [GonnaHetzMe]
|
- [GonnaHetzMe] Tanks with complex transparency like the Herdbreaker once again handle opacity correctly
|
||||||
- Pieces of tank models that have transparency now handle culling properly (they're visible from both sides) [GonnaHetzMe]
|
- [GonnaHetzMe] Pieces of tank models that have transparency now handle culling properly (they're visible from both sides)
|
||||||
- Tanks with "cardboard" textures have been fixed, thanks to better PVR file parsing [GonnaHetzMe]
|
- [GonnaHetzMe] Tanks with "cardboard" textures have been fixed, thanks to better PVR file parsing
|
||||||
- Tank icons are now scaled correctly so small tanks are now properly zoomed out in contrast to bigger ones [GonnaHetzMe]
|
- [GonnaHetzMe] Tank icons are now scaled correctly so small tanks are now properly zoomed out in contrast to bigger ones
|
||||||
@@ -8,13 +8,13 @@ Thank you to [Mark Greene](https://github.com/Hitjack007) for your contributions
|
|||||||
|
|
||||||
## Fixes
|
## Fixes
|
||||||
|
|
||||||
- Clicking on the armor multiple times with HE no longer crashes BlitzKit [Mark Greene]
|
- [Mark Greene] Clicking on the armor multiple times with HE no longer crashes BlitzKit
|
||||||
- Ricochets that later intersect with external modules no longer falsely claim a successful damaging penetration [Mark Greene]
|
- [Mark Greene] Ricochets that later intersect with external modules no longer falsely claim a successful damaging penetration
|
||||||
- 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
|
||||||
- Safari no longer crashes when unloading textures for unloaded tanks [Mark Greene]
|
- [Mark Greene] Safari no longer crashes when unloading textures for unloaded tanks
|
||||||
- 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
|
||||||
- Armor plate names in Static Armor are now properly capitalized in English and translated to other languages [Mark Greene]
|
- [Mark Greene] Armor plate names in Static Armor are now properly capitalized in English and translated to other languages
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
# 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.
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
# BlitzKit 1.31.3
|
|
||||||
|
|
||||||
This update updates BlitzKit to work with the game's new ID system for game modes.
|
|
||||||
@@ -1,98 +0,0 @@
|
|||||||
# BlitzKit 1.32.0
|
|
||||||
|
|
||||||
Thank you to [Mark Greene](https://github.com/Hitjack007) for your contributions this update.
|
|
||||||
|
|
||||||
## Features
|
|
||||||
|
|
||||||
### Tankopedia & Armor
|
|
||||||
|
|
||||||
- Added a spall liner button to the Tankopedia beside the other equipment [Mark Greene]
|
|
||||||
- Listed track repair times in the Tankopedia [Mark Greene]
|
|
||||||
- The penetration chance is now displayed when penetration testing armor [Mark Greene]
|
|
||||||
- Added a new setting to disable automatically loading tanks in Tankopedia [Mark Greene]
|
|
||||||
|
|
||||||
### Tank Performance & Mechanics
|
|
||||||
|
|
||||||
- Added Peekaboo DPM [Mark Greene]
|
|
||||||
- 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 [Mark Greene]
|
|
||||||
|
|
||||||
### Game Compatibility
|
|
||||||
|
|
||||||
- Added compatibility for tier XI tanks [Mark Greene]
|
|
||||||
|
|
||||||
## Fixes
|
|
||||||
|
|
||||||
### Tankopedia & Armor
|
|
||||||
|
|
||||||
- The armor no longer disappears when you turn on Dynamic Armor System [Mark Greene]
|
|
||||||
- Camouflage values in Tankopedia are now more descriptive when shooting [Mark Greene]
|
|
||||||
- The penetration chance is now displayed when penetration testing armor [Mark Greene]
|
|
||||||
- Listed track repair times in the Tankopedia [Mark Greene]
|
|
||||||
- Added a spall liner button to the Tankopedia beside the other equipment [Mark Greene]
|
|
||||||
- The flags in the Tankopedia tech tree are no longer offset to the top left [Mark Greene]
|
|
||||||
- The loading bar below the name of the tanks in Tankopedia is now sufficiently spaced below [Mark Greene]
|
|
||||||
- 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 [Mark Greene]
|
|
||||||
- Tank search now properly handles the full names of tanks like the Super Pershing [Mark Greene]
|
|
||||||
- The tank search now remains consistent in order even when an added filter does not add/remove tanks from the list [Mark Greene]
|
|
||||||
- The test and owned tank filters are now more intuitive as clicking on them now turns the clicked option on instead of off [Mark Greene]
|
|
||||||
|
|
||||||
### Visuals & UI
|
|
||||||
|
|
||||||
- Removed the Beta badge from the Equalizer button [Mark Greene]
|
|
||||||
- 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 [Mark Greene]
|
|
||||||
- Additionally, the contact shadows stays visible at low angles [Mark Greene]
|
|
||||||
- The "Help Translate BlitzKit" text on the home page is now properly centered vertically
|
|
||||||
- The footer now says "Branch" instead of "CDN" [Mark Greene]
|
|
||||||
- The game version in the footer now displays a shorthand version instead of the entire version number [Mark Greene]
|
|
||||||
- The reload visualizer now displays just 1 decimal place [Mark Greene]
|
|
||||||
- Plot controls for the Static armor tab no longer pokes in from the right on non-Static armor tabs in some languages [Mark Greene]
|
|
||||||
- Mixer's controllers now scale better on smaller screens [Mark Greene]
|
|
||||||
- The list of available tanks in the Playlist is no longer excessively wide [Mark Greene]
|
|
||||||
|
|
||||||
### Tank Mechanics & Models
|
|
||||||
|
|
||||||
- The gun depression visualizer now properly handles the inherent tilt of tanks like the Minotauro [Mark Greene]
|
|
||||||
- When moving the tracks of tanks, the textures no longer move at different rates [Mark Greene]
|
|
||||||
|
|
||||||
### Localization
|
|
||||||
|
|
||||||
- Users with a preference on a language are once again redirected to the correct localized pages [Mark Greene]
|
|
||||||
|
|
||||||
### Session & Game Compatibility
|
|
||||||
|
|
||||||
- BlitzKit Session now properly handles tanks removed from the game [Mark Greene]
|
|
||||||
|
|
||||||
## 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 [Mark Greene]
|
|
||||||
- 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 [Mark Greene]
|
|
||||||
- Bun is now forced to run scripts with the `--bun` flag
|
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
# 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.
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
# 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;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
```
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
# Discovered Ids
|
||||||
|
|
||||||
|
```c
|
||||||
|
primary DiscoveredIds {
|
||||||
|
utf8"DIDS" magic;
|
||||||
|
Header header;
|
||||||
|
primary Body body;
|
||||||
|
}
|
||||||
|
|
||||||
|
Header {
|
||||||
|
uint16 version; // always 1
|
||||||
|
}
|
||||||
|
|
||||||
|
Body {
|
||||||
|
uint32 count;
|
||||||
|
uint32[count] ids;
|
||||||
|
}
|
||||||
|
```
|
||||||
+170
-1
@@ -1,3 +1,172 @@
|
|||||||
# KitScore
|
# KitScore
|
||||||
|
|
||||||
Remind me to write out the linearized model!
|
## Memo
|
||||||
|
|
||||||
|
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
|
||||||
|
$$
|
||||||
@@ -0,0 +1,71 @@
|
|||||||
|
# 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;
|
||||||
|
}
|
||||||
|
```
|
||||||
+3
-5
@@ -1,17 +1,15 @@
|
|||||||
{
|
{
|
||||||
"name": "blitzkit",
|
"name": "blitzkit",
|
||||||
"version": "1.32.0",
|
"version": "1.31.1",
|
||||||
"license": "BlitzKit License",
|
"license": "BlitzKit License",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "cd packages/website && bun --bun run dev",
|
"dev": "cd packages/website && bun run dev",
|
||||||
"build": "cd packages/website && bun run build",
|
"build": "cd packages/website && bun run build",
|
||||||
"discover-ids": "cd packages/scripts && bun run discover-ids",
|
"discover-ids": "cd packages/scripts && bun run discover-ids",
|
||||||
"build-protos": "cd packages/scripts && bun run build-protos",
|
"build-protos": "cd packages/scripts && bun run build-protos",
|
||||||
"record-performance": "cd packages/scripts && bun run record-performance",
|
"record-performance": "cd packages/scripts && bun run record-performance",
|
||||||
"download-client": "cd packages/scripts && bun run download-client",
|
"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": [
|
||||||
|
|||||||
@@ -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,9 +113,6 @@ 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();
|
||||||
|
|
||||||
@@ -158,37 +155,31 @@ 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 networkStrings = (await fetch(
|
const cache = 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(parseYaml)) as BlitzStrings;
|
.then((string) => parseYaml(string) as BlitzStrings);
|
||||||
const localStrings = await this.vfs.yaml<BlitzStrings>(
|
const preInstalled = await this.vfs.yaml<BlitzStrings>(
|
||||||
`Data/Strings/${blitzLocale}.yaml`,
|
`Data/Strings/${blitzLocale}.yaml`,
|
||||||
);
|
);
|
||||||
const combined = { ...networkStrings, ...localStrings };
|
|
||||||
|
|
||||||
await mkdir(root, { recursive: true });
|
this.stringsI18n[locale] = {
|
||||||
await writeFile(cachePath, JSON.stringify(combined));
|
...cache,
|
||||||
|
...preInstalled,
|
||||||
|
};
|
||||||
|
|
||||||
this.stringsI18n[locale] = combined;
|
console.log(
|
||||||
|
`Fetched localizations for ${locale} (${++fetchedLocalizations}/${locales.supported.length})`,
|
||||||
|
);
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -246,27 +237,6 @@ 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,11 +50,10 @@ export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 {
|
|||||||
async tankDefinitions() {
|
async tankDefinitions() {
|
||||||
const tankDefinitions = TankDefinitions.create();
|
const tankDefinitions = TankDefinitions.create();
|
||||||
|
|
||||||
const gameModeNativeNames: Record<string, string> = {};
|
const gameModeNativeNames: Record<string, number> = {};
|
||||||
|
|
||||||
const squadBattleTypeGameModeNativeNameMatches =
|
const squadBattleTypeGameModeNativeNameMatches =
|
||||||
this.squadBattleTypeStyles!.Prototypes[0].components.UIDataLocalBindingsComponent.data[1][2].matchAll(
|
this.squadBattleTypeStyles!.Prototypes[0].components.UIDataLocalBindingsComponent.data[1][2].matchAll(
|
||||||
/eGameMode\.(\w+) -> "(battleType\/([a-zA-Z]+))"/g,
|
/"(\d+)" -> "(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(
|
||||||
@@ -62,7 +61,8 @@ export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 {
|
|||||||
);
|
);
|
||||||
|
|
||||||
for (const match of squadBattleTypeGameModeNativeNameMatches) {
|
for (const match of squadBattleTypeGameModeNativeNameMatches) {
|
||||||
gameModeNativeNames[match[3]] = match[1];
|
const id = Number(match[1]);
|
||||||
|
gameModeNativeNames[match[3]] = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const match of gameTypeGameModeNativeNameMatches) {
|
for (const match of gameTypeGameModeNativeNameMatches) {
|
||||||
@@ -339,26 +339,6 @@ 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: [],
|
||||||
@@ -376,8 +356,10 @@ 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:
|
||||||
name_full,
|
(tank.shortUserString
|
||||||
|
? this.getString(tank.shortUserString)
|
||||||
|
: undefined) ?? this.getString(tank.userString),
|
||||||
slug,
|
slug,
|
||||||
nation,
|
nation,
|
||||||
type: tankTags.includes("collectible")
|
type: tankTags.includes("collectible")
|
||||||
@@ -386,8 +368,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: tankClass,
|
class: this.blitzTankClassToBlitzkit[tankTags[0] as BlitzTankClass],
|
||||||
testing: tankTags.includes("testTank") || tank.level === 11,
|
testing: tankTags.includes("testTank"),
|
||||||
deprecated: tankTags.includes("deprecated"),
|
deprecated: tankTags.includes("deprecated"),
|
||||||
price: tankPrice,
|
price: tankPrice,
|
||||||
camouflage_still: tankDefinition.root.invisibility.still,
|
camouflage_still: tankDefinition.root.invisibility.still,
|
||||||
@@ -434,7 +416,6 @@ 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,
|
||||||
@@ -595,25 +576,9 @@ 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 = piercingPower
|
const penetrationRaw = gunShellEntry.piercingPower
|
||||||
.split(" ")
|
.split(" ")
|
||||||
.filter((penetrationString) => penetrationString !== "")
|
.filter((penetrationString) => penetrationString !== "")
|
||||||
.map(Number);
|
.map(Number);
|
||||||
@@ -623,7 +588,7 @@ export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 {
|
|||||||
].shells.push({
|
].shells.push({
|
||||||
id: shellId,
|
id: shellId,
|
||||||
name: shellName,
|
name: shellName,
|
||||||
velocity: speed,
|
velocity: gunShellEntry.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,
|
||||||
@@ -639,7 +604,7 @@ export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 {
|
|||||||
near: penetrationRaw[0],
|
near: penetrationRaw[0],
|
||||||
far: penetrationRaw[1],
|
far: penetrationRaw[1],
|
||||||
},
|
},
|
||||||
range: maxDistance,
|
range: gunShellEntry.maxDistance,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,8 +10,6 @@ export abstract class ServerBlitzKitAPI2 extends ServerBlitzKitAPI1 {
|
|||||||
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)
|
||||||
|
|||||||
@@ -3,14 +3,10 @@ import {
|
|||||||
BlitzCrewType,
|
BlitzCrewType,
|
||||||
ChassisDefinitionsList,
|
ChassisDefinitionsList,
|
||||||
Crew,
|
Crew,
|
||||||
|
EngineDefinitionsList,
|
||||||
GunDefinitionsList,
|
GunDefinitionsList,
|
||||||
I_HAT,
|
|
||||||
J_HAT,
|
|
||||||
K_HAT,
|
|
||||||
ModelDefinitions,
|
ModelDefinitions,
|
||||||
parseHierarchies,
|
ResearchCost,
|
||||||
Sc2ReadStream,
|
|
||||||
ScgReadStream,
|
|
||||||
TankParameters,
|
TankParameters,
|
||||||
toUniqueId,
|
toUniqueId,
|
||||||
TurretDefinitionsList,
|
TurretDefinitionsList,
|
||||||
@@ -18,99 +14,17 @@ 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,
|
||||||
@@ -141,6 +55,9 @@ 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`);
|
||||||
@@ -148,6 +65,10 @@ 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`,
|
||||||
@@ -155,12 +76,6 @@ 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;
|
||||||
@@ -235,8 +150,12 @@ export abstract class ServerBlitzKitAPI3 extends ServerBlitzKitAPI2 {
|
|||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
bounding_box: {
|
bounding_box: {
|
||||||
min: this.vector3TupleToBlitzkit(hullBoundingBox.min),
|
min: this.vector3TupleToBlitzkit(
|
||||||
max: this.vector3TupleToBlitzkit(hullBoundingBox.max),
|
tankParameters.collision.hull.bbox.min,
|
||||||
|
),
|
||||||
|
max: this.vector3TupleToBlitzkit(
|
||||||
|
tankParameters.collision.hull.bbox.max,
|
||||||
|
),
|
||||||
},
|
},
|
||||||
turrets: {},
|
turrets: {},
|
||||||
tracks: {},
|
tracks: {},
|
||||||
@@ -298,35 +217,26 @@ 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: isFullYaw
|
yaw:
|
||||||
? undefined
|
-turretYaw[0] + turretYaw[1] === 360
|
||||||
: { min: turretYaw[0], max: turretYaw[1] },
|
? undefined
|
||||||
|
: { min: turretYaw[0], max: turretYaw[1] },
|
||||||
guns: {},
|
guns: {},
|
||||||
bounding_box: {
|
bounding_box: {
|
||||||
min: this.vector3TupleToBlitzkit(turretBoundingBox.min),
|
min: this.vector3TupleToBlitzkit(
|
||||||
max: this.vector3TupleToBlitzkit(turretBoundingBox.max),
|
tankParameters.collision[
|
||||||
|
parsePath(turret.hitTester.collisionModel).name.toLowerCase()
|
||||||
|
].bbox.min,
|
||||||
|
),
|
||||||
|
max: this.vector3TupleToBlitzkit(
|
||||||
|
tankParameters.collision[
|
||||||
|
parsePath(turret.hitTester.collisionModel).name.toLowerCase()
|
||||||
|
].bbox.max,
|
||||||
|
),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,9 @@ export abstract class ServerBlitzKitAPI6 extends ServerBlitzKitAPI5 {
|
|||||||
filter_type: {
|
filter_type: {
|
||||||
$case: "ids",
|
$case: "ids",
|
||||||
value: {
|
value: {
|
||||||
ids: this.getTankFilterIds(includeRaw.name, key, "include"),
|
ids: includeRaw.name.split(/ +/).map((key) => {
|
||||||
|
return this.tankStringIdMap[key];
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@@ -70,7 +72,9 @@ export abstract class ServerBlitzKitAPI6 extends ServerBlitzKitAPI5 {
|
|||||||
filter_type: {
|
filter_type: {
|
||||||
$case: "ids",
|
$case: "ids",
|
||||||
value: {
|
value: {
|
||||||
ids: this.getTankFilterIds(excludeRaw.name, key, "exclude"),
|
ids: excludeRaw.name.split(/ +/).map((key) => {
|
||||||
|
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(([key, provision]) => {
|
Object.entries(this.provisionsCommon).forEach(([, provision]) => {
|
||||||
const entry: Provision = {
|
const entry: Provision = {
|
||||||
id: provision.id,
|
id: provision.id,
|
||||||
exclude: [],
|
exclude: [],
|
||||||
@@ -42,7 +42,9 @@ export abstract class ServerBlitzKitAPI7 extends ServerBlitzKitAPI6 {
|
|||||||
filter_type: {
|
filter_type: {
|
||||||
$case: "ids",
|
$case: "ids",
|
||||||
value: {
|
value: {
|
||||||
ids: this.getTankFilterIds(includeRaw.name, key, "include"),
|
ids: includeRaw.name.split(/ +/).map((key) => {
|
||||||
|
return this.tankStringIdMap[key];
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@@ -68,7 +70,9 @@ export abstract class ServerBlitzKitAPI7 extends ServerBlitzKitAPI6 {
|
|||||||
filter_type: {
|
filter_type: {
|
||||||
$case: "ids",
|
$case: "ids",
|
||||||
value: {
|
value: {
|
||||||
ids: this.getTankFilterIds(excludeRaw.name, key, "exclude"),
|
ids: excludeRaw.name
|
||||||
|
.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(
|
||||||
/eGameMode\.(\w+) -> "(battleType\/([a-zA-Z]+))"/g,
|
/"(\d+)" -> "(battleType\/([a-zA-Z]+))"/g,
|
||||||
)) {
|
)) {
|
||||||
const id = match[1];
|
const id = Number(match[1]);
|
||||||
const name = this.getString(match[2]);
|
const name = this.getString(match[2]);
|
||||||
|
|
||||||
gameDefinitions.gameModes[id] = {
|
gameDefinitions.gameModes[id] = {
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ 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,7 +12,6 @@ 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),
|
||||||
|
|||||||
@@ -1,32 +0,0 @@
|
|||||||
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 } from "../../protos";
|
import { CrewType, ShellType, TankClass, TankType } 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,6 +15,33 @@ 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",
|
||||||
@@ -27,7 +54,6 @@ 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> = {
|
||||||
@@ -41,3 +67,8 @@ 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,22 +18,11 @@ 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(
|
||||||
@@ -56,8 +45,6 @@ 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",
|
||||||
|
|||||||
@@ -0,0 +1,50 @@
|
|||||||
|
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}`;
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
export * from './imgur';
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
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.7.7
|
// protoc-gen-ts_proto v2.11.2
|
||||||
// protoc v3.19.6
|
// protoc v5.28.2
|
||||||
// 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 {
|
||||||
Object.entries(message.averages).forEach(([key, value]) => {
|
globalThis.Object.entries(message.averages).forEach(([key, value]: [string, AverageDefinitionsEntry]) => {
|
||||||
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,10 +122,13 @@ export const AverageDefinitions: MessageFns<AverageDefinitions> = {
|
|||||||
fromJSON(object: any): AverageDefinitions {
|
fromJSON(object: any): AverageDefinitions {
|
||||||
return {
|
return {
|
||||||
averages: isObject(object.averages)
|
averages: isObject(object.averages)
|
||||||
? Object.entries(object.averages).reduce<{ [key: number]: AverageDefinitionsEntry }>((acc, [key, value]) => {
|
? (globalThis.Object.entries(object.averages) as [string, any][]).reduce(
|
||||||
acc[globalThis.Number(key)] = AverageDefinitionsEntry.fromJSON(value);
|
(acc: { [key: number]: AverageDefinitionsEntry }, [key, value]: [string, any]) => {
|
||||||
return acc;
|
acc[globalThis.Number(key)] = AverageDefinitionsEntry.fromJSON(value);
|
||||||
}, {})
|
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,
|
||||||
@@ -135,7 +138,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 = Object.entries(message.averages);
|
const entries = globalThis.Object.entries(message.averages) as [string, AverageDefinitionsEntry][];
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.averages = {};
|
obj.averages = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -157,8 +160,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 = Object.entries(object.averages ?? {}).reduce<{ [key: number]: AverageDefinitionsEntry }>(
|
message.averages = (globalThis.Object.entries(object.averages ?? {}) as [string, AverageDefinitionsEntry][]).reduce(
|
||||||
(acc, [key, value]) => {
|
(acc: { [key: number]: AverageDefinitionsEntry }, [key, value]: [string, AverageDefinitionsEntry]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
acc[globalThis.Number(key)] = AverageDefinitionsEntry.fromPartial(value);
|
acc[globalThis.Number(key)] = AverageDefinitionsEntry.fromPartial(value);
|
||||||
}
|
}
|
||||||
@@ -617,25 +620,59 @@ 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.capture_points) ? globalThis.Number(object.capture_points) : 0,
|
capture_points: isSet(object.capturePoints)
|
||||||
damage_dealt: isSet(object.damage_dealt) ? globalThis.Number(object.damage_dealt) : 0,
|
? globalThis.Number(object.capturePoints)
|
||||||
damage_received: isSet(object.damage_received) ? globalThis.Number(object.damage_received) : 0,
|
: isSet(object.capture_points)
|
||||||
dropped_capture_points: isSet(object.dropped_capture_points)
|
? globalThis.Number(object.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.max_frags) ? globalThis.Number(object.max_frags) : 0,
|
max_frags: isSet(object.maxFrags)
|
||||||
max_xp: isSet(object.max_xp) ? globalThis.Number(object.max_xp) : 0,
|
? globalThis.Number(object.maxFrags)
|
||||||
|
: 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.survived_battles) ? globalThis.Number(object.survived_battles) : 0,
|
survived_battles: isSet(object.survivedBattles)
|
||||||
win_and_survived: isSet(object.win_and_survived) ? globalThis.Number(object.win_and_survived) : 0,
|
? globalThis.Number(object.survivedBattles)
|
||||||
|
: 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.battle_life_time) ? globalThis.Number(object.battle_life_time) : 0,
|
battle_life_time: isSet(object.battleLifeTime)
|
||||||
|
? globalThis.Number(object.battleLifeTime)
|
||||||
|
: isSet(object.battle_life_time)
|
||||||
|
? globalThis.Number(object.battle_life_time)
|
||||||
|
: 0,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -645,16 +682,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.capture_points = message.capture_points;
|
obj.capturePoints = message.capture_points;
|
||||||
}
|
}
|
||||||
if (message.damage_dealt !== 0) {
|
if (message.damage_dealt !== 0) {
|
||||||
obj.damage_dealt = message.damage_dealt;
|
obj.damageDealt = message.damage_dealt;
|
||||||
}
|
}
|
||||||
if (message.damage_received !== 0) {
|
if (message.damage_received !== 0) {
|
||||||
obj.damage_received = message.damage_received;
|
obj.damageReceived = message.damage_received;
|
||||||
}
|
}
|
||||||
if (message.dropped_capture_points !== 0) {
|
if (message.dropped_capture_points !== 0) {
|
||||||
obj.dropped_capture_points = message.dropped_capture_points;
|
obj.droppedCapturePoints = message.dropped_capture_points;
|
||||||
}
|
}
|
||||||
if (message.frags !== 0) {
|
if (message.frags !== 0) {
|
||||||
obj.frags = message.frags;
|
obj.frags = message.frags;
|
||||||
@@ -669,10 +706,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.max_frags = message.max_frags;
|
obj.maxFrags = message.max_frags;
|
||||||
}
|
}
|
||||||
if (message.max_xp !== 0) {
|
if (message.max_xp !== 0) {
|
||||||
obj.max_xp = message.max_xp;
|
obj.maxXp = message.max_xp;
|
||||||
}
|
}
|
||||||
if (message.shots !== 0) {
|
if (message.shots !== 0) {
|
||||||
obj.shots = message.shots;
|
obj.shots = message.shots;
|
||||||
@@ -681,10 +718,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.survived_battles = message.survived_battles;
|
obj.survivedBattles = message.survived_battles;
|
||||||
}
|
}
|
||||||
if (message.win_and_survived !== 0) {
|
if (message.win_and_survived !== 0) {
|
||||||
obj.win_and_survived = message.win_and_survived;
|
obj.winAndSurvived = message.win_and_survived;
|
||||||
}
|
}
|
||||||
if (message.wins !== 0) {
|
if (message.wins !== 0) {
|
||||||
obj.wins = message.wins;
|
obj.wins = message.wins;
|
||||||
@@ -693,7 +730,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.battle_life_time = message.battle_life_time;
|
obj.battleLifeTime = message.battle_life_time;
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
@@ -829,12 +866,16 @@ export const Samples: MessageFns<Samples> = {
|
|||||||
|
|
||||||
fromJSON(object: any): Samples {
|
fromJSON(object: any): Samples {
|
||||||
return {
|
return {
|
||||||
d_1: isSet(object.d_1) ? globalThis.Number(object.d_1) : 0,
|
d_1: isSet(object.d1) ? globalThis.Number(object.d1) : isSet(object.d_1) ? globalThis.Number(object.d_1) : 0,
|
||||||
d_7: isSet(object.d_7) ? globalThis.Number(object.d_7) : 0,
|
d_7: isSet(object.d7) ? globalThis.Number(object.d7) : isSet(object.d_7) ? globalThis.Number(object.d_7) : 0,
|
||||||
d_30: isSet(object.d_30) ? globalThis.Number(object.d_30) : 0,
|
d_30: isSet(object.d30) ? globalThis.Number(object.d30) : isSet(object.d_30) ? globalThis.Number(object.d_30) : 0,
|
||||||
d_60: isSet(object.d_60) ? globalThis.Number(object.d_60) : 0,
|
d_60: isSet(object.d60) ? globalThis.Number(object.d60) : isSet(object.d_60) ? globalThis.Number(object.d_60) : 0,
|
||||||
d_90: isSet(object.d_90) ? globalThis.Number(object.d_90) : 0,
|
d_90: isSet(object.d90) ? globalThis.Number(object.d90) : isSet(object.d_90) ? globalThis.Number(object.d_90) : 0,
|
||||||
d_120: isSet(object.d_120) ? globalThis.Number(object.d_120) : 0,
|
d_120: isSet(object.d120)
|
||||||
|
? 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,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -842,22 +883,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.d_1 = Math.round(message.d_1);
|
obj.d1 = Math.round(message.d_1);
|
||||||
}
|
}
|
||||||
if (message.d_7 !== 0) {
|
if (message.d_7 !== 0) {
|
||||||
obj.d_7 = Math.round(message.d_7);
|
obj.d7 = Math.round(message.d_7);
|
||||||
}
|
}
|
||||||
if (message.d_30 !== 0) {
|
if (message.d_30 !== 0) {
|
||||||
obj.d_30 = Math.round(message.d_30);
|
obj.d30 = Math.round(message.d_30);
|
||||||
}
|
}
|
||||||
if (message.d_60 !== 0) {
|
if (message.d_60 !== 0) {
|
||||||
obj.d_60 = Math.round(message.d_60);
|
obj.d60 = Math.round(message.d_60);
|
||||||
}
|
}
|
||||||
if (message.d_90 !== 0) {
|
if (message.d_90 !== 0) {
|
||||||
obj.d_90 = Math.round(message.d_90);
|
obj.d90 = Math.round(message.d_90);
|
||||||
}
|
}
|
||||||
if (message.d_120 !== 0) {
|
if (message.d_120 !== 0) {
|
||||||
obj.d_120 = Math.round(message.d_120);
|
obj.d120 = 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);
|
||||||
|
|||||||
@@ -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.7.7
|
// protoc-gen-ts_proto v2.11.2
|
||||||
// protoc v3.19.6
|
// protoc v5.28.2
|
||||||
// source: camouflage_definitions.proto
|
// source: camouflage_definitions.proto
|
||||||
|
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
@@ -32,7 +32,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 {
|
||||||
Object.entries(message.camouflages).forEach(([key, value]) => {
|
globalThis.Object.entries(message.camouflages).forEach(([key, value]: [string, Camouflage]) => {
|
||||||
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,10 +68,13 @@ export const CamouflageDefinitions: MessageFns<CamouflageDefinitions> = {
|
|||||||
fromJSON(object: any): CamouflageDefinitions {
|
fromJSON(object: any): CamouflageDefinitions {
|
||||||
return {
|
return {
|
||||||
camouflages: isObject(object.camouflages)
|
camouflages: isObject(object.camouflages)
|
||||||
? Object.entries(object.camouflages).reduce<{ [key: number]: Camouflage }>((acc, [key, value]) => {
|
? (globalThis.Object.entries(object.camouflages) as [string, any][]).reduce(
|
||||||
acc[globalThis.Number(key)] = Camouflage.fromJSON(value);
|
(acc: { [key: number]: Camouflage }, [key, value]: [string, any]) => {
|
||||||
return acc;
|
acc[globalThis.Number(key)] = Camouflage.fromJSON(value);
|
||||||
}, {})
|
return acc;
|
||||||
|
},
|
||||||
|
{},
|
||||||
|
)
|
||||||
: {},
|
: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -79,7 +82,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 = Object.entries(message.camouflages);
|
const entries = globalThis.Object.entries(message.camouflages) as [string, Camouflage][];
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.camouflages = {};
|
obj.camouflages = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -95,8 +98,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 = Object.entries(object.camouflages ?? {}).reduce<{ [key: number]: Camouflage }>(
|
message.camouflages = (globalThis.Object.entries(object.camouflages ?? {}) as [string, Camouflage][]).reduce(
|
||||||
(acc, [key, value]) => {
|
(acc: { [key: number]: Camouflage }, [key, value]: [string, Camouflage]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
acc[globalThis.Number(key)] = Camouflage.fromPartial(value);
|
acc[globalThis.Number(key)] = Camouflage.fromPartial(value);
|
||||||
}
|
}
|
||||||
@@ -263,8 +266,16 @@ 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.tank_name) ? I18nString.fromJSON(object.tank_name) : undefined,
|
tank_name: isSet(object.tankName)
|
||||||
tank_name_full: isSet(object.tank_name_full) ? I18nString.fromJSON(object.tank_name_full) : undefined,
|
? I18nString.fromJSON(object.tankName)
|
||||||
|
: isSet(object.tank_name)
|
||||||
|
? 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,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -277,10 +288,10 @@ 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.tank_name = I18nString.toJSON(message.tank_name);
|
obj.tankName = I18nString.toJSON(message.tank_name);
|
||||||
}
|
}
|
||||||
if (message.tank_name_full !== undefined) {
|
if (message.tank_name_full !== undefined) {
|
||||||
obj.tank_name_full = I18nString.toJSON(message.tank_name_full);
|
obj.tankNameFull = I18nString.toJSON(message.tank_name_full);
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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.7.7
|
// protoc-gen-ts_proto v2.11.2
|
||||||
// protoc v3.19.6
|
// protoc v5.28.2
|
||||||
// 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 {
|
||||||
Object.entries(message.consumables).forEach(([key, value]) => {
|
globalThis.Object.entries(message.consumables).forEach(([key, value]: [string, Consumable]) => {
|
||||||
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,10 +124,13 @@ export const ConsumableDefinitions: MessageFns<ConsumableDefinitions> = {
|
|||||||
fromJSON(object: any): ConsumableDefinitions {
|
fromJSON(object: any): ConsumableDefinitions {
|
||||||
return {
|
return {
|
||||||
consumables: isObject(object.consumables)
|
consumables: isObject(object.consumables)
|
||||||
? Object.entries(object.consumables).reduce<{ [key: number]: Consumable }>((acc, [key, value]) => {
|
? (globalThis.Object.entries(object.consumables) as [string, any][]).reduce(
|
||||||
acc[globalThis.Number(key)] = Consumable.fromJSON(value);
|
(acc: { [key: number]: Consumable }, [key, value]: [string, any]) => {
|
||||||
return acc;
|
acc[globalThis.Number(key)] = Consumable.fromJSON(value);
|
||||||
}, {})
|
return acc;
|
||||||
|
},
|
||||||
|
{},
|
||||||
|
)
|
||||||
: {},
|
: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -135,7 +138,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 = Object.entries(message.consumables);
|
const entries = globalThis.Object.entries(message.consumables) as [string, Consumable][];
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.consumables = {};
|
obj.consumables = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -151,8 +154,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 = Object.entries(object.consumables ?? {}).reduce<{ [key: number]: Consumable }>(
|
message.consumables = (globalThis.Object.entries(object.consumables ?? {}) as [string, Consumable][]).reduce(
|
||||||
(acc, [key, value]) => {
|
(acc: { [key: number]: Consumable }, [key, value]: [string, Consumable]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
acc[globalThis.Number(key)] = Consumable.fromPartial(value);
|
acc[globalThis.Number(key)] = Consumable.fromPartial(value);
|
||||||
}
|
}
|
||||||
@@ -354,7 +357,11 @@ 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.game_mode_exclusive) ? globalThis.Boolean(object.game_mode_exclusive) : false,
|
game_mode_exclusive: isSet(object.gameModeExclusive)
|
||||||
|
? 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))
|
||||||
: [],
|
: [],
|
||||||
@@ -379,7 +386,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.game_mode_exclusive = message.game_mode_exclusive;
|
obj.gameModeExclusive = 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.7.7
|
// protoc-gen-ts_proto v2.11.2
|
||||||
// protoc v3.19.6
|
// protoc v5.28.2
|
||||||
// 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 {
|
||||||
Object.entries(message.presets).forEach(([key, value]) => {
|
globalThis.Object.entries(message.presets).forEach(([key, value]: [string, EquipmentPreset]) => {
|
||||||
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();
|
||||||
});
|
});
|
||||||
Object.entries(message.equipments).forEach(([key, value]) => {
|
globalThis.Object.entries(message.equipments).forEach(([key, value]: [string, Equipment]) => {
|
||||||
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,16 +95,22 @@ export const EquipmentDefinitions: MessageFns<EquipmentDefinitions> = {
|
|||||||
fromJSON(object: any): EquipmentDefinitions {
|
fromJSON(object: any): EquipmentDefinitions {
|
||||||
return {
|
return {
|
||||||
presets: isObject(object.presets)
|
presets: isObject(object.presets)
|
||||||
? Object.entries(object.presets).reduce<{ [key: string]: EquipmentPreset }>((acc, [key, value]) => {
|
? (globalThis.Object.entries(object.presets) as [string, any][]).reduce(
|
||||||
acc[key] = EquipmentPreset.fromJSON(value);
|
(acc: { [key: string]: EquipmentPreset }, [key, value]: [string, any]) => {
|
||||||
return acc;
|
acc[key] = EquipmentPreset.fromJSON(value);
|
||||||
}, {})
|
return acc;
|
||||||
|
},
|
||||||
|
{},
|
||||||
|
)
|
||||||
: {},
|
: {},
|
||||||
equipments: isObject(object.equipments)
|
equipments: isObject(object.equipments)
|
||||||
? Object.entries(object.equipments).reduce<{ [key: number]: Equipment }>((acc, [key, value]) => {
|
? (globalThis.Object.entries(object.equipments) as [string, any][]).reduce(
|
||||||
acc[globalThis.Number(key)] = Equipment.fromJSON(value);
|
(acc: { [key: number]: Equipment }, [key, value]: [string, any]) => {
|
||||||
return acc;
|
acc[globalThis.Number(key)] = Equipment.fromJSON(value);
|
||||||
}, {})
|
return acc;
|
||||||
|
},
|
||||||
|
{},
|
||||||
|
)
|
||||||
: {},
|
: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -112,7 +118,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 = Object.entries(message.presets);
|
const entries = globalThis.Object.entries(message.presets) as [string, EquipmentPreset][];
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.presets = {};
|
obj.presets = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -121,7 +127,7 @@ export const EquipmentDefinitions: MessageFns<EquipmentDefinitions> = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (message.equipments) {
|
if (message.equipments) {
|
||||||
const entries = Object.entries(message.equipments);
|
const entries = globalThis.Object.entries(message.equipments) as [string, Equipment][];
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.equipments = {};
|
obj.equipments = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -137,8 +143,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 = Object.entries(object.presets ?? {}).reduce<{ [key: string]: EquipmentPreset }>(
|
message.presets = (globalThis.Object.entries(object.presets ?? {}) as [string, EquipmentPreset][]).reduce(
|
||||||
(acc, [key, value]) => {
|
(acc: { [key: string]: EquipmentPreset }, [key, value]: [string, EquipmentPreset]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
acc[key] = EquipmentPreset.fromPartial(value);
|
acc[key] = EquipmentPreset.fromPartial(value);
|
||||||
}
|
}
|
||||||
@@ -146,8 +152,8 @@ export const EquipmentDefinitions: MessageFns<EquipmentDefinitions> = {
|
|||||||
},
|
},
|
||||||
{},
|
{},
|
||||||
);
|
);
|
||||||
message.equipments = Object.entries(object.equipments ?? {}).reduce<{ [key: number]: Equipment }>(
|
message.equipments = (globalThis.Object.entries(object.equipments ?? {}) as [string, Equipment][]).reduce(
|
||||||
(acc, [key, value]) => {
|
(acc: { [key: number]: Equipment }, [key, value]: [string, Equipment]) => {
|
||||||
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.7.7
|
// protoc-gen-ts_proto v2.11.2
|
||||||
// protoc v3.19.6
|
// protoc v5.28.2
|
||||||
// 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<string, GameMode> gameModes = 3;
|
map<uint32, 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.7.7
|
// protoc-gen-ts_proto v2.11.2
|
||||||
// protoc v3.19.6
|
// protoc v5.28.2
|
||||||
// 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: string]: GameMode };
|
gameModes: { [key: number]: GameMode };
|
||||||
roles: { [key: number]: GameModeRole };
|
roles: { [key: number]: GameModeRole };
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GameDefinitions_GameModesEntry {
|
export interface GameDefinitions_GameModesEntry {
|
||||||
key: string;
|
key: number;
|
||||||
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!);
|
||||||
}
|
}
|
||||||
Object.entries(message.gameModes).forEach(([key, value]) => {
|
globalThis.Object.entries(message.gameModes).forEach(([key, value]: [string, GameMode]) => {
|
||||||
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();
|
||||||
});
|
});
|
||||||
Object.entries(message.roles).forEach(([key, value]) => {
|
globalThis.Object.entries(message.roles).forEach(([key, value]: [string, GameModeRole]) => {
|
||||||
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,16 +116,22 @@ 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)
|
||||||
? Object.entries(object.gameModes).reduce<{ [key: string]: GameMode }>((acc, [key, value]) => {
|
? (globalThis.Object.entries(object.gameModes) as [string, any][]).reduce(
|
||||||
acc[key] = GameMode.fromJSON(value);
|
(acc: { [key: number]: GameMode }, [key, value]: [string, any]) => {
|
||||||
return acc;
|
acc[globalThis.Number(key)] = GameMode.fromJSON(value);
|
||||||
}, {})
|
return acc;
|
||||||
|
},
|
||||||
|
{},
|
||||||
|
)
|
||||||
: {},
|
: {},
|
||||||
roles: isObject(object.roles)
|
roles: isObject(object.roles)
|
||||||
? Object.entries(object.roles).reduce<{ [key: number]: GameModeRole }>((acc, [key, value]) => {
|
? (globalThis.Object.entries(object.roles) as [string, any][]).reduce(
|
||||||
acc[globalThis.Number(key)] = GameModeRole.fromJSON(value);
|
(acc: { [key: number]: GameModeRole }, [key, value]: [string, any]) => {
|
||||||
return acc;
|
acc[globalThis.Number(key)] = GameModeRole.fromJSON(value);
|
||||||
}, {})
|
return acc;
|
||||||
|
},
|
||||||
|
{},
|
||||||
|
)
|
||||||
: {},
|
: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -139,7 +145,7 @@ export const GameDefinitions: MessageFns<GameDefinitions> = {
|
|||||||
obj.nations = message.nations;
|
obj.nations = message.nations;
|
||||||
}
|
}
|
||||||
if (message.gameModes) {
|
if (message.gameModes) {
|
||||||
const entries = Object.entries(message.gameModes);
|
const entries = globalThis.Object.entries(message.gameModes) as [string, GameMode][];
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.gameModes = {};
|
obj.gameModes = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -148,7 +154,7 @@ export const GameDefinitions: MessageFns<GameDefinitions> = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (message.roles) {
|
if (message.roles) {
|
||||||
const entries = Object.entries(message.roles);
|
const entries = globalThis.Object.entries(message.roles) as [string, GameModeRole][];
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.roles = {};
|
obj.roles = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -166,33 +172,36 @@ 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 = Object.entries(object.gameModes ?? {}).reduce<{ [key: string]: GameMode }>(
|
message.gameModes = (globalThis.Object.entries(object.gameModes ?? {}) as [string, GameMode][]).reduce(
|
||||||
(acc, [key, value]) => {
|
(acc: { [key: number]: GameMode }, [key, value]: [string, GameMode]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
acc[key] = GameMode.fromPartial(value);
|
acc[globalThis.Number(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: "", value: undefined };
|
return { key: 0, 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 !== "") {
|
if (message.key !== 0) {
|
||||||
writer.uint32(10).string(message.key);
|
writer.uint32(8).uint32(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();
|
||||||
@@ -208,11 +217,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 !== 10) {
|
if (tag !== 8) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
message.key = reader.string();
|
message.key = reader.uint32();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
case 2: {
|
case 2: {
|
||||||
@@ -234,15 +243,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.String(object.key) : "",
|
key: isSet(object.key) ? globalThis.Number(object.key) : 0,
|
||||||
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 !== "") {
|
if (message.key !== 0) {
|
||||||
obj.key = message.key;
|
obj.key = Math.round(message.key);
|
||||||
}
|
}
|
||||||
if (message.value !== undefined) {
|
if (message.value !== undefined) {
|
||||||
obj.value = GameMode.toJSON(message.value);
|
obj.value = GameMode.toJSON(message.value);
|
||||||
@@ -257,7 +266,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 ?? "";
|
message.key = object.key ?? 0;
|
||||||
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.7.7
|
// protoc-gen-ts_proto v2.11.2
|
||||||
// protoc v3.19.6
|
// protoc v5.28.2
|
||||||
// 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 {
|
||||||
Object.entries(message.locales).forEach(([key, value]) => {
|
globalThis.Object.entries(message.locales).forEach(([key, value]: [string, string]) => {
|
||||||
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,10 +60,13 @@ export const I18nString: MessageFns<I18nString> = {
|
|||||||
fromJSON(object: any): I18nString {
|
fromJSON(object: any): I18nString {
|
||||||
return {
|
return {
|
||||||
locales: isObject(object.locales)
|
locales: isObject(object.locales)
|
||||||
? Object.entries(object.locales).reduce<{ [key: string]: string }>((acc, [key, value]) => {
|
? (globalThis.Object.entries(object.locales) as [string, any][]).reduce(
|
||||||
acc[key] = String(value);
|
(acc: { [key: string]: string }, [key, value]: [string, any]) => {
|
||||||
return acc;
|
acc[key] = globalThis.String(value);
|
||||||
}, {})
|
return acc;
|
||||||
|
},
|
||||||
|
{},
|
||||||
|
)
|
||||||
: {},
|
: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -71,7 +74,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 = Object.entries(message.locales);
|
const entries = globalThis.Object.entries(message.locales) as [string, string][];
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.locales = {};
|
obj.locales = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -87,12 +90,15 @@ 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 = Object.entries(object.locales ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
|
message.locales = (globalThis.Object.entries(object.locales ?? {}) as [string, string][]).reduce(
|
||||||
if (value !== undefined) {
|
(acc: { [key: string]: string }, [key, value]: [string, string]) => {
|
||||||
acc[key] = globalThis.String(value);
|
if (value !== undefined) {
|
||||||
}
|
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.7.7
|
// protoc-gen-ts_proto v2.11.2
|
||||||
// protoc v3.19.6
|
// protoc v5.28.2
|
||||||
// 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 {
|
||||||
Object.entries(message.maps).forEach(([key, value]) => {
|
globalThis.Object.entries(message.maps).forEach(([key, value]: [string, MapDefinition]) => {
|
||||||
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,10 +66,13 @@ export const MapDefinitions: MessageFns<MapDefinitions> = {
|
|||||||
fromJSON(object: any): MapDefinitions {
|
fromJSON(object: any): MapDefinitions {
|
||||||
return {
|
return {
|
||||||
maps: isObject(object.maps)
|
maps: isObject(object.maps)
|
||||||
? Object.entries(object.maps).reduce<{ [key: number]: MapDefinition }>((acc, [key, value]) => {
|
? (globalThis.Object.entries(object.maps) as [string, any][]).reduce(
|
||||||
acc[globalThis.Number(key)] = MapDefinition.fromJSON(value);
|
(acc: { [key: number]: MapDefinition }, [key, value]: [string, any]) => {
|
||||||
return acc;
|
acc[globalThis.Number(key)] = MapDefinition.fromJSON(value);
|
||||||
}, {})
|
return acc;
|
||||||
|
},
|
||||||
|
{},
|
||||||
|
)
|
||||||
: {},
|
: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -77,7 +80,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 = Object.entries(message.maps);
|
const entries = globalThis.Object.entries(message.maps) as [string, MapDefinition][];
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.maps = {};
|
obj.maps = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -93,12 +96,15 @@ 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 = Object.entries(object.maps ?? {}).reduce<{ [key: number]: MapDefinition }>((acc, [key, value]) => {
|
message.maps = (globalThis.Object.entries(object.maps ?? {}) as [string, MapDefinition][]).reduce(
|
||||||
if (value !== undefined) {
|
(acc: { [key: number]: MapDefinition }, [key, value]: [string, MapDefinition]) => {
|
||||||
acc[globalThis.Number(key)] = MapDefinition.fromPartial(value);
|
if (value !== undefined) {
|
||||||
}
|
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.7.7
|
// protoc-gen-ts_proto v2.11.2
|
||||||
// protoc v3.19.6
|
// protoc v5.28.2
|
||||||
// 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 {
|
||||||
Object.entries(message.models).forEach(([key, value]) => {
|
globalThis.Object.entries(message.models).forEach(([key, value]: [string, ModelDefinition]) => {
|
||||||
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,10 +152,13 @@ export const ModelDefinitions: MessageFns<ModelDefinitions> = {
|
|||||||
fromJSON(object: any): ModelDefinitions {
|
fromJSON(object: any): ModelDefinitions {
|
||||||
return {
|
return {
|
||||||
models: isObject(object.models)
|
models: isObject(object.models)
|
||||||
? Object.entries(object.models).reduce<{ [key: number]: ModelDefinition }>((acc, [key, value]) => {
|
? (globalThis.Object.entries(object.models) as [string, any][]).reduce(
|
||||||
acc[globalThis.Number(key)] = ModelDefinition.fromJSON(value);
|
(acc: { [key: number]: ModelDefinition }, [key, value]: [string, any]) => {
|
||||||
return acc;
|
acc[globalThis.Number(key)] = ModelDefinition.fromJSON(value);
|
||||||
}, {})
|
return acc;
|
||||||
|
},
|
||||||
|
{},
|
||||||
|
)
|
||||||
: {},
|
: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -163,7 +166,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 = Object.entries(message.models);
|
const entries = globalThis.Object.entries(message.models) as [string, ModelDefinition][];
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.models = {};
|
obj.models = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -179,8 +182,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 = Object.entries(object.models ?? {}).reduce<{ [key: number]: ModelDefinition }>(
|
message.models = (globalThis.Object.entries(object.models ?? {}) as [string, ModelDefinition][]).reduce(
|
||||||
(acc, [key, value]) => {
|
(acc: { [key: number]: ModelDefinition }, [key, value]: [string, ModelDefinition]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
acc[globalThis.Number(key)] = ModelDefinition.fromPartial(value);
|
acc[globalThis.Number(key)] = ModelDefinition.fromPartial(value);
|
||||||
}
|
}
|
||||||
@@ -292,10 +295,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();
|
||||||
}
|
}
|
||||||
Object.entries(message.turrets).forEach(([key, value]) => {
|
globalThis.Object.entries(message.turrets).forEach(([key, value]: [string, TurretModelDefinition]) => {
|
||||||
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();
|
||||||
});
|
});
|
||||||
Object.entries(message.tracks).forEach(([key, value]) => {
|
globalThis.Object.entries(message.tracks).forEach(([key, value]: [string, TrackModelDefinition]) => {
|
||||||
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) {
|
||||||
@@ -377,23 +380,39 @@ 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.turret_origin) ? Vector3.fromJSON(object.turret_origin) : undefined,
|
turret_origin: isSet(object.turretOrigin)
|
||||||
initial_turret_rotation: isSet(object.initial_turret_rotation)
|
? Vector3.fromJSON(object.turretOrigin)
|
||||||
|
: 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)
|
||||||
? Object.entries(object.turrets).reduce<{ [key: number]: TurretModelDefinition }>((acc, [key, value]) => {
|
? (globalThis.Object.entries(object.turrets) as [string, any][]).reduce(
|
||||||
acc[globalThis.Number(key)] = TurretModelDefinition.fromJSON(value);
|
(acc: { [key: number]: TurretModelDefinition }, [key, value]: [string, any]) => {
|
||||||
return acc;
|
acc[globalThis.Number(key)] = TurretModelDefinition.fromJSON(value);
|
||||||
}, {})
|
return acc;
|
||||||
|
},
|
||||||
|
{},
|
||||||
|
)
|
||||||
: {},
|
: {},
|
||||||
tracks: isObject(object.tracks)
|
tracks: isObject(object.tracks)
|
||||||
? Object.entries(object.tracks).reduce<{ [key: number]: TrackModelDefinition }>((acc, [key, value]) => {
|
? (globalThis.Object.entries(object.tracks) as [string, any][]).reduce(
|
||||||
acc[globalThis.Number(key)] = TrackModelDefinition.fromJSON(value);
|
(acc: { [key: number]: TrackModelDefinition }, [key, value]: [string, any]) => {
|
||||||
return acc;
|
acc[globalThis.Number(key)] = TrackModelDefinition.fromJSON(value);
|
||||||
}, {})
|
return acc;
|
||||||
|
},
|
||||||
|
{},
|
||||||
|
)
|
||||||
: {},
|
: {},
|
||||||
bounding_box: isSet(object.bounding_box) ? BoundingBox.fromJSON(object.bounding_box) : undefined,
|
bounding_box: isSet(object.boundingBox)
|
||||||
|
? BoundingBox.fromJSON(object.boundingBox)
|
||||||
|
: isSet(object.bounding_box)
|
||||||
|
? BoundingBox.fromJSON(object.bounding_box)
|
||||||
|
: undefined,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -403,13 +422,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.turret_origin = Vector3.toJSON(message.turret_origin);
|
obj.turretOrigin = Vector3.toJSON(message.turret_origin);
|
||||||
}
|
}
|
||||||
if (message.initial_turret_rotation !== undefined) {
|
if (message.initial_turret_rotation !== undefined) {
|
||||||
obj.initial_turret_rotation = InitialTurretRotation.toJSON(message.initial_turret_rotation);
|
obj.initialTurretRotation = InitialTurretRotation.toJSON(message.initial_turret_rotation);
|
||||||
}
|
}
|
||||||
if (message.turrets) {
|
if (message.turrets) {
|
||||||
const entries = Object.entries(message.turrets);
|
const entries = globalThis.Object.entries(message.turrets) as [string, TurretModelDefinition][];
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.turrets = {};
|
obj.turrets = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -418,7 +437,7 @@ export const ModelDefinition: MessageFns<ModelDefinition> = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (message.tracks) {
|
if (message.tracks) {
|
||||||
const entries = Object.entries(message.tracks);
|
const entries = globalThis.Object.entries(message.tracks) as [string, TrackModelDefinition][];
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.tracks = {};
|
obj.tracks = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -427,7 +446,7 @@ export const ModelDefinition: MessageFns<ModelDefinition> = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (message.bounding_box !== undefined) {
|
if (message.bounding_box !== undefined) {
|
||||||
obj.bounding_box = BoundingBox.toJSON(message.bounding_box);
|
obj.boundingBox = BoundingBox.toJSON(message.bounding_box);
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
@@ -445,8 +464,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 = Object.entries(object.turrets ?? {}).reduce<{ [key: number]: TurretModelDefinition }>(
|
message.turrets = (globalThis.Object.entries(object.turrets ?? {}) as [string, TurretModelDefinition][]).reduce(
|
||||||
(acc, [key, value]) => {
|
(acc: { [key: number]: TurretModelDefinition }, [key, value]: [string, TurretModelDefinition]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
acc[globalThis.Number(key)] = TurretModelDefinition.fromPartial(value);
|
acc[globalThis.Number(key)] = TurretModelDefinition.fromPartial(value);
|
||||||
}
|
}
|
||||||
@@ -454,8 +473,8 @@ export const ModelDefinition: MessageFns<ModelDefinition> = {
|
|||||||
},
|
},
|
||||||
{},
|
{},
|
||||||
);
|
);
|
||||||
message.tracks = Object.entries(object.tracks ?? {}).reduce<{ [key: number]: TrackModelDefinition }>(
|
message.tracks = (globalThis.Object.entries(object.tracks ?? {}) as [string, TrackModelDefinition][]).reduce(
|
||||||
(acc, [key, value]) => {
|
(acc: { [key: number]: TrackModelDefinition }, [key, value]: [string, TrackModelDefinition]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
acc[globalThis.Number(key)] = TrackModelDefinition.fromPartial(value);
|
acc[globalThis.Number(key)] = TrackModelDefinition.fromPartial(value);
|
||||||
}
|
}
|
||||||
@@ -632,7 +651,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 {
|
||||||
Object.entries(message.thickness).forEach(([key, value]) => {
|
globalThis.Object.entries(message.thickness).forEach(([key, value]: [string, number]) => {
|
||||||
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) {
|
||||||
@@ -689,10 +708,13 @@ export const Armor: MessageFns<Armor> = {
|
|||||||
fromJSON(object: any): Armor {
|
fromJSON(object: any): Armor {
|
||||||
return {
|
return {
|
||||||
thickness: isObject(object.thickness)
|
thickness: isObject(object.thickness)
|
||||||
? Object.entries(object.thickness).reduce<{ [key: number]: number }>((acc, [key, value]) => {
|
? (globalThis.Object.entries(object.thickness) as [string, any][]).reduce(
|
||||||
acc[globalThis.Number(key)] = Number(value);
|
(acc: { [key: number]: number }, [key, value]: [string, any]) => {
|
||||||
return acc;
|
acc[globalThis.Number(key)] = globalThis.Number(value);
|
||||||
}, {})
|
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)) : [],
|
||||||
};
|
};
|
||||||
@@ -701,7 +723,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 = Object.entries(message.thickness);
|
const entries = globalThis.Object.entries(message.thickness) as [string, number][];
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.thickness = {};
|
obj.thickness = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -720,8 +742,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 = Object.entries(object.thickness ?? {}).reduce<{ [key: number]: number }>(
|
message.thickness = (globalThis.Object.entries(object.thickness ?? {}) as [string, number][]).reduce(
|
||||||
(acc, [key, value]) => {
|
(acc: { [key: number]: number }, [key, value]: [string, number]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
acc[globalThis.Number(key)] = globalThis.Number(value);
|
acc[globalThis.Number(key)] = globalThis.Number(value);
|
||||||
}
|
}
|
||||||
@@ -1012,7 +1034,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();
|
||||||
}
|
}
|
||||||
Object.entries(message.guns).forEach(([key, value]) => {
|
globalThis.Object.entries(message.guns).forEach(([key, value]: [string, GunModelDefinition]) => {
|
||||||
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) {
|
||||||
@@ -1090,15 +1112,30 @@ export const TurretModelDefinition: MessageFns<TurretModelDefinition> = {
|
|||||||
|
|
||||||
fromJSON(object: any): TurretModelDefinition {
|
fromJSON(object: any): TurretModelDefinition {
|
||||||
return {
|
return {
|
||||||
bounding_box: isSet(object.bounding_box) ? BoundingBox.fromJSON(object.bounding_box) : undefined,
|
bounding_box: isSet(object.boundingBox)
|
||||||
|
? 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.model_id) ? globalThis.Number(object.model_id) : 0,
|
model_id: isSet(object.modelId)
|
||||||
gun_origin: isSet(object.gun_origin) ? Vector3.fromJSON(object.gun_origin) : undefined,
|
? globalThis.Number(object.modelId)
|
||||||
|
: 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)
|
||||||
? Object.entries(object.guns).reduce<{ [key: number]: GunModelDefinition }>((acc, [key, value]) => {
|
? (globalThis.Object.entries(object.guns) as [string, any][]).reduce(
|
||||||
acc[globalThis.Number(key)] = GunModelDefinition.fromJSON(value);
|
(acc: { [key: number]: GunModelDefinition }, [key, value]: [string, any]) => {
|
||||||
return acc;
|
acc[globalThis.Number(key)] = GunModelDefinition.fromJSON(value);
|
||||||
}, {})
|
return acc;
|
||||||
|
},
|
||||||
|
{},
|
||||||
|
)
|
||||||
: {},
|
: {},
|
||||||
yaw: isSet(object.yaw) ? YawLimits.fromJSON(object.yaw) : undefined,
|
yaw: isSet(object.yaw) ? YawLimits.fromJSON(object.yaw) : undefined,
|
||||||
};
|
};
|
||||||
@@ -1107,19 +1144,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.bounding_box = BoundingBox.toJSON(message.bounding_box);
|
obj.boundingBox = 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.model_id = Math.round(message.model_id);
|
obj.modelId = Math.round(message.model_id);
|
||||||
}
|
}
|
||||||
if (message.gun_origin !== undefined) {
|
if (message.gun_origin !== undefined) {
|
||||||
obj.gun_origin = Vector3.toJSON(message.gun_origin);
|
obj.gunOrigin = Vector3.toJSON(message.gun_origin);
|
||||||
}
|
}
|
||||||
if (message.guns) {
|
if (message.guns) {
|
||||||
const entries = Object.entries(message.guns);
|
const entries = globalThis.Object.entries(message.guns) as [string, GunModelDefinition][];
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.guns = {};
|
obj.guns = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -1146,8 +1183,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 = Object.entries(object.guns ?? {}).reduce<{ [key: number]: GunModelDefinition }>(
|
message.guns = (globalThis.Object.entries(object.guns ?? {}) as [string, GunModelDefinition][]).reduce(
|
||||||
(acc, [key, value]) => {
|
(acc: { [key: number]: GunModelDefinition }, [key, value]: [string, GunModelDefinition]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
acc[globalThis.Number(key)] = GunModelDefinition.fromPartial(value);
|
acc[globalThis.Number(key)] = GunModelDefinition.fromPartial(value);
|
||||||
}
|
}
|
||||||
@@ -1554,7 +1591,11 @@ 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.model_id) ? globalThis.Number(object.model_id) : 0,
|
model_id: isSet(object.modelId)
|
||||||
|
? 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,
|
||||||
};
|
};
|
||||||
@@ -1569,7 +1610,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.model_id = Math.round(message.model_id);
|
obj.modelId = 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.7.7
|
// protoc-gen-ts_proto v2.11.2
|
||||||
// protoc v3.19.6
|
// protoc v5.28.2
|
||||||
// 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.7.7
|
// protoc-gen-ts_proto v2.11.2
|
||||||
// protoc v3.19.6
|
// protoc v5.28.2
|
||||||
// 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 {
|
||||||
Object.entries(message.provisions).forEach(([key, value]) => {
|
globalThis.Object.entries(message.provisions).forEach(([key, value]: [string, Provision]) => {
|
||||||
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,10 +71,13 @@ export const ProvisionDefinitions: MessageFns<ProvisionDefinitions> = {
|
|||||||
fromJSON(object: any): ProvisionDefinitions {
|
fromJSON(object: any): ProvisionDefinitions {
|
||||||
return {
|
return {
|
||||||
provisions: isObject(object.provisions)
|
provisions: isObject(object.provisions)
|
||||||
? Object.entries(object.provisions).reduce<{ [key: number]: Provision }>((acc, [key, value]) => {
|
? (globalThis.Object.entries(object.provisions) as [string, any][]).reduce(
|
||||||
acc[globalThis.Number(key)] = Provision.fromJSON(value);
|
(acc: { [key: number]: Provision }, [key, value]: [string, any]) => {
|
||||||
return acc;
|
acc[globalThis.Number(key)] = Provision.fromJSON(value);
|
||||||
}, {})
|
return acc;
|
||||||
|
},
|
||||||
|
{},
|
||||||
|
)
|
||||||
: {},
|
: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -82,7 +85,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 = Object.entries(message.provisions);
|
const entries = globalThis.Object.entries(message.provisions) as [string, Provision][];
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.provisions = {};
|
obj.provisions = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -98,8 +101,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 = Object.entries(object.provisions ?? {}).reduce<{ [key: number]: Provision }>(
|
message.provisions = (globalThis.Object.entries(object.provisions ?? {}) as [string, Provision][]).reduce(
|
||||||
(acc, [key, value]) => {
|
(acc: { [key: number]: Provision }, [key, value]: [string, Provision]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
acc[globalThis.Number(key)] = Provision.fromPartial(value);
|
acc[globalThis.Number(key)] = Provision.fromPartial(value);
|
||||||
}
|
}
|
||||||
@@ -289,7 +292,11 @@ 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.game_mode_exclusive) ? globalThis.Boolean(object.game_mode_exclusive) : false,
|
game_mode_exclusive: isSet(object.gameModeExclusive)
|
||||||
|
? 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))
|
||||||
: [],
|
: [],
|
||||||
@@ -311,7 +318,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.game_mode_exclusive = message.game_mode_exclusive;
|
obj.gameModeExclusive = 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.7.7
|
// protoc-gen-ts_proto v2.11.2
|
||||||
// protoc v3.19.6
|
// protoc v5.28.2
|
||||||
// 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.7.7
|
// protoc-gen-ts_proto v2.11.2
|
||||||
// protoc v3.19.6
|
// protoc v5.28.2
|
||||||
// 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 {
|
||||||
Object.entries(message.reviews).forEach(([key, value]) => {
|
globalThis.Object.entries(message.reviews).forEach(([key, value]: [string, Review]) => {
|
||||||
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,10 +70,13 @@ export const Reviews: MessageFns<Reviews> = {
|
|||||||
fromJSON(object: any): Reviews {
|
fromJSON(object: any): Reviews {
|
||||||
return {
|
return {
|
||||||
reviews: isObject(object.reviews)
|
reviews: isObject(object.reviews)
|
||||||
? Object.entries(object.reviews).reduce<{ [key: number]: Review }>((acc, [key, value]) => {
|
? (globalThis.Object.entries(object.reviews) as [string, any][]).reduce(
|
||||||
acc[globalThis.Number(key)] = Review.fromJSON(value);
|
(acc: { [key: number]: Review }, [key, value]: [string, any]) => {
|
||||||
return acc;
|
acc[globalThis.Number(key)] = Review.fromJSON(value);
|
||||||
}, {})
|
return acc;
|
||||||
|
},
|
||||||
|
{},
|
||||||
|
)
|
||||||
: {},
|
: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -81,7 +84,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 = Object.entries(message.reviews);
|
const entries = globalThis.Object.entries(message.reviews) as [string, Review][];
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.reviews = {};
|
obj.reviews = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -97,12 +100,15 @@ 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 = Object.entries(object.reviews ?? {}).reduce<{ [key: number]: Review }>((acc, [key, value]) => {
|
message.reviews = (globalThis.Object.entries(object.reviews ?? {}) as [string, Review][]).reduce(
|
||||||
if (value !== undefined) {
|
(acc: { [key: number]: Review }, [key, value]: [string, Review]) => {
|
||||||
acc[globalThis.Number(key)] = Review.fromPartial(value);
|
if (value !== undefined) {
|
||||||
}
|
acc[globalThis.Number(key)] = Review.fromPartial(value);
|
||||||
return acc;
|
}
|
||||||
}, {});
|
return acc;
|
||||||
|
},
|
||||||
|
{},
|
||||||
|
);
|
||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -234,7 +240,11 @@ export const Review: MessageFns<Review> = {
|
|||||||
|
|
||||||
fromJSON(object: any): Review {
|
fromJSON(object: any): Review {
|
||||||
return {
|
return {
|
||||||
last_updated: isSet(object.last_updated) ? globalThis.Number(object.last_updated) : 0,
|
last_updated: isSet(object.lastUpdated)
|
||||||
|
? 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)) : [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -242,7 +252,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.last_updated = message.last_updated;
|
obj.lastUpdated = 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.7.7
|
// protoc-gen-ts_proto v2.11.2
|
||||||
// protoc v3.19.6
|
// protoc v5.28.2
|
||||||
// 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 {
|
||||||
Object.entries(message.classes).forEach(([key, value]) => {
|
globalThis.Object.entries(message.classes).forEach(([key, value]: [string, Skill]) => {
|
||||||
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,10 +65,13 @@ export const SkillDefinitions: MessageFns<SkillDefinitions> = {
|
|||||||
fromJSON(object: any): SkillDefinitions {
|
fromJSON(object: any): SkillDefinitions {
|
||||||
return {
|
return {
|
||||||
classes: isObject(object.classes)
|
classes: isObject(object.classes)
|
||||||
? Object.entries(object.classes).reduce<{ [key: number]: Skill }>((acc, [key, value]) => {
|
? (globalThis.Object.entries(object.classes) as [string, any][]).reduce(
|
||||||
acc[globalThis.Number(key)] = Skill.fromJSON(value);
|
(acc: { [key: number]: Skill }, [key, value]: [string, any]) => {
|
||||||
return acc;
|
acc[globalThis.Number(key)] = Skill.fromJSON(value);
|
||||||
}, {})
|
return acc;
|
||||||
|
},
|
||||||
|
{},
|
||||||
|
)
|
||||||
: {},
|
: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -76,7 +79,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 = Object.entries(message.classes);
|
const entries = globalThis.Object.entries(message.classes) as [string, Skill][];
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.classes = {};
|
obj.classes = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -92,12 +95,15 @@ 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 = Object.entries(object.classes ?? {}).reduce<{ [key: number]: Skill }>((acc, [key, value]) => {
|
message.classes = (globalThis.Object.entries(object.classes ?? {}) as [string, Skill][]).reduce(
|
||||||
if (value !== undefined) {
|
(acc: { [key: number]: Skill }, [key, value]: [string, Skill]) => {
|
||||||
acc[globalThis.Number(key)] = Skill.fromPartial(value);
|
if (value !== undefined) {
|
||||||
}
|
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<string, uint32> roles = 3;
|
map<uint32, 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,7 +41,6 @@ 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 {
|
||||||
@@ -87,7 +86,6 @@ 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.7.7
|
// protoc-gen-ts_proto v2.11.2
|
||||||
// protoc v3.19.6
|
// protoc v5.28.2
|
||||||
// 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: string]: number };
|
roles: { [key: number]: number };
|
||||||
fixed_camouflage: boolean;
|
fixed_camouflage: boolean;
|
||||||
camouflages: number[];
|
camouflages: number[];
|
||||||
ancestors: number[];
|
ancestors: number[];
|
||||||
@@ -292,11 +292,10 @@ 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: string;
|
key: number;
|
||||||
value: number;
|
value: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -338,7 +337,6 @@ 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 {
|
||||||
@@ -465,7 +463,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 {
|
||||||
Object.entries(message.tanks).forEach(([key, value]) => {
|
globalThis.Object.entries(message.tanks).forEach(([key, value]: [string, TankDefinition]) => {
|
||||||
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;
|
||||||
@@ -501,10 +499,13 @@ export const TankDefinitions: MessageFns<TankDefinitions> = {
|
|||||||
fromJSON(object: any): TankDefinitions {
|
fromJSON(object: any): TankDefinitions {
|
||||||
return {
|
return {
|
||||||
tanks: isObject(object.tanks)
|
tanks: isObject(object.tanks)
|
||||||
? Object.entries(object.tanks).reduce<{ [key: number]: TankDefinition }>((acc, [key, value]) => {
|
? (globalThis.Object.entries(object.tanks) as [string, any][]).reduce(
|
||||||
acc[globalThis.Number(key)] = TankDefinition.fromJSON(value);
|
(acc: { [key: number]: TankDefinition }, [key, value]: [string, any]) => {
|
||||||
return acc;
|
acc[globalThis.Number(key)] = TankDefinition.fromJSON(value);
|
||||||
}, {})
|
return acc;
|
||||||
|
},
|
||||||
|
{},
|
||||||
|
)
|
||||||
: {},
|
: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -512,7 +513,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 = Object.entries(message.tanks);
|
const entries = globalThis.Object.entries(message.tanks) as [string, TankDefinition][];
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.tanks = {};
|
obj.tanks = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -528,8 +529,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 = Object.entries(object.tanks ?? {}).reduce<{ [key: number]: TankDefinition }>(
|
message.tanks = (globalThis.Object.entries(object.tanks ?? {}) as [string, TankDefinition][]).reduce(
|
||||||
(acc, [key, value]) => {
|
(acc: { [key: number]: TankDefinition }, [key, value]: [string, TankDefinition]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
acc[globalThis.Number(key)] = TankDefinition.fromPartial(value);
|
acc[globalThis.Number(key)] = TankDefinition.fromPartial(value);
|
||||||
}
|
}
|
||||||
@@ -653,7 +654,6 @@ 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);
|
||||||
}
|
}
|
||||||
Object.entries(message.roles).forEach(([key, value]) => {
|
globalThis.Object.entries(message.roles).forEach(([key, value]: [string, number]) => {
|
||||||
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,9 +755,6 @@ 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;
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -1057,14 +1054,6 @@ 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;
|
||||||
@@ -1079,12 +1068,19 @@ 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)
|
||||||
? Object.entries(object.roles).reduce<{ [key: string]: number }>((acc, [key, value]) => {
|
? (globalThis.Object.entries(object.roles) as [string, any][]).reduce(
|
||||||
acc[key] = Number(value);
|
(acc: { [key: number]: number }, [key, value]: [string, any]) => {
|
||||||
return acc;
|
acc[globalThis.Number(key)] = globalThis.Number(value);
|
||||||
}, {})
|
return acc;
|
||||||
|
},
|
||||||
|
{},
|
||||||
|
)
|
||||||
: {},
|
: {},
|
||||||
fixed_camouflage: isSet(object.fixed_camouflage) ? globalThis.Boolean(object.fixed_camouflage) : false,
|
fixed_camouflage: isSet(object.fixedCamouflage)
|
||||||
|
? 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))
|
||||||
: [],
|
: [],
|
||||||
@@ -1094,13 +1090,23 @@ 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) ? object.crew.map((e: any) => Crew.fromJSON(e)) : [],
|
crew: globalThis.Array.isArray(object?.crew)
|
||||||
|
? 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.max_consumables) ? globalThis.Number(object.max_consumables) : 0,
|
max_consumables: isSet(object.maxConsumables)
|
||||||
max_provisions: isSet(object.max_provisions) ? globalThis.Number(object.max_provisions) : 0,
|
? globalThis.Number(object.maxConsumables)
|
||||||
|
: 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,
|
||||||
@@ -1115,17 +1121,48 @@ 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.research_cost) ? ResearchCost.fromJSON(object.research_cost) : undefined,
|
research_cost: isSet(object.researchCost)
|
||||||
speed_forwards: isSet(object.speed_forwards) ? globalThis.Number(object.speed_forwards) : 0,
|
? ResearchCost.fromJSON(object.researchCost)
|
||||||
speed_backwards: isSet(object.speed_backwards) ? globalThis.Number(object.speed_backwards) : 0,
|
: isSet(object.research_cost)
|
||||||
camouflage_still: isSet(object.camouflage_still) ? globalThis.Number(object.camouflage_still) : 0,
|
? ResearchCost.fromJSON(object.research_cost)
|
||||||
camouflage_moving: isSet(object.camouflage_moving) ? globalThis.Number(object.camouflage_moving) : 0,
|
: undefined,
|
||||||
camouflage_on_fire: isSet(object.camouflage_on_fire) ? globalThis.Number(object.camouflage_on_fire) : 0,
|
speed_forwards: isSet(object.speedForwards)
|
||||||
equipment_preset: isSet(object.equipment_preset) ? globalThis.String(object.equipment_preset) : "",
|
? globalThis.Number(object.speedForwards)
|
||||||
|
: 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.dev_name) ? globalThis.String(object.dev_name) : "",
|
dev_name: isSet(object.devName)
|
||||||
|
? 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,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -1138,7 +1175,7 @@ export const TankDefinition: MessageFns<TankDefinition> = {
|
|||||||
obj.slug = message.slug;
|
obj.slug = message.slug;
|
||||||
}
|
}
|
||||||
if (message.roles) {
|
if (message.roles) {
|
||||||
const entries = Object.entries(message.roles);
|
const entries = globalThis.Object.entries(message.roles) as [string, number][];
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
obj.roles = {};
|
obj.roles = {};
|
||||||
entries.forEach(([k, v]) => {
|
entries.forEach(([k, v]) => {
|
||||||
@@ -1147,7 +1184,7 @@ export const TankDefinition: MessageFns<TankDefinition> = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (message.fixed_camouflage !== false) {
|
if (message.fixed_camouflage !== false) {
|
||||||
obj.fixed_camouflage = message.fixed_camouflage;
|
obj.fixedCamouflage = 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));
|
||||||
@@ -1174,10 +1211,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.max_consumables = Math.round(message.max_consumables);
|
obj.maxConsumables = Math.round(message.max_consumables);
|
||||||
}
|
}
|
||||||
if (message.max_provisions !== 0) {
|
if (message.max_provisions !== 0) {
|
||||||
obj.max_provisions = Math.round(message.max_provisions);
|
obj.maxProvisions = 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);
|
||||||
@@ -1204,38 +1241,35 @@ 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.research_cost = ResearchCost.toJSON(message.research_cost);
|
obj.researchCost = ResearchCost.toJSON(message.research_cost);
|
||||||
}
|
}
|
||||||
if (message.speed_forwards !== 0) {
|
if (message.speed_forwards !== 0) {
|
||||||
obj.speed_forwards = message.speed_forwards;
|
obj.speedForwards = message.speed_forwards;
|
||||||
}
|
}
|
||||||
if (message.speed_backwards !== 0) {
|
if (message.speed_backwards !== 0) {
|
||||||
obj.speed_backwards = message.speed_backwards;
|
obj.speedBackwards = message.speed_backwards;
|
||||||
}
|
}
|
||||||
if (message.camouflage_still !== 0) {
|
if (message.camouflage_still !== 0) {
|
||||||
obj.camouflage_still = message.camouflage_still;
|
obj.camouflageStill = message.camouflage_still;
|
||||||
}
|
}
|
||||||
if (message.camouflage_moving !== 0) {
|
if (message.camouflage_moving !== 0) {
|
||||||
obj.camouflage_moving = message.camouflage_moving;
|
obj.camouflageMoving = message.camouflage_moving;
|
||||||
}
|
}
|
||||||
if (message.camouflage_on_fire !== 0) {
|
if (message.camouflage_on_fire !== 0) {
|
||||||
obj.camouflage_on_fire = message.camouflage_on_fire;
|
obj.camouflageOnFire = message.camouflage_on_fire;
|
||||||
}
|
}
|
||||||
if (message.equipment_preset !== "") {
|
if (message.equipment_preset !== "") {
|
||||||
obj.equipment_preset = message.equipment_preset;
|
obj.equipmentPreset = 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.dev_name = message.dev_name;
|
obj.devName = 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;
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -1246,12 +1280,15 @@ 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 = Object.entries(object.roles ?? {}).reduce<{ [key: string]: number }>((acc, [key, value]) => {
|
message.roles = (globalThis.Object.entries(object.roles ?? {}) as [string, number][]).reduce(
|
||||||
if (value !== undefined) {
|
(acc: { [key: number]: number }, [key, value]: [string, number]) => {
|
||||||
acc[key] = globalThis.Number(value);
|
if (value !== undefined) {
|
||||||
}
|
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) || [];
|
||||||
@@ -1289,21 +1326,18 @@ 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: "", value: 0 };
|
return { key: 0, 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 !== "") {
|
if (message.key !== 0) {
|
||||||
writer.uint32(10).string(message.key);
|
writer.uint32(8).uint32(message.key);
|
||||||
}
|
}
|
||||||
if (message.value !== 0) {
|
if (message.value !== 0) {
|
||||||
writer.uint32(16).uint32(message.value);
|
writer.uint32(16).uint32(message.value);
|
||||||
@@ -1319,11 +1353,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 !== 10) {
|
if (tag !== 8) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
message.key = reader.string();
|
message.key = reader.uint32();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
case 2: {
|
case 2: {
|
||||||
@@ -1345,15 +1379,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.String(object.key) : "",
|
key: isSet(object.key) ? globalThis.Number(object.key) : 0,
|
||||||
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 !== "") {
|
if (message.key !== 0) {
|
||||||
obj.key = message.key;
|
obj.key = Math.round(message.key);
|
||||||
}
|
}
|
||||||
if (message.value !== 0) {
|
if (message.value !== 0) {
|
||||||
obj.value = Math.round(message.value);
|
obj.value = Math.round(message.value);
|
||||||
@@ -1366,7 +1400,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 ?? "";
|
message.key = object.key ?? 0;
|
||||||
message.value = object.value ?? 0;
|
message.value = object.value ?? 0;
|
||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
@@ -1456,7 +1490,11 @@ 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.module_health) ? globalThis.Number(object.module_health) : 0,
|
module_health: isSet(object.moduleHealth)
|
||||||
|
? 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,
|
||||||
};
|
};
|
||||||
@@ -1471,7 +1509,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.module_health = message.module_health;
|
obj.moduleHealth = message.module_health;
|
||||||
}
|
}
|
||||||
if (message.damage !== 0) {
|
if (message.damage !== 0) {
|
||||||
obj.damage = message.damage;
|
obj.damage = message.damage;
|
||||||
@@ -1552,6 +1590,8 @@ 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,
|
||||||
@@ -1563,7 +1603,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.seasonal_tokens = ResearchCostSeasonalTokens.toJSON(message.research_cost_type.value);
|
obj.seasonalTokens = ResearchCostSeasonalTokens.toJSON(message.research_cost_type.value);
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
@@ -1760,7 +1800,6 @@ function createBaseTrackDefinition(): TrackDefinition {
|
|||||||
resistance_medium: 0,
|
resistance_medium: 0,
|
||||||
resistance_soft: 0,
|
resistance_soft: 0,
|
||||||
unlocks: [],
|
unlocks: [],
|
||||||
repair_time: 0,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1802,9 +1841,6 @@ 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;
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -1911,14 +1947,6 @@ 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;
|
||||||
@@ -1934,15 +1962,44 @@ 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.traverse_speed) ? globalThis.Number(object.traverse_speed) : 0,
|
traverse_speed: isSet(object.traverseSpeed)
|
||||||
research_cost: isSet(object.research_cost) ? ResearchCost.fromJSON(object.research_cost) : undefined,
|
? globalThis.Number(object.traverseSpeed)
|
||||||
dispersion_move: isSet(object.dispersion_move) ? globalThis.Number(object.dispersion_move) : 0,
|
: isSet(object.traverse_speed)
|
||||||
dispersion_traverse: isSet(object.dispersion_traverse) ? globalThis.Number(object.dispersion_traverse) : 0,
|
? globalThis.Number(object.traverse_speed)
|
||||||
resistance_hard: isSet(object.resistance_hard) ? globalThis.Number(object.resistance_hard) : 0,
|
: 0,
|
||||||
resistance_medium: isSet(object.resistance_medium) ? globalThis.Number(object.resistance_medium) : 0,
|
research_cost: isSet(object.researchCost)
|
||||||
resistance_soft: isSet(object.resistance_soft) ? globalThis.Number(object.resistance_soft) : 0,
|
? ResearchCost.fromJSON(object.researchCost)
|
||||||
unlocks: globalThis.Array.isArray(object?.unlocks) ? object.unlocks.map((e: any) => Unlock.fromJSON(e)) : [],
|
: isSet(object.research_cost)
|
||||||
repair_time: isSet(object.repair_time) ? globalThis.Number(object.repair_time) : 0,
|
? ResearchCost.fromJSON(object.research_cost)
|
||||||
|
: 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))
|
||||||
|
: [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -1961,32 +2018,29 @@ 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.traverse_speed = message.traverse_speed;
|
obj.traverseSpeed = message.traverse_speed;
|
||||||
}
|
}
|
||||||
if (message.research_cost !== undefined) {
|
if (message.research_cost !== undefined) {
|
||||||
obj.research_cost = ResearchCost.toJSON(message.research_cost);
|
obj.researchCost = ResearchCost.toJSON(message.research_cost);
|
||||||
}
|
}
|
||||||
if (message.dispersion_move !== 0) {
|
if (message.dispersion_move !== 0) {
|
||||||
obj.dispersion_move = message.dispersion_move;
|
obj.dispersionMove = message.dispersion_move;
|
||||||
}
|
}
|
||||||
if (message.dispersion_traverse !== 0) {
|
if (message.dispersion_traverse !== 0) {
|
||||||
obj.dispersion_traverse = message.dispersion_traverse;
|
obj.dispersionTraverse = message.dispersion_traverse;
|
||||||
}
|
}
|
||||||
if (message.resistance_hard !== 0) {
|
if (message.resistance_hard !== 0) {
|
||||||
obj.resistance_hard = message.resistance_hard;
|
obj.resistanceHard = message.resistance_hard;
|
||||||
}
|
}
|
||||||
if (message.resistance_medium !== 0) {
|
if (message.resistance_medium !== 0) {
|
||||||
obj.resistance_medium = message.resistance_medium;
|
obj.resistanceMedium = message.resistance_medium;
|
||||||
}
|
}
|
||||||
if (message.resistance_soft !== 0) {
|
if (message.resistance_soft !== 0) {
|
||||||
obj.resistance_soft = message.resistance_soft;
|
obj.resistanceSoft = 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;
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -2011,7 +2065,6 @@ 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;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -2142,9 +2195,17 @@ 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.research_cost) ? ResearchCost.fromJSON(object.research_cost) : undefined,
|
research_cost: isSet(object.researchCost)
|
||||||
|
? 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.fire_chance) ? globalThis.Number(object.fire_chance) : 0,
|
fire_chance: isSet(object.fireChance)
|
||||||
|
? 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)) : [],
|
||||||
@@ -2160,13 +2221,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.research_cost = ResearchCost.toJSON(message.research_cost);
|
obj.researchCost = 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.fire_chance = message.fire_chance;
|
obj.fireChance = message.fire_chance;
|
||||||
}
|
}
|
||||||
if (message.power !== 0) {
|
if (message.power !== 0) {
|
||||||
obj.power = Math.round(message.power);
|
obj.power = Math.round(message.power);
|
||||||
@@ -2351,13 +2412,27 @@ 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.view_range) ? globalThis.Number(object.view_range) : 0,
|
view_range: isSet(object.viewRange)
|
||||||
traverse_speed: isSet(object.traverse_speed) ? globalThis.Number(object.traverse_speed) : 0,
|
? globalThis.Number(object.viewRange)
|
||||||
research_cost: isSet(object.research_cost) ? ResearchCost.fromJSON(object.research_cost) : undefined,
|
: isSet(object.view_range)
|
||||||
|
? 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) ? object.guns.map((e: any) => GunDefinition.fromJSON(e)) : [],
|
guns: globalThis.Array.isArray(object?.guns)
|
||||||
|
? 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)) : [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -2371,13 +2446,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.view_range = Math.round(message.view_range);
|
obj.viewRange = Math.round(message.view_range);
|
||||||
}
|
}
|
||||||
if (message.traverse_speed !== 0) {
|
if (message.traverse_speed !== 0) {
|
||||||
obj.traverse_speed = message.traverse_speed;
|
obj.traverseSpeed = message.traverse_speed;
|
||||||
}
|
}
|
||||||
if (message.research_cost !== undefined) {
|
if (message.research_cost !== undefined) {
|
||||||
obj.research_cost = ResearchCost.toJSON(message.research_cost);
|
obj.researchCost = 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);
|
||||||
@@ -2693,29 +2768,75 @@ 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.rotation_speed) ? globalThis.Number(object.rotation_speed) : 0,
|
rotation_speed: isSet(object.rotationSpeed)
|
||||||
research_cost: isSet(object.research_cost) ? ResearchCost.fromJSON(object.research_cost) : undefined,
|
? globalThis.Number(object.rotationSpeed)
|
||||||
|
: 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.camouflage_loss) ? globalThis.Number(object.camouflage_loss) : 0,
|
camouflage_loss: isSet(object.camouflageLoss)
|
||||||
aim_time: isSet(object.aim_time) ? globalThis.Number(object.aim_time) : 0,
|
? globalThis.Number(object.camouflageLoss)
|
||||||
dispersion_base: isSet(object.dispersion_base) ? globalThis.Number(object.dispersion_base) : 0,
|
: isSet(object.camouflage_loss)
|
||||||
dispersion_traverse: isSet(object.dispersion_traverse) ? globalThis.Number(object.dispersion_traverse) : 0,
|
? globalThis.Number(object.camouflage_loss)
|
||||||
dispersion_shot: isSet(object.dispersion_shot) ? globalThis.Number(object.dispersion_shot) : 0,
|
: 0,
|
||||||
dispersion_damaged: isSet(object.dispersion_damaged) ? globalThis.Number(object.dispersion_damaged) : 0,
|
aim_time: isSet(object.aimTime)
|
||||||
unlocks: globalThis.Array.isArray(object?.unlocks) ? object.unlocks.map((e: any) => Unlock.fromJSON(e)) : [],
|
? globalThis.Number(object.aimTime)
|
||||||
shell_capacity: isSet(object.shell_capacity) ? globalThis.Number(object.shell_capacity) : 0,
|
: isSet(object.aim_time)
|
||||||
assault_ranges: isSet(object.assault_ranges) ? AssaultRanges.fromJSON(object.assault_ranges) : undefined,
|
? globalThis.Number(object.aim_time)
|
||||||
|
: 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,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -2725,18 +2846,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.auto_loader = GunDefinitionAutoLoader.toJSON(message.gun_type.value);
|
obj.autoLoader = GunDefinitionAutoLoader.toJSON(message.gun_type.value);
|
||||||
} else if (message.gun_type?.$case === "auto_reloader") {
|
} else if (message.gun_type?.$case === "auto_reloader") {
|
||||||
obj.auto_reloader = GunDefinitionAutoReloader.toJSON(message.gun_type.value);
|
obj.autoReloader = 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.rotation_speed = message.rotation_speed;
|
obj.rotationSpeed = message.rotation_speed;
|
||||||
}
|
}
|
||||||
if (message.research_cost !== undefined) {
|
if (message.research_cost !== undefined) {
|
||||||
obj.research_cost = ResearchCost.toJSON(message.research_cost);
|
obj.researchCost = 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);
|
||||||
@@ -2751,31 +2872,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.camouflage_loss = message.camouflage_loss;
|
obj.camouflageLoss = message.camouflage_loss;
|
||||||
}
|
}
|
||||||
if (message.aim_time !== 0) {
|
if (message.aim_time !== 0) {
|
||||||
obj.aim_time = message.aim_time;
|
obj.aimTime = message.aim_time;
|
||||||
}
|
}
|
||||||
if (message.dispersion_base !== 0) {
|
if (message.dispersion_base !== 0) {
|
||||||
obj.dispersion_base = message.dispersion_base;
|
obj.dispersionBase = message.dispersion_base;
|
||||||
}
|
}
|
||||||
if (message.dispersion_traverse !== 0) {
|
if (message.dispersion_traverse !== 0) {
|
||||||
obj.dispersion_traverse = message.dispersion_traverse;
|
obj.dispersionTraverse = message.dispersion_traverse;
|
||||||
}
|
}
|
||||||
if (message.dispersion_shot !== 0) {
|
if (message.dispersion_shot !== 0) {
|
||||||
obj.dispersion_shot = message.dispersion_shot;
|
obj.dispersionShot = message.dispersion_shot;
|
||||||
}
|
}
|
||||||
if (message.dispersion_damaged !== 0) {
|
if (message.dispersion_damaged !== 0) {
|
||||||
obj.dispersion_damaged = message.dispersion_damaged;
|
obj.dispersionDamaged = 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.shell_capacity = Math.round(message.shell_capacity);
|
obj.shellCapacity = Math.round(message.shell_capacity);
|
||||||
}
|
}
|
||||||
if (message.assault_ranges !== undefined) {
|
if (message.assault_ranges !== undefined) {
|
||||||
obj.assault_ranges = AssaultRanges.toJSON(message.assault_ranges);
|
obj.assaultRanges = 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);
|
||||||
@@ -2959,22 +3080,34 @@ export const GunDefinitionAutoLoader: MessageFns<GunDefinitionAutoLoader> = {
|
|||||||
|
|
||||||
fromJSON(object: any): GunDefinitionAutoLoader {
|
fromJSON(object: any): GunDefinitionAutoLoader {
|
||||||
return {
|
return {
|
||||||
clip_reload: isSet(object.clip_reload) ? globalThis.Number(object.clip_reload) : 0,
|
clip_reload: isSet(object.clipReload)
|
||||||
intra_clip: isSet(object.intra_clip) ? globalThis.Number(object.intra_clip) : 0,
|
? globalThis.Number(object.clipReload)
|
||||||
shell_count: isSet(object.shell_count) ? globalThis.Number(object.shell_count) : 0,
|
: isSet(object.clip_reload)
|
||||||
|
? 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.clip_reload = message.clip_reload;
|
obj.clipReload = message.clip_reload;
|
||||||
}
|
}
|
||||||
if (message.intra_clip !== 0) {
|
if (message.intra_clip !== 0) {
|
||||||
obj.intra_clip = message.intra_clip;
|
obj.intraClip = message.intra_clip;
|
||||||
}
|
}
|
||||||
if (message.shell_count !== 0) {
|
if (message.shell_count !== 0) {
|
||||||
obj.shell_count = message.shell_count;
|
obj.shellCount = message.shell_count;
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
@@ -3137,24 +3270,34 @@ export const GunDefinitionAutoReloader: MessageFns<GunDefinitionAutoReloader> =
|
|||||||
|
|
||||||
fromJSON(object: any): GunDefinitionAutoReloader {
|
fromJSON(object: any): GunDefinitionAutoReloader {
|
||||||
return {
|
return {
|
||||||
shell_reloads: globalThis.Array.isArray(object?.shell_reloads)
|
shell_reloads: globalThis.Array.isArray(object?.shellReloads)
|
||||||
|
? 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.intra_clip) ? globalThis.Number(object.intra_clip) : 0,
|
intra_clip: isSet(object.intraClip)
|
||||||
shell_count: isSet(object.shell_count) ? globalThis.Number(object.shell_count) : 0,
|
? 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: GunDefinitionAutoReloader): unknown {
|
toJSON(message: GunDefinitionAutoReloader): unknown {
|
||||||
const obj: any = {};
|
const obj: any = {};
|
||||||
if (message.shell_reloads?.length) {
|
if (message.shell_reloads?.length) {
|
||||||
obj.shell_reloads = message.shell_reloads;
|
obj.shellReloads = message.shell_reloads;
|
||||||
}
|
}
|
||||||
if (message.intra_clip !== 0) {
|
if (message.intra_clip !== 0) {
|
||||||
obj.intra_clip = message.intra_clip;
|
obj.intraClip = message.intra_clip;
|
||||||
}
|
}
|
||||||
if (message.shell_count !== 0) {
|
if (message.shell_count !== 0) {
|
||||||
obj.shell_count = message.shell_count;
|
obj.shellCount = message.shell_count;
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
@@ -3520,15 +3663,27 @@ 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.armor_damage) ? globalThis.Number(object.armor_damage) : 0,
|
armor_damage: isSet(object.armorDamage)
|
||||||
module_damage: isSet(object.module_damage) ? globalThis.Number(object.module_damage) : 0,
|
? globalThis.Number(object.armorDamage)
|
||||||
|
: 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.explosion_radius) ? globalThis.Number(object.explosion_radius) : 0,
|
explosion_radius: isSet(object.explosionRadius)
|
||||||
|
? 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,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -3545,10 +3700,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.armor_damage = Math.round(message.armor_damage);
|
obj.armorDamage = Math.round(message.armor_damage);
|
||||||
}
|
}
|
||||||
if (message.module_damage !== 0) {
|
if (message.module_damage !== 0) {
|
||||||
obj.module_damage = Math.round(message.module_damage);
|
obj.moduleDamage = Math.round(message.module_damage);
|
||||||
}
|
}
|
||||||
if (message.caliber !== 0) {
|
if (message.caliber !== 0) {
|
||||||
obj.caliber = message.caliber;
|
obj.caliber = message.caliber;
|
||||||
@@ -3569,7 +3724,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.explosion_radius = message.explosion_radius;
|
obj.explosionRadius = message.explosion_radius;
|
||||||
}
|
}
|
||||||
if (message.range !== 0) {
|
if (message.range !== 0) {
|
||||||
obj.range = Math.round(message.range);
|
obj.range = Math.round(message.range);
|
||||||
|
|||||||
@@ -90,28 +90,6 @@ 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;
|
||||||
|
|||||||
@@ -20,13 +20,11 @@ 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;
|
||||||
speed: number;
|
maxDistance: number;
|
||||||
piercingPower: string;
|
};
|
||||||
maxDistance: number;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -10,9 +10,6 @@ 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,8 +34,6 @@ export interface VehicleDefinitions {
|
|||||||
};
|
};
|
||||||
level: number;
|
level: number;
|
||||||
hullPosition: string;
|
hullPosition: string;
|
||||||
hysteresisHealth: number;
|
|
||||||
healthRegenPerSec: number;
|
|
||||||
armor: {
|
armor: {
|
||||||
leftTrack:
|
leftTrack:
|
||||||
| number
|
| number
|
||||||
|
|||||||
@@ -215,7 +215,6 @@
|
|||||||
"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"
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -459,8 +458,6 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"sandbox": {
|
"sandbox": {
|
||||||
"load_model": "Load model",
|
|
||||||
|
|
||||||
"poses": {
|
"poses": {
|
||||||
"hull_down": "Hull down",
|
"hull_down": "Hull down",
|
||||||
"face_hug": "Face hug",
|
"face_hug": "Face hug",
|
||||||
@@ -576,7 +573,8 @@
|
|||||||
|
|
||||||
"equalizer": {
|
"equalizer": {
|
||||||
"title": "Equalizer",
|
"title": "Equalizer",
|
||||||
"equalize": "Equalize"
|
"equalize": "Equalize",
|
||||||
|
"beta": "Beta"
|
||||||
},
|
},
|
||||||
"modules": {
|
"modules": {
|
||||||
"title": "Modules",
|
"title": "Modules",
|
||||||
@@ -633,8 +631,6 @@
|
|||||||
"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",
|
||||||
@@ -683,12 +679,11 @@
|
|||||||
"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": "Shooting while still",
|
"camouflageShootingStill": "Still",
|
||||||
"camouflageShootingMoving": "Shooting while moving",
|
"camouflageShootingMoving": "Moving",
|
||||||
"camouflageCaughtOnFire": "Caught on fire",
|
"camouflageCaughtOnFire": "Caught on fire",
|
||||||
"width": "Width",
|
"width": "Width",
|
||||||
"height": "Height",
|
"height": "Height",
|
||||||
|
|||||||
@@ -194,7 +194,6 @@
|
|||||||
"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": {
|
||||||
@@ -413,7 +412,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"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",
|
||||||
@@ -517,7 +515,8 @@
|
|||||||
"title": "",
|
"title": "",
|
||||||
"equalizer": {
|
"equalizer": {
|
||||||
"title": "Equalizer",
|
"title": "Equalizer",
|
||||||
"equalize": "Equalize"
|
"equalize": "Equalize",
|
||||||
|
"beta": "Beta"
|
||||||
},
|
},
|
||||||
"modules": {
|
"modules": {
|
||||||
"title": "Módulos",
|
"title": "Módulos",
|
||||||
@@ -573,8 +572,6 @@
|
|||||||
"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",
|
||||||
@@ -623,12 +620,11 @@
|
|||||||
"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": "Shooting while still",
|
"camouflageShootingStill": "Quieto",
|
||||||
"camouflageShootingMoving": "Shooting while moving",
|
"camouflageShootingMoving": "En movimiento",
|
||||||
"camouflageCaughtOnFire": "Atrapado en fuego",
|
"camouflageCaughtOnFire": "Atrapado en fuego",
|
||||||
"width": "Ancho",
|
"width": "Ancho",
|
||||||
"height": "Altura",
|
"height": "Altura",
|
||||||
|
|||||||
@@ -194,7 +194,6 @@
|
|||||||
"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": {
|
||||||
@@ -413,7 +412,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sandbox": {
|
"sandbox": {
|
||||||
"load_model": "Load model",
|
|
||||||
"poses": {
|
"poses": {
|
||||||
"hull_down": "Hull down",
|
"hull_down": "Hull down",
|
||||||
"face_hug": "Face hug",
|
"face_hug": "Face hug",
|
||||||
@@ -517,7 +515,8 @@
|
|||||||
"title": "Configuration",
|
"title": "Configuration",
|
||||||
"equalizer": {
|
"equalizer": {
|
||||||
"title": "Equalizer",
|
"title": "Equalizer",
|
||||||
"equalize": "Equalize"
|
"equalize": "Equalize",
|
||||||
|
"beta": "Beta"
|
||||||
},
|
},
|
||||||
"modules": {
|
"modules": {
|
||||||
"title": "Modules",
|
"title": "Modules",
|
||||||
@@ -573,8 +572,6 @@
|
|||||||
"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",
|
||||||
@@ -623,12 +620,11 @@
|
|||||||
"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": "Shooting while still",
|
"camouflageShootingStill": "Still",
|
||||||
"camouflageShootingMoving": "Shooting while moving",
|
"camouflageShootingMoving": "Moving",
|
||||||
"camouflageCaughtOnFire": "Caught on fire",
|
"camouflageCaughtOnFire": "Caught on fire",
|
||||||
"width": "Width",
|
"width": "Width",
|
||||||
"height": "Height",
|
"height": "Height",
|
||||||
|
|||||||
@@ -194,7 +194,6 @@
|
|||||||
"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": {
|
||||||
@@ -413,7 +412,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sandbox": {
|
"sandbox": {
|
||||||
"load_model": "Load model",
|
|
||||||
"poses": {
|
"poses": {
|
||||||
"hull_down": "ハルダウン",
|
"hull_down": "ハルダウン",
|
||||||
"face_hug": "密着",
|
"face_hug": "密着",
|
||||||
@@ -517,7 +515,8 @@
|
|||||||
"title": "構成",
|
"title": "構成",
|
||||||
"equalizer": {
|
"equalizer": {
|
||||||
"title": "Equalizer",
|
"title": "Equalizer",
|
||||||
"equalize": "Equalize"
|
"equalize": "Equalize",
|
||||||
|
"beta": "Beta"
|
||||||
},
|
},
|
||||||
"modules": {
|
"modules": {
|
||||||
"title": "モジュール",
|
"title": "モジュール",
|
||||||
@@ -573,8 +572,6 @@
|
|||||||
"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",
|
||||||
@@ -623,12 +620,11 @@
|
|||||||
"hullTraverseSoftTerrain": "軟弱地",
|
"hullTraverseSoftTerrain": "軟弱地",
|
||||||
"health": "耐久値",
|
"health": "耐久値",
|
||||||
"fireChance": "火災発生率",
|
"fireChance": "火災発生率",
|
||||||
"trackRepairTime": "Track repair time",
|
|
||||||
"viewRange": "視認範囲",
|
"viewRange": "視認範囲",
|
||||||
"camouflageStill": "静止時",
|
"camouflageStill": "静止時",
|
||||||
"camouflageMoving": "移動時",
|
"camouflageMoving": "移動時",
|
||||||
"camouflageShootingStill": "Shooting while still",
|
"camouflageShootingStill": "静止時",
|
||||||
"camouflageShootingMoving": "Shooting while moving",
|
"camouflageShootingMoving": "移動時",
|
||||||
"camouflageCaughtOnFire": "Caught on fire",
|
"camouflageCaughtOnFire": "Caught on fire",
|
||||||
"width": "全幅",
|
"width": "全幅",
|
||||||
"height": "全高",
|
"height": "全高",
|
||||||
|
|||||||
+105
-109
@@ -194,7 +194,6 @@
|
|||||||
"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": {
|
||||||
@@ -220,190 +219,190 @@
|
|||||||
"clear": "Clear",
|
"clear": "Clear",
|
||||||
"tier": "Tier {tier}",
|
"tier": "Tier {tier}",
|
||||||
"passive": "{name} (Passive)",
|
"passive": "{name} (Passive)",
|
||||||
"active": "{name} (Aktywne)",
|
"active": "{name} (Active)",
|
||||||
"no_tanks_found": {
|
"no_tanks_found": {
|
||||||
"body": "Nie znaleziono czołgu.",
|
"body": "No tanks found.",
|
||||||
"search_again": "",
|
"search_again": "",
|
||||||
"clear_filters": "Try clearing filters."
|
"clear_filters": "Try clearing filters."
|
||||||
},
|
},
|
||||||
"sort": {
|
"sort": {
|
||||||
"meta.none": "brak",
|
"meta.none": "none",
|
||||||
"survivability.health": "punkty.życia",
|
"survivability.health": "health",
|
||||||
"survivability.viewRange": "zasięg widzenia",
|
"survivability.viewRange": "view range",
|
||||||
"survivability.camouflageStill": "kamuflaż w bezruchu",
|
"survivability.camouflageStill": "camouflage still",
|
||||||
"survivability.camouflageMoving": "kamuflaż w trakcie ruchu",
|
"survivability.camouflageMoving": "camouflage moving",
|
||||||
"survivability.camouflageShooting": "kamuflaż podczas strzału",
|
"survivability.camouflageShooting": "camouflage shooting",
|
||||||
"survivability.volume": "wartość",
|
"survivability.volume": "volume",
|
||||||
"survivability.length": "długość",
|
"survivability.length": "length",
|
||||||
"fire.dpm": "DPM pocisków podstawowych",
|
"fire.dpm": "standard DPM",
|
||||||
"fire.dpmPremium": "DPM pocisków premium",
|
"fire.dpmPremium": "premium DPM",
|
||||||
"fire.reload": "przeładowanie",
|
"fire.reload": "reload",
|
||||||
"fire.caliber": "kaliber",
|
"fire.caliber": "caliber",
|
||||||
"fire.standardPenetration": "Penetracja pocisków standardowych",
|
"fire.standardPenetration": "standard penetration",
|
||||||
"fire.premiumPenetration": "Penetracja pocisków premium",
|
"fire.premiumPenetration": "premium penetration",
|
||||||
"fire.tertiaryPenetration": "tertiary penetration",
|
"fire.tertiaryPenetration": "tertiary penetration",
|
||||||
"fire.damage": "uszkodzenia",
|
"fire.damage": "damage",
|
||||||
"fire.moduleDamage": "Uszkodzenia modułów",
|
"fire.moduleDamage": "module damage",
|
||||||
"fire.shellVelocity": "Prędkość pocisku",
|
"fire.shellVelocity": "shell velocity",
|
||||||
"fire.shellRange": "Zasięg pocisku",
|
"fire.shellRange": "shell range",
|
||||||
"fire.shellCapacity": "Maksymalna ilość pocisków",
|
"fire.shellCapacity": "shell capacity",
|
||||||
"fire.aimTime": "Czas celowania",
|
"fire.aimTime": "aim time",
|
||||||
"fire.dispersionStill": "dispersion still",
|
"fire.dispersionStill": "dispersion still",
|
||||||
"fire.dispersionMoving": "dispersion moving",
|
"fire.dispersionMoving": "dispersion moving",
|
||||||
"fire.gunDepression": "Depresja działa",
|
"fire.gunDepression": "gun depression",
|
||||||
"fire.gunElevation": "Elewacja działa",
|
"fire.gunElevation": "gun elevation",
|
||||||
"maneuverability.forwardsSpeed": "Maksymalna prędkość do przodu",
|
"maneuverability.forwardsSpeed": "forwards speed",
|
||||||
"maneuverability.backwardsSpeed": "Maksymalna prędkość do tyłu",
|
"maneuverability.backwardsSpeed": "backwards speed",
|
||||||
"maneuverability.power": "Moc silnika",
|
"maneuverability.power": "power",
|
||||||
"maneuverability.powerToWeight": "Proporcja mocy do masy",
|
"maneuverability.powerToWeight": "power to weight",
|
||||||
"maneuverability.weight": "Masa czołgu",
|
"maneuverability.weight": "weight",
|
||||||
"maneuverability.traverseSpeed": "traverse speed"
|
"maneuverability.traverseSpeed": "traverse speed"
|
||||||
},
|
},
|
||||||
"sort_dropdown": {
|
"sort_dropdown": {
|
||||||
"label": "Filtruj",
|
"label": "Sort",
|
||||||
"groups": {
|
"groups": {
|
||||||
"sort": {
|
"sort": {
|
||||||
"no_sort": "Brak filtrów",
|
"no_sort": "No sort",
|
||||||
"label": "Filtruj według",
|
"label": "Sort by",
|
||||||
"fire": "Siła ognia",
|
"fire": "Fire",
|
||||||
"maneuverability": "Mobilność ",
|
"maneuverability": "Maneuverability",
|
||||||
"survivability": "Przetrwanie"
|
"survivability": "Survivability"
|
||||||
},
|
},
|
||||||
"direction": {
|
"direction": {
|
||||||
"label": "Direction",
|
"label": "Direction",
|
||||||
"ascending": "Rosnąco",
|
"ascending": "Ascending",
|
||||||
"descending": "Malejąco"
|
"descending": "Descending"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"warnings": {
|
"warnings": {
|
||||||
"test": "Wartości statystyk czołgów w fazie testowej mogą ulec zmianie."
|
"test": "Tanks in testing are subject to change and may not represent the final product."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home": {
|
"home": {
|
||||||
"discord": {
|
"discord": {
|
||||||
"join_short": "Dołącz do elity!",
|
"join_short": "Join cool people!",
|
||||||
"join_long": "Dołącz do topowej elity!",
|
"join_long": "Join super duper cool people!",
|
||||||
"action": "Discord"
|
"action": "Discord"
|
||||||
},
|
},
|
||||||
"hero": {
|
"hero": {
|
||||||
"credit": "Według {name} ♥️"
|
"credit": "By {name} ❤️"
|
||||||
},
|
},
|
||||||
"hot_tanks": {
|
"hot_tanks": {
|
||||||
"title": "Popularne czołgi",
|
"title": "Popular tanks",
|
||||||
"subtitle": "Ostatnie {days} dni"
|
"subtitle": "Last {days} days"
|
||||||
},
|
},
|
||||||
"other_projects": {
|
"other_projects": {
|
||||||
"title": "Inne epickie projekty"
|
"title": "Other cool projects"
|
||||||
},
|
},
|
||||||
"help_translate": "Proszę pomóż przetłumaczyć {name} na {language}!",
|
"help_translate": "Please help translate {name} to {language}!",
|
||||||
"seo_description": "Narzędzia do wszystkiego World of Tanks Blitz"
|
"seo_description": "Tools for everything World of Tanks Blitz"
|
||||||
},
|
},
|
||||||
"docs": {
|
"docs": {
|
||||||
"patches": {
|
"patches": {
|
||||||
"name": "Zapisy zmian BlitzKit",
|
"name": "BlitzKit Changelogs",
|
||||||
"seo_description": "Zapisy zmian BlitzKit: Discord bot i strona internetowa"
|
"seo_description": "Changelogs for BlitzKit Discord bot and website"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tools": {
|
"tools": {
|
||||||
"playlist": {
|
"playlist": {
|
||||||
"reset": "Resetuj",
|
"reset": "Reset",
|
||||||
"shuffle": "Wymieszaj",
|
"shuffle": "Shuffle",
|
||||||
"remove": "Usuń czołgi, którymi grałem",
|
"remove": "Remove played",
|
||||||
"tracking": "BlitzKit zapisuje twoje bitwy",
|
"tracking": "BlitzKit is tracking your battles",
|
||||||
"sort": {
|
"sort": {
|
||||||
"button": "Filtruj według",
|
"button": "Sort by",
|
||||||
"last_played": "Ostatnio używane czołgi",
|
"last_played": "Last played",
|
||||||
"least_played": "Najmniej używane czołgi"
|
"least_played": "Least played"
|
||||||
},
|
},
|
||||||
"table": {
|
"table": {
|
||||||
"index": "#",
|
"index": "#",
|
||||||
"never": "Nigdy",
|
"never": "Never",
|
||||||
"tank": "Czołg",
|
"tank": "Tank",
|
||||||
"last_played": "Ostatnio używane czołgi",
|
"last_played": "Last played",
|
||||||
"battles": "Wszystkie bitwy na koncie",
|
"battles": "Career battles",
|
||||||
"unrecorded": "--",
|
"unrecorded": "--",
|
||||||
"wins": "Zwycięstwa"
|
"wins": "Zwycięstwa"
|
||||||
},
|
},
|
||||||
"large_warning": {
|
"large_warning": {
|
||||||
"title": "To jest mnóstwo czołgów!",
|
"title": "That's a lot of tanks!",
|
||||||
"description": "Czy na pewno chcesz stworzyć playlistę złożoną z {count} czołgów? To {time} godzin gry przy 50% zwycięstw!",
|
"description": "Are you sure you want to create a playlist of {count} tanks? That's {time} hours of gameplay at 50% winrate!",
|
||||||
"cancel": "Anuluj",
|
"cancel": "Cancel",
|
||||||
"proceed": "Zatwierdź"
|
"proceed": "Proceed"
|
||||||
},
|
},
|
||||||
"generate": "Wygeneruj playlistę",
|
"generate": "Generate playlist",
|
||||||
"name": "Playlista",
|
"name": "Playlist",
|
||||||
"description": "Generator playlisty czołgów",
|
"description": "Tank playlist generator",
|
||||||
"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!",
|
"seo_description": "Don't know what to play in World of Tanks Blitz? Use BlitzKit Playlist to get suggestions!",
|
||||||
"button": "Wygeneruj",
|
"button": "Generate",
|
||||||
"pool_size": "{count} możliwe czołgi"
|
"pool_size": "{count} possible tanks"
|
||||||
},
|
},
|
||||||
"mixer": {
|
"mixer": {
|
||||||
"name": "Mikser",
|
"name": "Mixer",
|
||||||
"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": "Zrzut ekranu",
|
"screenshot": "Screenshot",
|
||||||
"randomize": "Wymieszaj"
|
"randomize": "Randomize"
|
||||||
},
|
},
|
||||||
"guess": {
|
"guess": {
|
||||||
"name": "Zgadnij",
|
"name": "Guess",
|
||||||
"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": "Wpisz odpowiedź",
|
"placeholder": "Type to guess...",
|
||||||
"skip": "Pomiń",
|
"skip": "Skip",
|
||||||
"guess": "Zgaduję",
|
"guess": "Guess",
|
||||||
"next": "Następny",
|
"next": "Next",
|
||||||
"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": "Odsłonić część czołgu?",
|
"title": "Partially reveal tank?",
|
||||||
"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": "Anuluj",
|
"cancel": "Cancel",
|
||||||
"reveal": "Pokaż"
|
"reveal": "Reveal"
|
||||||
},
|
},
|
||||||
"clear": "Wyczyść",
|
"clear": "Clear",
|
||||||
"select_all": "Zaznacz wszystko ",
|
"select_all": "Select all",
|
||||||
"tier": "Poziom czołgu {tier}"
|
"tier": "Tier {tier}"
|
||||||
},
|
},
|
||||||
"tankopedia": {
|
"tankopedia": {
|
||||||
"search": "Wyszukaj statystykę...",
|
"search": "Search a stat...",
|
||||||
"name": "Tankopedia",
|
"name": "Tankopedia",
|
||||||
"button": "Znajdź czołg",
|
"button": "Find tanks",
|
||||||
"description": "Encyklopedia czołgów w WoTb",
|
"description": "Blitz tank encyclopedia",
|
||||||
"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": "Pomiń"
|
"skip": "Skip"
|
||||||
},
|
},
|
||||||
"assault": {
|
"assault": {
|
||||||
"title": "Assault shells"
|
"title": "Assault shells"
|
||||||
},
|
},
|
||||||
"rotator": {
|
"rotator": {
|
||||||
"hull": "Kadłub",
|
"hull": "Hull",
|
||||||
"turret": "Wieża",
|
"turret": "Turret",
|
||||||
"hard": "Utwardzony",
|
"hard": "Hard",
|
||||||
"medium": "Średni",
|
"medium": "Średni",
|
||||||
"soft": "Miękki",
|
"soft": "Soft",
|
||||||
"effective": "Rzeczywisty"
|
"effective": "Effective"
|
||||||
},
|
},
|
||||||
"ricochet": {
|
"ricochet": {
|
||||||
"angle": "Kąt",
|
"angle": "Angle",
|
||||||
"normalization": "Normalization",
|
"normalization": "Normalization",
|
||||||
"effective_angle": "Rzeczywisty kąt nachylenia pancerza",
|
"effective_angle": "Effective angle",
|
||||||
"armor": "Pancerz",
|
"armor": "Armor",
|
||||||
"no_ricochet": "Pociski odłamkowe nie rykoszetują."
|
"no_ricochet": "Explosive shells don't ricochet"
|
||||||
},
|
},
|
||||||
"view_range": {
|
"view_range": {
|
||||||
"camo": "Kamuflaż",
|
"camo": "Camo",
|
||||||
"ghost_factory": "Fabryka duchów",
|
"ghost_factory": "Ghost Factory",
|
||||||
"dead_rail": "Martwy tor"
|
"dead_rail": "Dead Rail"
|
||||||
},
|
},
|
||||||
"flexibility": {
|
"flexibility": {
|
||||||
"yaw": "Yaw",
|
"yaw": "Yaw",
|
||||||
@@ -413,7 +412,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sandbox": {
|
"sandbox": {
|
||||||
"load_model": "Load model",
|
|
||||||
"poses": {
|
"poses": {
|
||||||
"hull_down": "Hull down",
|
"hull_down": "Hull down",
|
||||||
"face_hug": "Face hug",
|
"face_hug": "Face hug",
|
||||||
@@ -517,7 +515,8 @@
|
|||||||
"title": "Configuration",
|
"title": "Configuration",
|
||||||
"equalizer": {
|
"equalizer": {
|
||||||
"title": "Equalizer",
|
"title": "Equalizer",
|
||||||
"equalize": "Equalize"
|
"equalize": "Equalize",
|
||||||
|
"beta": "Beta"
|
||||||
},
|
},
|
||||||
"modules": {
|
"modules": {
|
||||||
"title": "Modules",
|
"title": "Modules",
|
||||||
@@ -573,8 +572,6 @@
|
|||||||
"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",
|
||||||
@@ -623,12 +620,11 @@
|
|||||||
"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": "Shooting while still",
|
"camouflageShootingStill": "Still",
|
||||||
"camouflageShootingMoving": "Shooting while moving",
|
"camouflageShootingMoving": "Moving",
|
||||||
"camouflageCaughtOnFire": "Caught on fire",
|
"camouflageCaughtOnFire": "Caught on fire",
|
||||||
"width": "Width",
|
"width": "Width",
|
||||||
"height": "Height",
|
"height": "Height",
|
||||||
@@ -656,10 +652,10 @@
|
|||||||
"loader": "Loader"
|
"loader": "Loader"
|
||||||
},
|
},
|
||||||
"maneuverability": {
|
"maneuverability": {
|
||||||
"title": "Mobilność "
|
"title": "Maneuverability"
|
||||||
},
|
},
|
||||||
"survivability": {
|
"survivability": {
|
||||||
"title": "Przetrwanie"
|
"title": "Survivability"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compare": {
|
"compare": {
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
"development": "Development",
|
"development": "Development",
|
||||||
"opentest": "TesteAberto",
|
"opentest": "TesteAberto",
|
||||||
"preview": "Preview",
|
"preview": "Preview",
|
||||||
"production": "Produção"
|
"production": "Production"
|
||||||
},
|
},
|
||||||
"locales": {
|
"locales": {
|
||||||
"en": "Inglês",
|
"en": "Inglês",
|
||||||
@@ -187,14 +187,13 @@
|
|||||||
},
|
},
|
||||||
"website": {
|
"website": {
|
||||||
"redirect": {
|
"redirect": {
|
||||||
"title": "301: movido permanentemente",
|
"title": "301: moved permanently",
|
||||||
"body": "This page has moved. Redirecting..."
|
"body": "This page has moved. Redirecting..."
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"title": "Configurações",
|
"title": "Settings",
|
||||||
"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": {
|
||||||
@@ -207,9 +206,9 @@
|
|||||||
"copied": "Copiado!"
|
"copied": "Copiado!"
|
||||||
},
|
},
|
||||||
"tank_search": {
|
"tank_search": {
|
||||||
"select_dialog_title": "Procura por tanque",
|
"select_dialog_title": "Search for tanks",
|
||||||
"swap_dialog_title": "Swap tank",
|
"swap_dialog_title": "Swap tank",
|
||||||
"clear_filters": "Limpar filtros",
|
"clear_filters": "Clear filters",
|
||||||
"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",
|
||||||
@@ -413,7 +412,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"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",
|
||||||
@@ -517,7 +515,8 @@
|
|||||||
"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",
|
||||||
@@ -573,8 +572,6 @@
|
|||||||
"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",
|
||||||
@@ -623,12 +620,11 @@
|
|||||||
"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": "Shooting while still",
|
"camouflageShootingStill": "Parado",
|
||||||
"camouflageShootingMoving": "Shooting while moving",
|
"camouflageShootingMoving": "Em movimento",
|
||||||
"camouflageCaughtOnFire": "Preso em chamas",
|
"camouflageCaughtOnFire": "Preso em chamas",
|
||||||
"width": "Largura",
|
"width": "Largura",
|
||||||
"height": "Altura",
|
"height": "Altura",
|
||||||
|
|||||||
@@ -194,7 +194,6 @@
|
|||||||
"title": "Настройки",
|
"title": "Настройки",
|
||||||
"description": "Изменить настройки BlitzKit",
|
"description": "Изменить настройки BlitzKit",
|
||||||
"dev_mode": "Режим разработчика",
|
"dev_mode": "Режим разработчика",
|
||||||
"auto_load_models": "Auto-load models",
|
|
||||||
"language": "Язык"
|
"language": "Язык"
|
||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
@@ -413,7 +412,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sandbox": {
|
"sandbox": {
|
||||||
"load_model": "Load model",
|
|
||||||
"poses": {
|
"poses": {
|
||||||
"hull_down": "За холмом",
|
"hull_down": "За холмом",
|
||||||
"face_hug": "В упор",
|
"face_hug": "В упор",
|
||||||
@@ -517,7 +515,8 @@
|
|||||||
"title": "Конфигурация",
|
"title": "Конфигурация",
|
||||||
"equalizer": {
|
"equalizer": {
|
||||||
"title": "Уравнение",
|
"title": "Уравнение",
|
||||||
"equalize": "Уравнять"
|
"equalize": "Уравнять",
|
||||||
|
"beta": "Бета"
|
||||||
},
|
},
|
||||||
"modules": {
|
"modules": {
|
||||||
"title": "Модули",
|
"title": "Модули",
|
||||||
@@ -573,8 +572,6 @@
|
|||||||
"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": "Перезарядка",
|
||||||
@@ -623,12 +620,11 @@
|
|||||||
"hullTraverseSoftTerrain": "На мягком грунте",
|
"hullTraverseSoftTerrain": "На мягком грунте",
|
||||||
"health": "Прочность",
|
"health": "Прочность",
|
||||||
"fireChance": "Вероятность возгорания",
|
"fireChance": "Вероятность возгорания",
|
||||||
"trackRepairTime": "Track repair time",
|
|
||||||
"viewRange": "Радиус обзора",
|
"viewRange": "Радиус обзора",
|
||||||
"camouflageStill": "Когда неподвижен",
|
"camouflageStill": "Когда неподвижен",
|
||||||
"camouflageMoving": "В движении",
|
"camouflageMoving": "В движении",
|
||||||
"camouflageShootingStill": "Shooting while still",
|
"camouflageShootingStill": "После выстрела, если неподвижен",
|
||||||
"camouflageShootingMoving": "Shooting while moving",
|
"camouflageShootingMoving": "После выстрела в движении",
|
||||||
"camouflageCaughtOnFire": "При пожаре",
|
"camouflageCaughtOnFire": "При пожаре",
|
||||||
"width": "Ширина",
|
"width": "Ширина",
|
||||||
"height": "Высота",
|
"height": "Высота",
|
||||||
|
|||||||
@@ -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,8 +37,8 @@
|
|||||||
"d_1": "Вчора"
|
"d_1": "Вчора"
|
||||||
},
|
},
|
||||||
"branches": {
|
"branches": {
|
||||||
"beta": "Бета",
|
"beta": "Beta",
|
||||||
"development": "Розробка",
|
"development": "Development",
|
||||||
"opentest": "Відкритий тест",
|
"opentest": "Відкритий тест",
|
||||||
"preview": "Preview",
|
"preview": "Preview",
|
||||||
"production": "Production"
|
"production": "Production"
|
||||||
@@ -194,7 +194,6 @@
|
|||||||
"title": "Налаштування",
|
"title": "Налаштування",
|
||||||
"description": "Змінити налаштування BlitzKit ",
|
"description": "Змінити налаштування BlitzKit ",
|
||||||
"dev_mode": "Режим розробника",
|
"dev_mode": "Режим розробника",
|
||||||
"auto_load_models": "Auto-load models",
|
|
||||||
"language": "Мова"
|
"language": "Мова"
|
||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
@@ -341,8 +340,8 @@
|
|||||||
},
|
},
|
||||||
"mixer": {
|
"mixer": {
|
||||||
"name": "Mixer",
|
"name": "Mixer",
|
||||||
"button": "Змішувати та поєднувати",
|
"button": "Mix and match",
|
||||||
"description": "Змішані танкові модулі",
|
"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": "Знімок екрану",
|
||||||
"randomize": "Рандомізувати"
|
"randomize": "Рандомізувати"
|
||||||
@@ -413,7 +412,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sandbox": {
|
"sandbox": {
|
||||||
"load_model": "Load model",
|
|
||||||
"poses": {
|
"poses": {
|
||||||
"hull_down": "Від башти",
|
"hull_down": "Від башти",
|
||||||
"face_hug": "Клінч",
|
"face_hug": "Клінч",
|
||||||
@@ -503,11 +501,11 @@
|
|||||||
"tech_tree": {
|
"tech_tree": {
|
||||||
"title": "Звичайний",
|
"title": "Звичайний",
|
||||||
"battle": "1 бій",
|
"battle": "1 бій",
|
||||||
"battles": "{count} битви",
|
"battles": "{count} battles",
|
||||||
"route": "Route {index} of {count}"
|
"route": "Route {index} of {count}"
|
||||||
},
|
},
|
||||||
"game_modes": {
|
"game_modes": {
|
||||||
"title": "Здібності ігрового режиму"
|
"title": "Game mode abilities"
|
||||||
},
|
},
|
||||||
"review": {
|
"review": {
|
||||||
"title": "Review videos",
|
"title": "Review videos",
|
||||||
@@ -517,7 +515,8 @@
|
|||||||
"title": "Configuration",
|
"title": "Configuration",
|
||||||
"equalizer": {
|
"equalizer": {
|
||||||
"title": "Equalizer",
|
"title": "Equalizer",
|
||||||
"equalize": "Equalize"
|
"equalize": "Equalize",
|
||||||
|
"beta": "Beta"
|
||||||
},
|
},
|
||||||
"modules": {
|
"modules": {
|
||||||
"title": "Модулі",
|
"title": "Модулі",
|
||||||
@@ -573,8 +572,6 @@
|
|||||||
"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",
|
||||||
@@ -623,14 +620,13 @@
|
|||||||
"hullTraverseSoftTerrain": "Soft",
|
"hullTraverseSoftTerrain": "Soft",
|
||||||
"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",
|
||||||
@@ -744,7 +740,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"gallery": {
|
"gallery": {
|
||||||
"name": "Галерея",
|
"name": "Gallery",
|
||||||
"button": "Browse all",
|
"button": "Browse all",
|
||||||
"description": "Blitz player avatars",
|
"description": "Blitz player avatars",
|
||||||
"seo_description": "Усі World of Tanks Blitz аватари гравців",
|
"seo_description": "Усі World of Tanks Blitz аватари гравців",
|
||||||
@@ -847,7 +843,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",
|
||||||
|
|||||||
+149
-153
@@ -7,13 +7,13 @@
|
|||||||
"common": {
|
"common": {
|
||||||
"name": "BlitzKit",
|
"name": "BlitzKit",
|
||||||
"units": {
|
"units": {
|
||||||
"m": "{value}m",
|
"m": "{value} 公尺",
|
||||||
"mm": "{value}mm",
|
"mm": "{value} 毫米",
|
||||||
"deg": "{value} °",
|
"deg": "{value} 度°",
|
||||||
"hp": "{value}血量",
|
"hp": "{value} 生命值",
|
||||||
"x": "x{value}",
|
"x": "x{value}",
|
||||||
"percentage": "{value}%",
|
"percentage": "{value}%",
|
||||||
"deg_s": "{value}°/s",
|
"deg_s": "{value}度每秒",
|
||||||
"plus": "+{value}"
|
"plus": "+{value}"
|
||||||
},
|
},
|
||||||
"gun_types": {
|
"gun_types": {
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
},
|
},
|
||||||
"shells": {
|
"shells": {
|
||||||
"ap": "穿甲弹",
|
"ap": "穿甲弹",
|
||||||
"ap_cr": "硬芯穿甲弹",
|
"ap_cr": "硬式复合穿甲弹",
|
||||||
"hc": "破甲弹",
|
"hc": "破甲弹",
|
||||||
"he": "高爆弹"
|
"he": "高爆弹"
|
||||||
},
|
},
|
||||||
@@ -38,10 +38,10 @@
|
|||||||
},
|
},
|
||||||
"branches": {
|
"branches": {
|
||||||
"beta": "测试版",
|
"beta": "测试版",
|
||||||
"development": "开发分支",
|
"development": "Development",
|
||||||
"opentest": "公开测试",
|
"opentest": "开放测试",
|
||||||
"preview": "预览分支",
|
"preview": "Preview",
|
||||||
"production": "生产环境"
|
"production": "Production"
|
||||||
},
|
},
|
||||||
"locales": {
|
"locales": {
|
||||||
"en": "英语",
|
"en": "英语",
|
||||||
@@ -61,23 +61,23 @@
|
|||||||
"3": "平均",
|
"3": "平均",
|
||||||
"4": "高于平均",
|
"4": "高于平均",
|
||||||
"5": "好",
|
"5": "好",
|
||||||
"6": "非常好",
|
"6": "好",
|
||||||
"7": "很好",
|
"7": "很好",
|
||||||
"8": "强势",
|
"8": "非常好",
|
||||||
"9": "超强势"
|
"9": "极品"
|
||||||
},
|
},
|
||||||
"bkni_percentile": {
|
"bkni_percentile": {
|
||||||
"0": "垃圾",
|
"0": "垃圾",
|
||||||
"1": "非常差",
|
"1": "非常差",
|
||||||
"2": "很差",
|
"2": "很差",
|
||||||
"3": "差",
|
"3": "差",
|
||||||
"4": "较差",
|
"4": "低于平均",
|
||||||
"5": "平均",
|
"5": "平均",
|
||||||
"6": "较好",
|
"6": "较好",
|
||||||
"7": "好",
|
"7": "好",
|
||||||
"8": "很好",
|
"8": "很好",
|
||||||
"9": "强势",
|
"9": "非常好",
|
||||||
"10": "超强势"
|
"10": "极品"
|
||||||
},
|
},
|
||||||
"nations": {
|
"nations": {
|
||||||
"ussr": "苏联",
|
"ussr": "苏联",
|
||||||
@@ -87,8 +87,8 @@
|
|||||||
"uk": "英国",
|
"uk": "英国",
|
||||||
"france": "法国",
|
"france": "法国",
|
||||||
"japan": "日本",
|
"japan": "日本",
|
||||||
"european": "泛欧",
|
"european": "欧盟 (E系)",
|
||||||
"other": "混合系"
|
"other": "X系"
|
||||||
},
|
},
|
||||||
"nations_adjectives": {
|
"nations_adjectives": {
|
||||||
"ussr": "苏联",
|
"ussr": "苏联",
|
||||||
@@ -98,14 +98,14 @@
|
|||||||
"uk": "英国",
|
"uk": "英国",
|
||||||
"france": "法国",
|
"france": "法国",
|
||||||
"japan": "日本",
|
"japan": "日本",
|
||||||
"european": "泛欧",
|
"european": "欧盟 (E系)",
|
||||||
"other": "混合系"
|
"other": "X系"
|
||||||
},
|
},
|
||||||
"tank_class_short": {
|
"tank_class_short": {
|
||||||
"-1": "未知",
|
"-1": "未知",
|
||||||
"0": "轻型坦克",
|
"0": "轻型坦克",
|
||||||
"1": "中型坦克",
|
"1": "中型坦克",
|
||||||
"2": "重型坦克",
|
"2": "重型战车",
|
||||||
"3": "坦克歼击车"
|
"3": "坦克歼击车"
|
||||||
},
|
},
|
||||||
"tank_class_short_plural_lowercase": {
|
"tank_class_short_plural_lowercase": {
|
||||||
@@ -129,14 +129,14 @@
|
|||||||
},
|
},
|
||||||
"regions": {
|
"regions": {
|
||||||
"normal": {
|
"normal": {
|
||||||
"com": "北美服务器",
|
"com": "北美",
|
||||||
"eu": "欧洲服务器",
|
"eu": "欧洲",
|
||||||
"asia": "亚太服务器"
|
"asia": "亚太地区"
|
||||||
},
|
},
|
||||||
"short": {
|
"short": {
|
||||||
"com": "美服",
|
"com": "北美",
|
||||||
"eu": "欧洲",
|
"eu": "欧洲",
|
||||||
"asia": "亚服"
|
"asia": "亚太地区"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"leagues": {
|
"leagues": {
|
||||||
@@ -155,7 +155,7 @@
|
|||||||
"normalized_losses": "战败率",
|
"normalized_losses": "战败率",
|
||||||
"normalized_misses": "未命中数",
|
"normalized_misses": "未命中数",
|
||||||
"normalized_shots": "开火次数",
|
"normalized_shots": "开火次数",
|
||||||
"normalized_spotted": "侦查数",
|
"normalized_spotted": "侦查次数",
|
||||||
"normalized_survived_battles": "存活率",
|
"normalized_survived_battles": "存活率",
|
||||||
"normalized_win_and_survived": "胜利并幸存的概率",
|
"normalized_win_and_survived": "胜利并幸存的概率",
|
||||||
"normalized_wins": "胜率",
|
"normalized_wins": "胜率",
|
||||||
@@ -178,7 +178,7 @@
|
|||||||
"cumulative_shots": "总射击数",
|
"cumulative_shots": "总射击数",
|
||||||
"cumulative_spotted": "总侦查敌人数",
|
"cumulative_spotted": "总侦查敌人数",
|
||||||
"cumulative_survived_battles": "存活场次",
|
"cumulative_survived_battles": "存活场次",
|
||||||
"cumulative_win_and_survived": "胜利并存活场次",
|
"cumulative_win_and_survived": "胜利与存活场次",
|
||||||
"cumulative_wins": "胜利",
|
"cumulative_wins": "胜利",
|
||||||
"cumulative_xp": "总经验",
|
"cumulative_xp": "总经验",
|
||||||
"cumulative_wn8": "WN8",
|
"cumulative_wn8": "WN8",
|
||||||
@@ -194,7 +194,6 @@
|
|||||||
"title": "设置",
|
"title": "设置",
|
||||||
"description": "更改 BlitzKit 设置",
|
"description": "更改 BlitzKit 设置",
|
||||||
"dev_mode": "开发者模式",
|
"dev_mode": "开发者模式",
|
||||||
"auto_load_models": "Auto-load models",
|
|
||||||
"language": "语言"
|
"language": "语言"
|
||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
@@ -204,27 +203,27 @@
|
|||||||
"searching": "搜索中..."
|
"searching": "搜索中..."
|
||||||
},
|
},
|
||||||
"copy_button": {
|
"copy_button": {
|
||||||
"copied": "已复制!"
|
"copied": "已拷贝!"
|
||||||
},
|
},
|
||||||
"tank_search": {
|
"tank_search": {
|
||||||
"select_dialog_title": "查找坦克",
|
"select_dialog_title": "搜索坦克",
|
||||||
"swap_dialog_title": "交换坦克",
|
"swap_dialog_title": "交换坦克",
|
||||||
"clear_filters": "清空筛选器",
|
"clear_filters": "清除筛选",
|
||||||
"login": "请先登录",
|
"login": "登录以使用它",
|
||||||
"search_bar_hint": "查找坦克……",
|
"search_bar_hint": "搜寻战车……",
|
||||||
"recent": "最近查过",
|
"recent": "最近查看的",
|
||||||
"select_all": "全选",
|
"select_all": "全选",
|
||||||
"count_singular": "1 辆坦克",
|
"count_singular": "1 辆坦克",
|
||||||
"count_plural": "{count} 辆坦克",
|
"count_plural": "{count} 辆坦克",
|
||||||
"sorting_by": "按 {name} 排序",
|
"sorting_by": "按 {name} 排序",
|
||||||
"clear": "清空",
|
"clear": "清除",
|
||||||
"tier": "{tier} 级",
|
"tier": "{tier} 阶",
|
||||||
"passive": "{name} (被动)",
|
"passive": "{name} (被动)",
|
||||||
"active": "{name} (主动)",
|
"active": "{name} (主动)",
|
||||||
"no_tanks_found": {
|
"no_tanks_found": {
|
||||||
"body": "未找到坦克。",
|
"body": "未找到坦克。",
|
||||||
"search_again": "请尝试重新搜索。",
|
"search_again": "请尝试重新搜索。",
|
||||||
"clear_filters": "请尝试清空筛选器。"
|
"clear_filters": "请尝试清除筛选。"
|
||||||
},
|
},
|
||||||
"sort": {
|
"sort": {
|
||||||
"meta.none": "无",
|
"meta.none": "无",
|
||||||
@@ -232,30 +231,30 @@
|
|||||||
"survivability.viewRange": "侦察范围",
|
"survivability.viewRange": "侦察范围",
|
||||||
"survivability.camouflageStill": "静止中隐蔽值",
|
"survivability.camouflageStill": "静止中隐蔽值",
|
||||||
"survivability.camouflageMoving": "移动中隐蔽值",
|
"survivability.camouflageMoving": "移动中隐蔽值",
|
||||||
"survivability.camouflageShooting": "射击隐蔽",
|
"survivability.camouflageShooting": "射击隐蔽值",
|
||||||
"survivability.volume": "体积",
|
"survivability.volume": "体积",
|
||||||
"survivability.length": "长度",
|
"survivability.length": "长度",
|
||||||
"fire.dpm": "银币弹 每分钟伤害",
|
"fire.dpm": "标准炮弹 每分钟伤害血量",
|
||||||
"fire.dpmPremium": "金币弹 每分钟伤害",
|
"fire.dpmPremium": "金币炮弹 每分钟伤害值",
|
||||||
"fire.reload": "装填时间",
|
"fire.reload": "装填时间",
|
||||||
"fire.caliber": "口径",
|
"fire.caliber": "口径",
|
||||||
"fire.standardPenetration": "银币弹穿深",
|
"fire.standardPenetration": "标准炮弹穿透力",
|
||||||
"fire.premiumPenetration": "金币弹穿深",
|
"fire.premiumPenetration": "金币炮弹穿透力",
|
||||||
"fire.tertiaryPenetration": "高爆弹穿深",
|
"fire.tertiaryPenetration": "第三种炮弹穿透力",
|
||||||
"fire.damage": "均伤",
|
"fire.damage": "炮弹伤害值",
|
||||||
"fire.moduleDamage": "模组伤害值",
|
"fire.moduleDamage": "模组伤害值",
|
||||||
"fire.shellVelocity": "弹速",
|
"fire.shellVelocity": "炮弹飞行速度",
|
||||||
"fire.shellRange": "最大射程",
|
"fire.shellRange": "最大射程",
|
||||||
"fire.shellCapacity": "载弹量",
|
"fire.shellCapacity": "携弹量",
|
||||||
"fire.aimTime": "瞄准时间",
|
"fire.aimTime": "瞄准时间",
|
||||||
"fire.dispersionStill": "百米精度",
|
"fire.dispersionStill": "一百米处扩散度",
|
||||||
"fire.dispersionMoving": "移动扩圈",
|
"fire.dispersionMoving": "移动时扩散度",
|
||||||
"fire.gunDepression": "俯角",
|
"fire.gunDepression": "俯角",
|
||||||
"fire.gunElevation": "仰角",
|
"fire.gunElevation": "仰角",
|
||||||
"maneuverability.forwardsSpeed": "前进极速",
|
"maneuverability.forwardsSpeed": "最高前进速度",
|
||||||
"maneuverability.backwardsSpeed": "后退极速",
|
"maneuverability.backwardsSpeed": "最高后退速度",
|
||||||
"maneuverability.power": "引擎功率",
|
"maneuverability.power": "引擎功率",
|
||||||
"maneuverability.powerToWeight": "推重比",
|
"maneuverability.powerToWeight": "功重比",
|
||||||
"maneuverability.weight": "重量",
|
"maneuverability.weight": "重量",
|
||||||
"maneuverability.traverseSpeed": "转速"
|
"maneuverability.traverseSpeed": "转速"
|
||||||
},
|
},
|
||||||
@@ -267,10 +266,10 @@
|
|||||||
"label": "排序依据",
|
"label": "排序依据",
|
||||||
"fire": "开火",
|
"fire": "开火",
|
||||||
"maneuverability": "机动性",
|
"maneuverability": "机动性",
|
||||||
"survivability": "生存性"
|
"survivability": "生存能力"
|
||||||
},
|
},
|
||||||
"direction": {
|
"direction": {
|
||||||
"label": "排序方式",
|
"label": "排序算法",
|
||||||
"ascending": "升序",
|
"ascending": "升序",
|
||||||
"descending": "倒序"
|
"descending": "倒序"
|
||||||
}
|
}
|
||||||
@@ -302,8 +301,8 @@
|
|||||||
},
|
},
|
||||||
"docs": {
|
"docs": {
|
||||||
"patches": {
|
"patches": {
|
||||||
"name": "BlitzKit 更新日志",
|
"name": "BlitzKit 变更日志",
|
||||||
"seo_description": "BlitzKit Discord 机器人和网站的更新日志"
|
"seo_description": "BlitzKit Discord 机器人和网站的变更日志"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tools": {
|
"tools": {
|
||||||
@@ -340,44 +339,44 @@
|
|||||||
"pool_size": "{count} 辆可生成的坦克"
|
"pool_size": "{count} 辆可生成的坦克"
|
||||||
},
|
},
|
||||||
"mixer": {
|
"mixer": {
|
||||||
"name": "拼装器",
|
"name": "组装",
|
||||||
"button": "混合搭配",
|
"button": "混合搭配",
|
||||||
"description": "混搭不同坦克间的模块",
|
"description": "混搭不同坦克间的模块",
|
||||||
"seo_description": "混搭WoTB的坦克车体、炮塔与主炮",
|
"seo_description": "《坦克世界:闪击战》的车体, 炮塔, 主炮混合搭配",
|
||||||
"screenshot": "屏幕截图",
|
"screenshot": "屏幕截图",
|
||||||
"randomize": "随机搭配"
|
"randomize": "随机搭配"
|
||||||
},
|
},
|
||||||
"guess": {
|
"guess": {
|
||||||
"name": "猜测",
|
"name": "猜测",
|
||||||
"button": "这可能是什么?",
|
"button": "这会是什么?",
|
||||||
"description": "坦克剪影小游戏",
|
"description": "坦克剪影小游戏",
|
||||||
"seo_description": "看剪影猜坦克",
|
"seo_description": "看剪影猜坦克",
|
||||||
"search": {
|
"search": {
|
||||||
"placeholder": "输入你的猜测……",
|
"placeholder": "输入你的猜想……",
|
||||||
"skip": "跳过",
|
"skip": "跳过",
|
||||||
"guess": "猜测",
|
"guess": "猜测",
|
||||||
"next": "下一个",
|
"next": "下一个",
|
||||||
"no_results": "无结果"
|
"no_results": "沒有結果"
|
||||||
},
|
},
|
||||||
"stats": "猜对了 {correct} / {total},连对 {streak} 个",
|
"stats": "猜对了 {correct} / {total}",
|
||||||
"help": {
|
"help": {
|
||||||
"title": "部分揭示坦克?",
|
"title": "显示坦克?",
|
||||||
"description": "揭示坦克但不显示答案。本轮会被视为答错,并中断连对!",
|
"description": "显示坦克而不显示名字。这轮会被视为不正确,并打破你的连续记录!",
|
||||||
"cancel": "取消",
|
"cancel": "取消",
|
||||||
"reveal": "揭示"
|
"reveal": "显示"
|
||||||
},
|
},
|
||||||
"clear": "清除",
|
"clear": "清除",
|
||||||
"select_all": "全选",
|
"select_all": "全选",
|
||||||
"tier": "{tier} 级"
|
"tier": "{tier} 阶"
|
||||||
},
|
},
|
||||||
"tankopedia": {
|
"tankopedia": {
|
||||||
"search": "搜索属性……",
|
"search": "搜索属性……",
|
||||||
"name": "坦克百科",
|
"name": "战车百科",
|
||||||
"button": "搜索坦克",
|
"button": "搜索战车",
|
||||||
"description": "WoTB坦克百科",
|
"description": "闪击战坦克百科全书",
|
||||||
"seo_description": "WoTB所有坦克的参数、 装甲等",
|
"seo_description": "《坦克世界:闪击战》的所有坦克参数, 装甲, 等等...",
|
||||||
"tank_seo_title": "{name} - {tier} 级 {nationality} {class} | {website} 坦克百科 | 坦克世界闪击战(坦闪/WoTB)",
|
"tank_seo_title": "{name} - {tier} 阶 {nationality} {class} | {website} 坦克百科 | 坦克世界闪击战 (WoTB)",
|
||||||
"tank_seo_description": "{name} 装甲、参数、配件、补给等。 {dpm} 每分钟伤害, {alpha} 均伤, {penetration}mm 穿深, {speed}km/h 极速, {health} 血量。",
|
"tank_seo_description": "{name} 装甲,统计资料,装备,规定配给等。 {dpm} 每分钟伤害, {alpha} 伤害值, {penetration}毫米 穿透, {speed}公里/小時 最高速度, {health} 生命值。",
|
||||||
"visualizers": {
|
"visualizers": {
|
||||||
"reload": {
|
"reload": {
|
||||||
"skip": "跳过"
|
"skip": "跳过"
|
||||||
@@ -388,15 +387,15 @@
|
|||||||
"rotator": {
|
"rotator": {
|
||||||
"hull": "车体",
|
"hull": "车体",
|
||||||
"turret": "炮塔",
|
"turret": "炮塔",
|
||||||
"hard": "公路",
|
"hard": "硬地质",
|
||||||
"medium": "平地",
|
"medium": "中性地質",
|
||||||
"soft": "水面",
|
"soft": "軟地質",
|
||||||
"effective": "等效"
|
"effective": "效率"
|
||||||
},
|
},
|
||||||
"ricochet": {
|
"ricochet": {
|
||||||
"angle": "角度",
|
"angle": "角度",
|
||||||
"normalization": "转正",
|
"normalization": "转正",
|
||||||
"effective_angle": "有效倾角",
|
"effective_angle": "有效角度",
|
||||||
"armor": "装甲",
|
"armor": "装甲",
|
||||||
"no_ricochet": "高爆弹不会跳弹"
|
"no_ricochet": "高爆弹不会跳弹"
|
||||||
},
|
},
|
||||||
@@ -408,21 +407,20 @@
|
|||||||
"flexibility": {
|
"flexibility": {
|
||||||
"yaw": "水平角度",
|
"yaw": "水平角度",
|
||||||
"pitch": "俯仰角度",
|
"pitch": "俯仰角度",
|
||||||
"min": "极限俯角",
|
"min": "最少俯角",
|
||||||
"max": "极限仰角"
|
"max": "最大仰角"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sandbox": {
|
"sandbox": {
|
||||||
"load_model": "Load model",
|
|
||||||
"poses": {
|
"poses": {
|
||||||
"hull_down": "俯角视角",
|
"hull_down": "俯角视角",
|
||||||
"face_hug": "顶牛视角",
|
"face_hug": "抱脸视角",
|
||||||
"default": "默认"
|
"default": "默认"
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"armor": "装甲",
|
"armor": "装甲",
|
||||||
"green_penetration": "绿色可击穿",
|
"green_penetration": "可击穿区域",
|
||||||
"hide_model_under_armor": "隐藏坦克模型",
|
"hide_model_under_armor": "隐藏装甲下的模型",
|
||||||
"opaque": "不透明",
|
"opaque": "不透明",
|
||||||
"dev_wireframe": "开发选项:网格"
|
"dev_wireframe": "开发选项:网格"
|
||||||
},
|
},
|
||||||
@@ -456,14 +454,14 @@
|
|||||||
"track": "履带"
|
"track": "履带"
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"penetration": "击穿:{damage}血量",
|
"penetration": "{damage}生命值 击穿",
|
||||||
"blocked": "抵挡伤害",
|
"blocked": "抵挡伤害",
|
||||||
"ricochet": "跳弹",
|
"ricochet": "跳弹",
|
||||||
"splash": "溅射:{damage}血量"
|
"splash": "{damage}生命值 溅射"
|
||||||
},
|
},
|
||||||
"stats": {
|
"stats": {
|
||||||
"thickness_and_angle": "{thickness}mm/倾角{angle}°",
|
"thickness_and_angle": "{thickness}毫米 {angle}度°",
|
||||||
"nominal": "{thickness}mm 垂直厚度",
|
"nominal": "{thickness}毫米 装甲厚度",
|
||||||
"ricochet_loss": "{loss}% 击穿"
|
"ricochet_loss": "{loss}% 击穿"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -492,9 +490,9 @@
|
|||||||
"nation": "国别",
|
"nation": "国别",
|
||||||
"class": "坦克车型",
|
"class": "坦克车型",
|
||||||
"tier": "阶级",
|
"tier": "阶级",
|
||||||
"type": "坦克类型",
|
"type": "战车类型",
|
||||||
"dev_id": "开发参数:ID",
|
"dev_id": "开发参数:ID",
|
||||||
"dev_name": "开发者名称",
|
"dev_name": "DEV: NAME",
|
||||||
"purchase": "购买价格",
|
"purchase": "购买价格",
|
||||||
"restoration": "恢复坦克价格",
|
"restoration": "恢复坦克价格",
|
||||||
"sale": "出售价格",
|
"sale": "出售价格",
|
||||||
@@ -502,9 +500,9 @@
|
|||||||
},
|
},
|
||||||
"tech_tree": {
|
"tech_tree": {
|
||||||
"title": "科技树",
|
"title": "科技树",
|
||||||
"battle": "1场比赛",
|
"battle": "一场比赛",
|
||||||
"battles": "{count} 场次",
|
"battles": "{count} 战斗场次",
|
||||||
"route": "第 {index} / {count} 种科技线"
|
"route": "路线 {index} / {count}"
|
||||||
},
|
},
|
||||||
"game_modes": {
|
"game_modes": {
|
||||||
"title": "游戏模式技能"
|
"title": "游戏模式技能"
|
||||||
@@ -516,32 +514,33 @@
|
|||||||
"configuration": {
|
"configuration": {
|
||||||
"title": "配置设定",
|
"title": "配置设定",
|
||||||
"equalizer": {
|
"equalizer": {
|
||||||
"title": "平衡器",
|
"title": "Equalizer",
|
||||||
"equalize": "平衡"
|
"equalize": "Equalize",
|
||||||
|
"beta": "测试版"
|
||||||
},
|
},
|
||||||
"modules": {
|
"modules": {
|
||||||
"title": "坦克模块",
|
"title": "坦克模块",
|
||||||
"stock": "白板",
|
"stock": "白板",
|
||||||
"upgrade": "满配"
|
"upgrade": "顶级配置"
|
||||||
},
|
},
|
||||||
"equipment": {
|
"equipment": {
|
||||||
"title": "装备",
|
"title": "装备",
|
||||||
"clear": "清除"
|
"clear": "清除"
|
||||||
},
|
},
|
||||||
"provisions": {
|
"provisions": {
|
||||||
"title": "补给",
|
"title": "规定配给",
|
||||||
"clear": "清除"
|
"clear": "清除"
|
||||||
},
|
},
|
||||||
"consumables": {
|
"consumables": {
|
||||||
"title": "消耗品",
|
"title": "消耗品",
|
||||||
"clear": "清除",
|
"clear": "清除",
|
||||||
"info": "以黄色标识的消耗品不影响坦克参数。"
|
"info": "黄色高亮消耗品不影响坦克参数。"
|
||||||
},
|
},
|
||||||
"skills": {
|
"skills": {
|
||||||
"title": "乘员技能",
|
"title": "乘员技能",
|
||||||
"clear": "清除",
|
"clear": "清除",
|
||||||
"maximize": "最大化",
|
"maximize": "最大化",
|
||||||
"info": "以黄色标识的技能只在特定情形起效。 按空格键可在0到7级之间快速切换。"
|
"info": "黄色高亮技能只适用于特殊情况。 按空格键可在0到7级之间快速切换。"
|
||||||
},
|
},
|
||||||
"miscellaneous": {
|
"miscellaneous": {
|
||||||
"title": "杂项"
|
"title": "杂项"
|
||||||
@@ -551,50 +550,48 @@
|
|||||||
"title": "属性",
|
"title": "属性",
|
||||||
"compare": {
|
"compare": {
|
||||||
"label": "比较",
|
"label": "比较",
|
||||||
"class": "{tier}级{class}",
|
"class": "{tier} 阶的 {class}",
|
||||||
"tier": "所有{tier}级坦克",
|
"tier": "所有{tier} 阶的",
|
||||||
"all": "所有坦克"
|
"all": "所有坦克"
|
||||||
},
|
},
|
||||||
"values": {
|
"values": {
|
||||||
"shell_index": "炮弹 {index}",
|
"shell_index": "炮弹 {index}",
|
||||||
"at_distance": "距离{distance}m",
|
"at_distance": "在 {distance} 公尺",
|
||||||
"at_distance_slider_label": "距离",
|
"at_distance_slider_label": "距离",
|
||||||
"dispersion_at_distance": "在 {distance}m 的精度",
|
"dispersion_at_distance": "在 {distance} 公尺的扩散度",
|
||||||
"gun_flexibility": "主炮俯仰角",
|
"gun_flexibility": "炮管转动界限",
|
||||||
"speed": "速度",
|
"speed": "速度",
|
||||||
"terrain_coefficients": "地形适应性",
|
"terrain_coefficients": "地形系数",
|
||||||
"raw_terrain_coefficients": "原始地形系数",
|
"raw_terrain_coefficients": "原始地形系数",
|
||||||
"power_to_weight_ratio": "推重比",
|
"power_to_weight_ratio": "功重比",
|
||||||
"hull_traverse_speed": "车体转向速率",
|
"hull_traverse_speed": "车体转向速率",
|
||||||
"camouflage": "涂装",
|
"camouflage": "迷彩",
|
||||||
"reload": "装填时间",
|
"reload": "装填时间",
|
||||||
"crewCount": "乘员人数",
|
"crewCount": "乘员人数",
|
||||||
"shellNormalization": "转正",
|
"shellNormalization": "转正",
|
||||||
"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": "装填时间",
|
||||||
"shellReload": "装填时间",
|
"shellReload": "装填时间",
|
||||||
"intraClip": "短装",
|
"intraClip": "炮弹装填",
|
||||||
"caliber": "口径",
|
"caliber": "口径",
|
||||||
"penetration": "穿深",
|
"penetration": "穿深",
|
||||||
"damage": "伤害",
|
"damage": "伤害",
|
||||||
"damageWithoutAssault": "无突击弹的伤害",
|
"damageWithoutAssault": "无突击弹的伤害",
|
||||||
"clipDamage": "总爆发",
|
"clipDamage": "弹匣伤害期望值",
|
||||||
"moduleDamage": "模块伤害",
|
"moduleDamage": "模组伤害",
|
||||||
"explosionRadius": "溅射半径",
|
"explosionRadius": "溅射半径",
|
||||||
"shellVelocity": "炮弹飞行速度",
|
"shellVelocity": "炮弹飞行速度",
|
||||||
"aimTime": "瞄准时间",
|
"aimTime": "瞄准时间",
|
||||||
"dispersion": "静止時",
|
"dispersion": "静止時",
|
||||||
"dispersionMoving": "移动时",
|
"dispersionMoving": "移动时",
|
||||||
"dispersionHullTraversing": "车体转向时",
|
"dispersionHullTraversing": "车体转向时",
|
||||||
"dispersionTurretTraversing": "炮转扩圈",
|
"dispersionTurretTraversing": "炮塔转向时",
|
||||||
"dispersionShooting": "开火时",
|
"dispersionShooting": "开火时",
|
||||||
"dispersionGunDamaged": "主炮损坏扩圈",
|
"dispersionGunDamaged": "主炮损坏时",
|
||||||
"gunDepression": "俯角",
|
"gunDepression": "俯角",
|
||||||
"gunElevation": "仰角",
|
"gunElevation": "仰角",
|
||||||
"gunFrontalDepression": "车体前部俯角",
|
"gunFrontalDepression": "车体前部俯角",
|
||||||
@@ -603,43 +600,42 @@
|
|||||||
"gunRearElevation": "车体后部仰角",
|
"gunRearElevation": "车体后部仰角",
|
||||||
"azimuthLeft": "左射界",
|
"azimuthLeft": "左射界",
|
||||||
"azimuthRight": "右射界",
|
"azimuthRight": "右射界",
|
||||||
"speedForwards": "前进极速",
|
"speedForwards": "最高前进速度",
|
||||||
"speedBackwards": "后退极速",
|
"speedBackwards": "最高后退速度",
|
||||||
"hardTerrainCoefficient": "公路",
|
"hardTerrainCoefficient": "硬地质",
|
||||||
"hardTerrainCoefficientRaw": "公路-原始",
|
"hardTerrainCoefficientRaw": "硬地质",
|
||||||
"mediumTerrainCoefficient": "平地",
|
"mediumTerrainCoefficient": "中性地质",
|
||||||
"mediumTerrainCoefficientRaw": "平地-原始",
|
"mediumTerrainCoefficientRaw": "中性地质",
|
||||||
"softTerrainCoefficient": "水面",
|
"softTerrainCoefficient": "软地质",
|
||||||
"softTerrainCoefficientRaw": "水面-原始",
|
"softTerrainCoefficientRaw": "软地质",
|
||||||
"enginePower": "引擎功率",
|
"enginePower": "引擎功率",
|
||||||
"powerToWeightRatioHardTerrain": "公路实际推重",
|
"powerToWeightRatioHardTerrain": "硬地质",
|
||||||
"powerToWeightRatioMediumTerrain": "平地实际推重",
|
"powerToWeightRatioMediumTerrain": "中性地质",
|
||||||
"powerToWeightRatioSoftTerrain": "水面实际推重",
|
"powerToWeightRatioSoftTerrain": "软地质",
|
||||||
"weight": "重量",
|
"weight": "重量",
|
||||||
"turretTraverseSpeed": "炮塔转向速率",
|
"turretTraverseSpeed": "炮塔转向速率",
|
||||||
"gunTraverseSpeed": "炮管转向速率",
|
"gunTraverseSpeed": "炮管转向速率",
|
||||||
"hullTraverseHardTerrain": "公路上车转速率",
|
"hullTraverseHardTerrain": "硬地质",
|
||||||
"hullTraverseMediumTerrain": "平地上车转速率",
|
"hullTraverseMediumTerrain": "中性地质",
|
||||||
"hullTraverseSoftTerrain": "水面上车转速率",
|
"hullTraverseSoftTerrain": "软地质",
|
||||||
"health": "血量",
|
"health": "生命值",
|
||||||
"fireChance": "发动机受击时着火概率",
|
"fireChance": "着火概率",
|
||||||
"trackRepairTime": "Track repair time",
|
|
||||||
"viewRange": "视野范围",
|
"viewRange": "视野范围",
|
||||||
"camouflageStill": "静止隐蔽",
|
"camouflageStill": "静止时",
|
||||||
"camouflageMoving": "移动时",
|
"camouflageMoving": "移动时",
|
||||||
"camouflageShootingStill": "静止时",
|
"camouflageShootingStill": "静止时",
|
||||||
"camouflageShootingMoving": "移动开火隐蔽",
|
"camouflageShootingMoving": "移动时",
|
||||||
"camouflageCaughtOnFire": "着火时隐蔽",
|
"camouflageCaughtOnFire": "着火时",
|
||||||
"width": "宽度",
|
"width": "宽度",
|
||||||
"height": "高度",
|
"height": "高度",
|
||||||
"length": "长度",
|
"length": "长度",
|
||||||
"volume": "体积",
|
"volume": "体积",
|
||||||
"shellRange": "射程",
|
"shellRange": "射程",
|
||||||
"shellCapacity": "载弹量",
|
"shellCapacity": "携弹量",
|
||||||
"gunType": "主炮类型",
|
"gunType": "炮管类型",
|
||||||
"penetrationAt250m": "250m处穿深",
|
"penetrationAt250m": "两百五十米处的穿透力",
|
||||||
"burstShells": "小弹夹发数",
|
"burstShells": "爆破计数",
|
||||||
"burstInterShell": "小弹夹短装"
|
"burstInterShell": "爆破弹"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"firepower": {
|
"firepower": {
|
||||||
@@ -666,7 +662,7 @@
|
|||||||
"name": "比较",
|
"name": "比较",
|
||||||
"button": "坦克比较",
|
"button": "坦克比较",
|
||||||
"description": "比较坦克参数",
|
"description": "比较坦克参数",
|
||||||
"seo_description": "比较坦克世界闪击战中的坦克参数和装备配置",
|
"seo_description": "比较《坦克世界:闪击战》中的坦克参数和装备配置",
|
||||||
"actions": {
|
"actions": {
|
||||||
"add": {
|
"add": {
|
||||||
"button": "添加",
|
"button": "添加",
|
||||||
@@ -696,15 +692,15 @@
|
|||||||
},
|
},
|
||||||
"modules": {
|
"modules": {
|
||||||
"stock": "白板",
|
"stock": "白板",
|
||||||
"upgrade": "满配"
|
"upgrade": "顶级配置"
|
||||||
},
|
},
|
||||||
"provisions": {
|
"provisions": {
|
||||||
"clear": "清空此坦克",
|
"clear": "清除",
|
||||||
"clear_all": "清空所有坦克"
|
"clear_all": "清除所有坦克"
|
||||||
},
|
},
|
||||||
"consumables": {
|
"consumables": {
|
||||||
"clear": "清空此坦克",
|
"clear": "清除",
|
||||||
"clear_all": "清空所有坦克"
|
"clear_all": "清除所有坦克"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -712,7 +708,7 @@
|
|||||||
"name": "性能表现",
|
"name": "性能表现",
|
||||||
"button": "查看坦克",
|
"button": "查看坦克",
|
||||||
"description": "坦克性能统计",
|
"description": "坦克性能统计",
|
||||||
"seo_description": "最好的坦克及其在坦克世界闪击战中的数据",
|
"seo_description": "最好的坦克及其在《坦克世界:闪击战》中的表现",
|
||||||
"estimation": {
|
"estimation": {
|
||||||
"body": "基于 {count} 个玩家的估计数据。更新于 {age} 之前。",
|
"body": "基于 {count} 个玩家的估计数据。更新于 {age} 之前。",
|
||||||
"hours": "{count} 小时",
|
"hours": "{count} 小时",
|
||||||
@@ -730,15 +726,15 @@
|
|||||||
"winrate": "胜率",
|
"winrate": "胜率",
|
||||||
"players": "玩家",
|
"players": "玩家",
|
||||||
"damage": "伤害",
|
"damage": "伤害",
|
||||||
"survival": "生存率",
|
"survival": "生存性",
|
||||||
"xp": "经验值",
|
"xp": "经验值",
|
||||||
"kills": "击杀数",
|
"kills": "击杀数",
|
||||||
"spots": "侦查数",
|
"spots": "侦查次数",
|
||||||
"accuracy": "命中率",
|
"accuracy": "命中率",
|
||||||
"shots": "开火次数",
|
"shots": "开火次数",
|
||||||
"hits": "命中数",
|
"hits": "命中数",
|
||||||
"damage_ratio": "伤害比率",
|
"damage_ratio": "伤害效率",
|
||||||
"damage_taken": "承受伤害",
|
"damage_taken": "承受伤害值",
|
||||||
"capture_points": "占领值"
|
"capture_points": "占领值"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -747,11 +743,11 @@
|
|||||||
"name": "图库",
|
"name": "图库",
|
||||||
"button": "浏览全部",
|
"button": "浏览全部",
|
||||||
"description": "Blitz玩家头像",
|
"description": "Blitz玩家头像",
|
||||||
"seo_description": "所有坦克世界闪击战玩家头像",
|
"seo_description": "所有《坦克世界:闪击战》玩家头像",
|
||||||
"last_updated": "最后更新于 {time}",
|
"last_updated": "最后更新于 {time}",
|
||||||
"search": {
|
"search": {
|
||||||
"hint": "搜索头像……",
|
"hint": "搜索頭像……",
|
||||||
"results": "{count}个头像"
|
"results": "{count} 头像"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"session": {
|
"session": {
|
||||||
|
|||||||
@@ -5,8 +5,7 @@
|
|||||||
"discover-ids": "bun src/discoverIds/index.ts",
|
"discover-ids": "bun src/discoverIds/index.ts",
|
||||||
"build-protos": "bun src/protos.ts",
|
"build-protos": "bun src/protos.ts",
|
||||||
"record-performance": "bun src/recordPerformance/index.ts",
|
"record-performance": "bun src/recordPerformance/index.ts",
|
||||||
"download-client": "bun src/downloadClient/index.ts",
|
"download-client": "bun src/downloadClient/index.ts"
|
||||||
"vfs": "bun src/vfs/index.ts"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blitzkit/closed": "workspace:*",
|
"@blitzkit/closed": "workspace:*",
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ let regionI = 0;
|
|||||||
|
|
||||||
console.log("Starting discovery loop...");
|
console.log("Starting discovery loop...");
|
||||||
|
|
||||||
await atMaxRate(async ({ _break: break1 }) => {
|
atMaxRate(async ({ _break: break1 }) => {
|
||||||
if (regions.length === 0) {
|
if (regions.length === 0) {
|
||||||
console.log("All regions exhausted, exiting discovery loop...");
|
console.log("All regions exhausted, exiting discovery loop...");
|
||||||
return break1();
|
return break1();
|
||||||
@@ -166,19 +166,18 @@ await atMaxRate(async ({ _break: break1 }) => {
|
|||||||
fields
|
fields
|
||||||
}&account_id=${accountIds}`;
|
}&account_id=${accountIds}`;
|
||||||
|
|
||||||
if (idRange.length < MAX_IDS_PER_CALL) {
|
atMaxRate(async ({ _break: break2 }) => {
|
||||||
console.log(
|
if (idRange.length < MAX_IDS_PER_CALL) {
|
||||||
`Removing region ${region.domain} removed due to ID range exhaustion...`,
|
console.log(
|
||||||
);
|
`Removing region ${region.domain} removed due to ID range exhaustion...`,
|
||||||
regions.splice(regionI, 1);
|
);
|
||||||
}
|
regions.splice(regionI, 1);
|
||||||
|
}
|
||||||
|
|
||||||
await atMaxRate(async ({ _break: break2 }) => {
|
const response = await fetch(url);
|
||||||
const data = await fetch(url)
|
const data = (await response.json()) as QuickInfo;
|
||||||
.then((response) => response.json() as Promise<QuickInfo>)
|
|
||||||
.catch(() => null);
|
|
||||||
|
|
||||||
if (data === null || data.status !== "ok") {
|
if (data.status !== "ok") {
|
||||||
console.warn("Failed API call; trying again...");
|
console.warn("Failed API call; trying again...");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,9 +20,7 @@ interface MethodContext {
|
|||||||
let lastT = 0;
|
let lastT = 0;
|
||||||
const maxDelta = 1000 / API_RATE;
|
const maxDelta = 1000 / API_RATE;
|
||||||
const DELTA_BUFFER = 0;
|
const DELTA_BUFFER = 0;
|
||||||
export async function atMaxRate(
|
export async function atMaxRate(method: (context: MethodContext) => void) {
|
||||||
method: (context: MethodContext) => void | Promise<void>,
|
|
||||||
) {
|
|
||||||
let isBroken = false;
|
let isBroken = false;
|
||||||
|
|
||||||
const context: MethodContext = {
|
const context: MethodContext = {
|
||||||
@@ -41,7 +39,7 @@ export async function atMaxRate(
|
|||||||
await sleep(maxDelta - delta + DELTA_BUFFER);
|
await sleep(maxDelta - delta + DELTA_BUFFER);
|
||||||
}
|
}
|
||||||
|
|
||||||
await method(context);
|
method(context);
|
||||||
lastT = t;
|
lastT = t;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -78,8 +78,7 @@ if (provider === "steam") {
|
|||||||
|
|
||||||
console.log(`Downloading ${urls.length} packages...`);
|
console.log(`Downloading ${urls.length} packages...`);
|
||||||
|
|
||||||
await rm(WGPKG_DIR, { recursive: true, force: true });
|
await rm(WGPKG_DIR, { recursive: true });
|
||||||
await mkdir(WGPKG_DIR, { recursive: true });
|
|
||||||
|
|
||||||
const inputContent = urls
|
const inputContent = urls
|
||||||
.map((url) => {
|
.map((url) => {
|
||||||
|
|||||||
@@ -6,9 +6,7 @@ import { promisify } from "util";
|
|||||||
const MAX_COMMAND_LENGTH = 2 ** 11;
|
const MAX_COMMAND_LENGTH = 2 ** 11;
|
||||||
const TS_PROTO_EXECUTABLE_LOCATIONS = [
|
const TS_PROTO_EXECUTABLE_LOCATIONS = [
|
||||||
"./node_modules/.bin/protoc-gen-ts_proto",
|
"./node_modules/.bin/protoc-gen-ts_proto",
|
||||||
"./node_modules/.bin/protoc-gen-ts_proto.exe",
|
|
||||||
"../../node_modules/.bin/protoc-gen-ts_proto",
|
"../../node_modules/.bin/protoc-gen-ts_proto",
|
||||||
"../../node_modules/.bin/protoc-gen-ts_proto.exe",
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const roots = [
|
const roots = [
|
||||||
|
|||||||
@@ -1,23 +0,0 @@
|
|||||||
import { assertSecret } from "@blitzkit/core";
|
|
||||||
import { LocalVFS } from "@blitzkit/core/src/blitzkit/vfs/local";
|
|
||||||
|
|
||||||
export const vfs = new LocalVFS(assertSecret(import.meta.env.CLIENT_DIR));
|
|
||||||
|
|
||||||
const command = Bun.argv[2];
|
|
||||||
const path = Bun.argv[3];
|
|
||||||
|
|
||||||
if (!path) {
|
|
||||||
console.error("Gimme a path to assess dumb ass");
|
|
||||||
process.exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (command === "cat") {
|
|
||||||
const content = await vfs.file(path);
|
|
||||||
await Bun.write(Bun.stdout, content);
|
|
||||||
} else if (command === "ls") {
|
|
||||||
const files = await vfs.dir(path);
|
|
||||||
|
|
||||||
for (const file of files) {
|
|
||||||
console.log(file);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 113 KiB |
+50
-54
@@ -5,7 +5,7 @@ import {
|
|||||||
} from "@blitzkit/core";
|
} from "@blitzkit/core";
|
||||||
import { invalidate, useFrame } from "@react-three/fiber";
|
import { invalidate, useFrame } from "@react-three/fiber";
|
||||||
import type { QuicklimeEvent } from "quicklime";
|
import type { QuicklimeEvent } from "quicklime";
|
||||||
import { useEffect, useRef } from "react";
|
import { useEffect } from "react";
|
||||||
import {
|
import {
|
||||||
MeshBasicMaterial,
|
MeshBasicMaterial,
|
||||||
NormalBlending,
|
NormalBlending,
|
||||||
@@ -43,44 +43,42 @@ export function PrimaryArmorSceneComponent({
|
|||||||
node,
|
node,
|
||||||
thickness,
|
thickness,
|
||||||
}: PrimaryArmorSceneComponentProps) {
|
}: PrimaryArmorSceneComponentProps) {
|
||||||
const material = useRef(
|
const material = new ShaderMaterial({
|
||||||
new ShaderMaterial({
|
fragmentShader,
|
||||||
fragmentShader,
|
vertexShader,
|
||||||
vertexShader,
|
|
||||||
|
|
||||||
fog: true,
|
fog: true,
|
||||||
transparent: true,
|
transparent: true,
|
||||||
|
|
||||||
blending: isHalloween ? SubtractiveBlending : NormalBlending,
|
blending: isHalloween ? SubtractiveBlending : NormalBlending,
|
||||||
|
|
||||||
uniforms: UniformsUtils.merge([
|
uniforms: UniformsUtils.merge([
|
||||||
UniformsLib.common,
|
UniformsLib.common,
|
||||||
UniformsLib.fog,
|
UniformsLib.fog,
|
||||||
|
|
||||||
{
|
{
|
||||||
thickness: { value: null },
|
thickness: { value: null },
|
||||||
penetration: { value: null },
|
penetration: { value: null },
|
||||||
caliber: { value: null },
|
caliber: { value: null },
|
||||||
ricochet: { value: null },
|
ricochet: { value: null },
|
||||||
normalization: { value: null },
|
normalization: { value: null },
|
||||||
isExplosive: { value: null },
|
isExplosive: { value: null },
|
||||||
canSplash: { value: null },
|
canSplash: { value: null },
|
||||||
damage: { value: null },
|
damage: { value: null },
|
||||||
explosionRadius: { value: null },
|
explosionRadius: { value: null },
|
||||||
greenPenetration: { value: null },
|
greenPenetration: { value: null },
|
||||||
advancedHighlighting: { value: null },
|
advancedHighlighting: { value: null },
|
||||||
opaque: { value: null },
|
opaque: { value: null },
|
||||||
|
|
||||||
inverseProjectionMatrix: { value: null },
|
inverseProjectionMatrix: { value: null },
|
||||||
resolution: { value: new Vector2() },
|
resolution: { value: new Vector2() },
|
||||||
spacedArmorBuffer: { value: null },
|
spacedArmorBuffer: { value: null },
|
||||||
spacedArmorDepth: { value: null },
|
spacedArmorDepth: { value: null },
|
||||||
|
|
||||||
opacity: { value: 0 },
|
opacity: { value: 0 },
|
||||||
},
|
},
|
||||||
]),
|
]),
|
||||||
}),
|
});
|
||||||
);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
function handleShellChange() {
|
function handleShellChange() {
|
||||||
@@ -88,17 +86,17 @@ export function PrimaryArmorSceneComponent({
|
|||||||
const shell =
|
const shell =
|
||||||
tankopediaEphemeral.customShell ?? Duel.state.antagonist.shell;
|
tankopediaEphemeral.customShell ?? Duel.state.antagonist.shell;
|
||||||
|
|
||||||
material.current.uniforms.caliber.value = shell.caliber;
|
material.uniforms.caliber.value = shell.caliber;
|
||||||
material.current.uniforms.ricochet.value = degToRad(
|
material.uniforms.ricochet.value = degToRad(
|
||||||
isExplosive(shell.type) ? 90 : shell.ricochet!,
|
isExplosive(shell.type) ? 90 : shell.ricochet!,
|
||||||
);
|
);
|
||||||
material.current.uniforms.normalization.value = degToRad(
|
material.uniforms.normalization.value = degToRad(
|
||||||
shell.normalization ?? 0,
|
shell.normalization ?? 0,
|
||||||
);
|
);
|
||||||
material.current.uniforms.isExplosive.value = isExplosive(shell.type);
|
material.uniforms.isExplosive.value = isExplosive(shell.type);
|
||||||
material.current.uniforms.canSplash.value = canSplash(shell.type);
|
material.uniforms.canSplash.value = canSplash(shell.type);
|
||||||
material.current.uniforms.damage.value = shell.armor_damage;
|
material.uniforms.damage.value = shell.armor_damage;
|
||||||
material.current.uniforms.explosionRadius.value = shell.explosion_radius;
|
material.uniforms.explosionRadius.value = shell.explosion_radius;
|
||||||
|
|
||||||
handleProtagonistEquipmentChange(true);
|
handleProtagonistEquipmentChange(true);
|
||||||
handleAntagonistEquipmentChange(true);
|
handleAntagonistEquipmentChange(true);
|
||||||
@@ -106,18 +104,17 @@ export function PrimaryArmorSceneComponent({
|
|||||||
invalidate();
|
invalidate();
|
||||||
}
|
}
|
||||||
function handleGreenPenetrationChange(greenPenetration: boolean) {
|
function handleGreenPenetrationChange(greenPenetration: boolean) {
|
||||||
material.current.uniforms.greenPenetration.value = greenPenetration;
|
material.uniforms.greenPenetration.value = greenPenetration;
|
||||||
}
|
}
|
||||||
function handleAdvancedHighlightingChange(advancedHighlighting: boolean) {
|
function handleAdvancedHighlightingChange(advancedHighlighting: boolean) {
|
||||||
material.current.uniforms.advancedHighlighting.value =
|
material.uniforms.advancedHighlighting.value = advancedHighlighting;
|
||||||
advancedHighlighting;
|
|
||||||
invalidate();
|
invalidate();
|
||||||
}
|
}
|
||||||
function handleOpaqueChange(opaque: boolean) {
|
function handleOpaqueChange(opaque: boolean) {
|
||||||
material.current.uniforms.opaque.value = opaque;
|
material.uniforms.opaque.value = opaque;
|
||||||
}
|
}
|
||||||
function handleWireframeChange(wireframe: boolean) {
|
function handleWireframeChange(wireframe: boolean) {
|
||||||
material.current.wireframe = wireframe;
|
material.wireframe = wireframe;
|
||||||
}
|
}
|
||||||
function handleProtagonistEquipmentChange(noInvalidate = false) {
|
function handleProtagonistEquipmentChange(noInvalidate = false) {
|
||||||
const equipment = Duel.state.protagonist.equipmentMatrix;
|
const equipment = Duel.state.protagonist.equipmentMatrix;
|
||||||
@@ -131,7 +128,7 @@ export function PrimaryArmorSceneComponent({
|
|||||||
? Duel.state.protagonist.tank.equalizer?.armor
|
? Duel.state.protagonist.tank.equalizer?.armor
|
||||||
: undefined) ?? 1;
|
: undefined) ?? 1;
|
||||||
|
|
||||||
material.current.uniforms.thickness.value =
|
material.uniforms.thickness.value =
|
||||||
thickness * (hasEnhancedArmor ? 1.04 : 1) * equalizer;
|
thickness * (hasEnhancedArmor ? 1.04 : 1) * equalizer;
|
||||||
|
|
||||||
if (!noInvalidate) invalidate();
|
if (!noInvalidate) invalidate();
|
||||||
@@ -148,7 +145,7 @@ export function PrimaryArmorSceneComponent({
|
|||||||
equipment,
|
equipment,
|
||||||
);
|
);
|
||||||
|
|
||||||
material.current.uniforms.penetration.value =
|
material.uniforms.penetration.value =
|
||||||
penetration *
|
penetration *
|
||||||
resolvePenetrationCoefficient(
|
resolvePenetrationCoefficient(
|
||||||
hasCalibratedShells,
|
hasCalibratedShells,
|
||||||
@@ -161,7 +158,7 @@ export function PrimaryArmorSceneComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handleTransitionEvent(event: QuicklimeEvent<number>) {
|
function handleTransitionEvent(event: QuicklimeEvent<number>) {
|
||||||
material.current.uniforms.opacity.value = event.data;
|
material.uniforms.opacity.value = event.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
handleShellChange();
|
handleShellChange();
|
||||||
@@ -212,14 +209,13 @@ export function PrimaryArmorSceneComponent({
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useFrame(({ gl, camera }) => {
|
useFrame(({ gl, camera }) => {
|
||||||
gl.getSize(material.current.uniforms.resolution.value).multiplyScalar(
|
gl.getSize(material.uniforms.resolution.value).multiplyScalar(
|
||||||
gl.getPixelRatio(),
|
gl.getPixelRatio(),
|
||||||
);
|
);
|
||||||
material.current.uniforms.spacedArmorBuffer.value =
|
material.uniforms.spacedArmorBuffer.value = spacedArmorRenderTarget.texture;
|
||||||
spacedArmorRenderTarget.texture;
|
material.uniforms.spacedArmorDepth.value =
|
||||||
material.current.uniforms.spacedArmorDepth.value =
|
|
||||||
spacedArmorRenderTarget.depthTexture;
|
spacedArmorRenderTarget.depthTexture;
|
||||||
material.current.uniforms.inverseProjectionMatrix.value =
|
material.uniforms.inverseProjectionMatrix.value =
|
||||||
camera.projectionMatrixInverse;
|
camera.projectionMatrixInverse;
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -244,7 +240,7 @@ export function PrimaryArmorSceneComponent({
|
|||||||
{...props}
|
{...props}
|
||||||
key={`${key}-include`}
|
key={`${key}-include`}
|
||||||
renderOrder={1}
|
renderOrder={1}
|
||||||
material={material.current}
|
material={material}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -128,30 +128,19 @@ export function ShotDisplayCard({ shot, ...props }: ShotDisplayCardProps) {
|
|||||||
? shotStatusColors[shot.out.status]
|
? shotStatusColors[shot.out.status]
|
||||||
: undefined;
|
: undefined;
|
||||||
const inTitleColor = shotStatusColors[shot.in.status];
|
const inTitleColor = shotStatusColors[shot.in.status];
|
||||||
const hasOutLayers = shot.out !== undefined && shot.out.layers.length > 0;
|
|
||||||
const penetrationChance = shot.penetrationChance !== undefined && (
|
|
||||||
<Text color="gray" weight="bold">
|
|
||||||
{literals(strings.common.units.percentage, {
|
|
||||||
value: (shot.penetrationChance * 100).toFixed(0),
|
|
||||||
})}
|
|
||||||
</Text>
|
|
||||||
);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card variant="classic" {...props}>
|
<Card variant="classic" {...props}>
|
||||||
<Flex direction="column" gap="2">
|
<Flex direction="column" gap="2">
|
||||||
<Flex direction="column" gap="1">
|
<Flex direction="column" gap="1">
|
||||||
<Flex justify="between" align="center" gap="4">
|
<Text color={inTitleColor} weight="bold">
|
||||||
<Text color={inTitleColor} weight="bold">
|
{literals(
|
||||||
{literals(
|
strings.website.tools.tankopedia.sandbox.dynamic.shot_card.status[
|
||||||
strings.website.tools.tankopedia.sandbox.dynamic.shot_card
|
shot.in.status
|
||||||
.status[shot.in.status],
|
],
|
||||||
{ damage: Math.round(shot.damage).toLocaleString(locale) }
|
{ damage: Math.round(shot.damage).toLocaleString(locale) }
|
||||||
)}
|
)}
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
{!hasOutLayers && penetrationChance}
|
|
||||||
</Flex>
|
|
||||||
|
|
||||||
<table
|
<table
|
||||||
style={{
|
style={{
|
||||||
@@ -215,17 +204,13 @@ export function ShotDisplayCard({ shot, ...props }: ShotDisplayCardProps) {
|
|||||||
</Flex>
|
</Flex>
|
||||||
</Inset>
|
</Inset>
|
||||||
|
|
||||||
<Flex justify="between" align="center" gap="4">
|
<Text color={outTitleColor} weight="bold">
|
||||||
<Text color={outTitleColor} weight="bold">
|
{literals(
|
||||||
{literals(
|
strings.website.tools.tankopedia.sandbox.dynamic.shot_card
|
||||||
strings.website.tools.tankopedia.sandbox.dynamic.shot_card
|
.status[shot.out.status],
|
||||||
.status[shot.out.status],
|
{ damage: Math.round(shot.damage).toLocaleString(locale) }
|
||||||
{ damage: Math.round(shot.damage).toLocaleString(locale) }
|
)}
|
||||||
)}
|
</Text>
|
||||||
</Text>
|
|
||||||
|
|
||||||
{penetrationChance}
|
|
||||||
</Flex>
|
|
||||||
|
|
||||||
<Flex direction="column">
|
<Flex direction="column">
|
||||||
{shot.out.layers.map((layer, index) => {
|
{shot.out.layers.map((layer, index) => {
|
||||||
|
|||||||
@@ -18,10 +18,6 @@ import {
|
|||||||
import { degToRad } from "three/src/math/MathUtils.js";
|
import { degToRad } from "three/src/math/MathUtils.js";
|
||||||
import { hasEquipment } from "../../../../core/blitzkit/hasEquipment";
|
import { hasEquipment } from "../../../../core/blitzkit/hasEquipment";
|
||||||
import { jsxTree } from "../../../../core/blitzkit/jsxTree";
|
import { jsxTree } from "../../../../core/blitzkit/jsxTree";
|
||||||
import {
|
|
||||||
SPALL_LINER_HE_DAMAGE_DELTA,
|
|
||||||
SPALL_LINER_PROVISION_ID,
|
|
||||||
} from "../../../../core/blitzkit/spallLiner";
|
|
||||||
import { defaultEqualizer } from "../../../../core/blitzkit/tankToDuelMember";
|
import { defaultEqualizer } from "../../../../core/blitzkit/tankToDuelMember";
|
||||||
import { discardClippingPlane } from "../../../../core/three/discardClippingPlane";
|
import { discardClippingPlane } from "../../../../core/three/discardClippingPlane";
|
||||||
import { Duel } from "../../../../stores/duel";
|
import { Duel } from "../../../../stores/duel";
|
||||||
@@ -63,36 +59,6 @@ export type ArmorUserData = {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
const PENETRATION_RANDOMIZATION = 0.05;
|
|
||||||
|
|
||||||
function resolvePenetrationChance(shoot: (scale: number) => Shot | null) {
|
|
||||||
function penetrates(scale: number) {
|
|
||||||
const shot = shoot(scale);
|
|
||||||
|
|
||||||
return (shot?.out ?? shot?.in)?.status === "penetration";
|
|
||||||
}
|
|
||||||
|
|
||||||
let low = 1 - PENETRATION_RANDOMIZATION;
|
|
||||||
let high = 1 + PENETRATION_RANDOMIZATION;
|
|
||||||
|
|
||||||
if (penetrates(low)) return 1;
|
|
||||||
if (!penetrates(high)) return 0;
|
|
||||||
|
|
||||||
for (let iteration = 0; iteration < 16; iteration++) {
|
|
||||||
const middle = (low + high) / 2;
|
|
||||||
|
|
||||||
if (penetrates(middle)) {
|
|
||||||
high = middle;
|
|
||||||
} else {
|
|
||||||
low = middle;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
|
||||||
(1 + PENETRATION_RANDOMIZATION - high) / (2 * PENETRATION_RANDOMIZATION)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const omitMaterial = new MeshBasicMaterial({
|
const omitMaterial = new MeshBasicMaterial({
|
||||||
colorWrite: false,
|
colorWrite: false,
|
||||||
depthWrite: true,
|
depthWrite: true,
|
||||||
@@ -119,7 +85,6 @@ export function SpacedArmorSceneComponent({
|
|||||||
intersections: Intersection[],
|
intersections: Intersection[],
|
||||||
allowRicochet: boolean,
|
allowRicochet: boolean,
|
||||||
remainingPenetrationInput?: number,
|
remainingPenetrationInput?: number,
|
||||||
penetrationScale = 1,
|
|
||||||
) => {
|
) => {
|
||||||
const { customShell } = Tankopedia.state;
|
const { customShell } = Tankopedia.state;
|
||||||
const shell = customShell ?? Duel.state.antagonist.shell;
|
const shell = customShell ?? Duel.state.antagonist.shell;
|
||||||
@@ -156,7 +121,6 @@ export function SpacedArmorSceneComponent({
|
|||||||
Duel.state.protagonist.equipmentMatrix,
|
Duel.state.protagonist.equipmentMatrix,
|
||||||
);
|
);
|
||||||
const penetration =
|
const penetration =
|
||||||
penetrationScale *
|
|
||||||
shell.penetration!.near *
|
shell.penetration!.near *
|
||||||
resolvePenetrationCoefficient(
|
resolvePenetrationCoefficient(
|
||||||
hasCalibratedShells,
|
hasCalibratedShells,
|
||||||
@@ -399,7 +363,6 @@ export function SpacedArmorSceneComponent({
|
|||||||
ricochetIntersections,
|
ricochetIntersections,
|
||||||
false,
|
false,
|
||||||
remainingPenetration,
|
remainingPenetration,
|
||||||
penetrationScale,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
shot.in.status = "ricochet";
|
shot.in.status = "ricochet";
|
||||||
@@ -421,13 +384,6 @@ export function SpacedArmorSceneComponent({
|
|||||||
|
|
||||||
shot.damage *= antagonistEqualizer.damage;
|
shot.damage *= antagonistEqualizer.damage;
|
||||||
|
|
||||||
const hasSpallLiner = Duel.state.protagonist.provisions.includes(
|
|
||||||
SPALL_LINER_PROVISION_ID,
|
|
||||||
);
|
|
||||||
if (hasSpallLiner && shell.type === ShellType.SHELL_TYPE_HE) {
|
|
||||||
shot.damage *= 1 + SPALL_LINER_HE_DAMAGE_DELTA;
|
|
||||||
}
|
|
||||||
|
|
||||||
return shot;
|
return shot;
|
||||||
},
|
},
|
||||||
[camera],
|
[camera],
|
||||||
@@ -455,16 +411,6 @@ export function SpacedArmorSceneComponent({
|
|||||||
|
|
||||||
const shot = shoot(event.point, event.intersections, true)!;
|
const shot = shoot(event.point, event.intersections, true)!;
|
||||||
|
|
||||||
shot.penetrationChance = resolvePenetrationChance((scale) =>
|
|
||||||
shoot(
|
|
||||||
event.point,
|
|
||||||
event.intersections,
|
|
||||||
true,
|
|
||||||
undefined,
|
|
||||||
scale,
|
|
||||||
),
|
|
||||||
);
|
|
||||||
|
|
||||||
Tankopedia.mutate((draft) => {
|
Tankopedia.mutate((draft) => {
|
||||||
draft.shot = shot;
|
draft.shot = shot;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -27,6 +27,8 @@ export const Armor = memo(() => {
|
|||||||
const newRenderSize = new Vector2();
|
const newRenderSize = new Vector2();
|
||||||
|
|
||||||
useFrame(({ gl, camera, scene }) => {
|
useFrame(({ gl, camera, scene }) => {
|
||||||
|
gl.autoClear = true;
|
||||||
|
|
||||||
gl.getSize(newRenderSize).multiplyScalar(gl.getPixelRatio());
|
gl.getSize(newRenderSize).multiplyScalar(gl.getPixelRatio());
|
||||||
|
|
||||||
if (!newRenderSize.equals(renderSize)) {
|
if (!newRenderSize.equals(renderSize)) {
|
||||||
@@ -48,8 +50,6 @@ export const Armor = memo(() => {
|
|||||||
|
|
||||||
gl.clearDepth();
|
gl.clearDepth();
|
||||||
gl.render(primaryArmorScene, camera);
|
gl.render(primaryArmorScene, camera);
|
||||||
|
|
||||||
gl.autoClear = true;
|
|
||||||
}, 1);
|
}, 1);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
---
|
||||||
|
import { tankIcon } from "@blitzkit/core";
|
||||||
|
import { Flex, Heading, Link, Strong, Text } from "@radix-ui/themes";
|
||||||
|
---
|
||||||
|
|
||||||
|
<Flex justify="center" px="4">
|
||||||
|
<Link
|
||||||
|
color="gray"
|
||||||
|
highContrast
|
||||||
|
style={{ display: "content" }}
|
||||||
|
href="/docs/guides/christmas-2025"
|
||||||
|
underline="none"
|
||||||
|
>
|
||||||
|
<Flex
|
||||||
|
mt="3"
|
||||||
|
px="5"
|
||||||
|
py="4"
|
||||||
|
style={{
|
||||||
|
borderRadius: "var(--radius-3)",
|
||||||
|
backgroundImage: "url(https://i.imgur.com/LRYmSkg.png)",
|
||||||
|
backgroundSize: "cover",
|
||||||
|
backgroundPosition: "center",
|
||||||
|
boxSizing: "border-box",
|
||||||
|
}}
|
||||||
|
align="center"
|
||||||
|
gap="5"
|
||||||
|
>
|
||||||
|
<img src={tankIcon(25169)} style={{ height: "min(15vw, 5rem)" }} />
|
||||||
|
|
||||||
|
<Flex direction="column">
|
||||||
|
<Heading size={{ initial: "4", sm: "6" }}>Christmas 2025</Heading>
|
||||||
|
<Text size={{ initial: "2", sm: "3" }}>
|
||||||
|
Win the <Strong>GSOR the TANK</Strong> and more!
|
||||||
|
</Text>
|
||||||
|
</Flex>
|
||||||
|
</Flex>
|
||||||
|
</Link>
|
||||||
|
</Flex>
|
||||||
@@ -12,7 +12,6 @@ export interface Props {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const gameDefinitions = await api.gameDefinitions();
|
const gameDefinitions = await api.gameDefinitions();
|
||||||
const gameVersion = gameDefinitions.version.split("_")[0];
|
|
||||||
const environment = assertSecret(import.meta.env.PUBLIC_ENVIRONMENT);
|
const environment = assertSecret(import.meta.env.PUBLIC_ENVIRONMENT);
|
||||||
const { locale } = Astro.props;
|
const { locale } = Astro.props;
|
||||||
const strings = getStrings(locale);
|
const strings = getStrings(locale);
|
||||||
@@ -142,7 +141,7 @@ const strings = getStrings(locale);
|
|||||||
</Text>
|
</Text>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
<Text size="2" color="gray">Branch</Text>
|
<Text size="2" color="gray">CDN</Text>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
<Flex direction="column" gap="1" flexGrow="1" flexBasis="0" align="start">
|
<Flex direction="column" gap="1" flexGrow="1" flexBasis="0" align="start">
|
||||||
@@ -152,7 +151,7 @@ const strings = getStrings(locale);
|
|||||||
{
|
{
|
||||||
environment !== "preview" && (
|
environment !== "preview" && (
|
||||||
<Code size="2" color="gray">
|
<Code size="2" color="gray">
|
||||||
{gameVersion}
|
{gameDefinitions.version}
|
||||||
</Code>
|
</Code>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -175,13 +174,13 @@ const strings = getStrings(locale);
|
|||||||
WoTB
|
WoTB
|
||||||
</Text>
|
</Text>
|
||||||
<Code size="2" color="gray">
|
<Code size="2" color="gray">
|
||||||
{gameVersion}
|
{gameDefinitions.version}
|
||||||
</Code>
|
</Code>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
<Text size="2" color="gray">Branch</Text>
|
<Text size="2" color="gray">CDN</Text>
|
||||||
<Code size="2" color="gray">
|
<Code size="2" color="gray">
|
||||||
{environment}
|
{environment}
|
||||||
</Code>
|
</Code>
|
||||||
|
|||||||
+10
-10
@@ -3,9 +3,9 @@ import { useEffect, useState, type ReactNode } from "react";
|
|||||||
import type { MaybeSkeletonComponentProps } from "../types/maybeSkeletonComponentProps";
|
import type { MaybeSkeletonComponentProps } from "../types/maybeSkeletonComponentProps";
|
||||||
import { InlineSkeleton } from "./InlineSkeleton";
|
import { InlineSkeleton } from "./InlineSkeleton";
|
||||||
|
|
||||||
const TIME = 1792598400 * 1000;
|
const TIME = 1764898200 * 1000;
|
||||||
|
|
||||||
export function Countdown({ skeleton }: MaybeSkeletonComponentProps) {
|
export function Giveaway({ skeleton }: MaybeSkeletonComponentProps) {
|
||||||
const [timeLeft, setTimeLeft] = useState<number>(TIME - Date.now());
|
const [timeLeft, setTimeLeft] = useState<number>(TIME - Date.now());
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -31,14 +31,14 @@ export function Countdown({ skeleton }: MaybeSkeletonComponentProps) {
|
|||||||
|
|
||||||
string = (
|
string = (
|
||||||
<>
|
<>
|
||||||
revealed in{" "}
|
in{" "}
|
||||||
<Code highContrast>
|
<Code highContrast>
|
||||||
{hours}h {minutes}m {seconds}s
|
{hours}h {minutes}m {seconds}s
|
||||||
</Code>
|
</Code>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
string = "have been revealed.";
|
string = "has ended. Come again later!";
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -47,7 +47,7 @@ export function Countdown({ skeleton }: MaybeSkeletonComponentProps) {
|
|||||||
color="gray"
|
color="gray"
|
||||||
highContrast
|
highContrast
|
||||||
style={{ display: "content" }}
|
style={{ display: "content" }}
|
||||||
href="https://preview.blitzkit.app/tanks"
|
href="https://discord.gg/njQdBhNS?event=1446208951136813117"
|
||||||
underline="none"
|
underline="none"
|
||||||
>
|
>
|
||||||
<Flex
|
<Flex
|
||||||
@@ -56,17 +56,17 @@ export function Countdown({ skeleton }: MaybeSkeletonComponentProps) {
|
|||||||
py="4"
|
py="4"
|
||||||
style={{
|
style={{
|
||||||
borderRadius: "var(--radius-3)",
|
borderRadius: "var(--radius-3)",
|
||||||
backgroundImage: "url(https://i.imgur.com/xgngxoy.png)",
|
backgroundImage: "url(https://i.imgur.com/LRYmSkg.png)",
|
||||||
backgroundSize: "cover",
|
backgroundSize: "cover",
|
||||||
backgroundPosition: "center",
|
backgroundPosition: "center",
|
||||||
boxSizing: "border-box",
|
boxSizing: "border-box",
|
||||||
boxShadow: "0 0 var(--space-7) var(--white-a2)",
|
boxShadow: "0 0 var(--space-7) var(--blue-a5)",
|
||||||
}}
|
}}
|
||||||
align="center"
|
align="center"
|
||||||
gap="5"
|
gap="5"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
src="https://i.imgur.com/kXV3r3P.png"
|
src="https://i.imgur.com/mvmJQgB.png"
|
||||||
style={{
|
style={{
|
||||||
height: "min(15vw, 5rem)",
|
height: "min(15vw, 5rem)",
|
||||||
filter: "drop-shadow(0.5rem 0.5rem 1rem #00000080)",
|
filter: "drop-shadow(0.5rem 0.5rem 1rem #00000080)",
|
||||||
@@ -75,11 +75,11 @@ export function Countdown({ skeleton }: MaybeSkeletonComponentProps) {
|
|||||||
|
|
||||||
<Flex direction="column">
|
<Flex direction="column">
|
||||||
<Heading size={{ initial: "4", sm: "6" }}>
|
<Heading size={{ initial: "4", sm: "6" }}>
|
||||||
Tier XIs {!skeleton && string}{" "}
|
Music Box giveaway {!skeleton && string}{" "}
|
||||||
{skeleton && <InlineSkeleton width="10rem" />}
|
{skeleton && <InlineSkeleton width="10rem" />}
|
||||||
</Heading>
|
</Heading>
|
||||||
<Text size={{ initial: "2", sm: "3" }}>
|
<Text size={{ initial: "2", sm: "3" }}>
|
||||||
Get ready to go to the Tankopedia!
|
Join the BlitzKit Discord server event
|
||||||
</Text>
|
</Text>
|
||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
@@ -27,10 +27,9 @@ import {
|
|||||||
TextField,
|
TextField,
|
||||||
} from "@radix-ui/themes";
|
} from "@radix-ui/themes";
|
||||||
import fuzzysort from "fuzzysort";
|
import fuzzysort from "fuzzysort";
|
||||||
import { debounce } from "lodash-es";
|
import { debounce, times } from "lodash-es";
|
||||||
import { useCallback, useEffect, useRef, useState } from "react";
|
import { useCallback, useEffect, useRef, useState } from "react";
|
||||||
import { awaitableTankNames } from "../core/awaitables/tankNames";
|
import { awaitableTankNames } from "../core/awaitables/tankNames";
|
||||||
import { awaitableTiers } from "../core/awaitables/tiers";
|
|
||||||
import { api } from "../core/blitzkit/api";
|
import { api } from "../core/blitzkit/api";
|
||||||
import { useLocale } from "../hooks/useLocale";
|
import { useLocale } from "../hooks/useLocale";
|
||||||
import { Guess, GuessState } from "../stores/guess";
|
import { Guess, GuessState } from "../stores/guess";
|
||||||
@@ -39,10 +38,9 @@ import { SearchResults } from "./SearchResults";
|
|||||||
|
|
||||||
const { go } = fuzzysort;
|
const { go } = fuzzysort;
|
||||||
|
|
||||||
const [tankNames, tankDefinitions, TIERS] = await Promise.all([
|
const [tankNames, tankDefinitions] = await Promise.all([
|
||||||
awaitableTankNames,
|
awaitableTankNames,
|
||||||
api.tankDefinitions(),
|
api.tankDefinitions(),
|
||||||
awaitableTiers,
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const ids = Object.keys(tankDefinitions.tanks);
|
const ids = Object.keys(tankDefinitions.tanks);
|
||||||
@@ -195,7 +193,8 @@ export function Guesser() {
|
|||||||
</DropdownMenu.Trigger>
|
</DropdownMenu.Trigger>
|
||||||
|
|
||||||
<DropdownMenu.Content>
|
<DropdownMenu.Content>
|
||||||
{TIERS.map((tier) => {
|
{times(10, (index) => {
|
||||||
|
const tier = 10 - index;
|
||||||
const isSelected = tiers.includes(tier);
|
const isSelected = tiers.includes(tier);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -1,27 +1,3 @@
|
|||||||
<script>
|
<script>
|
||||||
import locales from "@blitzkit/i18n/locales.json";
|
|
||||||
import { getBestLocale } from "../core/i18n/getBestLocale";
|
|
||||||
|
|
||||||
const pathname = window.location.pathname;
|
|
||||||
const hasPreference = localStorage.getItem("preferred-locale") !== null;
|
|
||||||
const bestLocale = getBestLocale();
|
|
||||||
const currentLocale =
|
|
||||||
locales.supported.find(
|
|
||||||
({ locale }) =>
|
|
||||||
pathname === `/${locale}` || pathname.startsWith(`/${locale}/`),
|
|
||||||
)?.locale ?? locales.default;
|
|
||||||
|
|
||||||
if (
|
|
||||||
bestLocale !== currentLocale &&
|
|
||||||
(hasPreference || currentLocale === locales.default)
|
|
||||||
) {
|
|
||||||
const rawPath =
|
|
||||||
currentLocale === locales.default
|
|
||||||
? pathname
|
|
||||||
: pathname.slice(`/${currentLocale}`.length) || "/";
|
|
||||||
|
|
||||||
window.location.pathname = `${
|
|
||||||
bestLocale === locales.default ? "" : `/${bestLocale}`
|
|
||||||
}${rawPath}`;
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
@@ -1,20 +1,13 @@
|
|||||||
import { Link, Table } from '@radix-ui/themes';
|
import { Link, Table } from '@radix-ui/themes';
|
||||||
import MarkdownToJSX from 'markdown-to-jsx';
|
import MarkdownToJSX from 'markdown-to-jsx';
|
||||||
import type { ComponentProps } from 'react';
|
import type { ComponentProps } from 'react';
|
||||||
import { docImageUrl, isExternalImage } from '../core/blitzkit/docImages';
|
|
||||||
|
|
||||||
interface MarkdownProps {
|
interface MarkdownProps {
|
||||||
children: string;
|
children: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
function Image({ src, ...props }: ComponentProps<'img'>) {
|
function Image(props: ComponentProps<'img'>) {
|
||||||
return (
|
return <img style={{ maxWidth: '100%' }} {...props} />;
|
||||||
<img
|
|
||||||
style={{ maxWidth: '100%' }}
|
|
||||||
src={src && isExternalImage(src) ? docImageUrl(src) : src}
|
|
||||||
{...props}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function Markdown({ children }: MarkdownProps) {
|
export function Markdown({ children }: MarkdownProps) {
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ import { FilterControl } from "./TankSearch/components/FilterControl";
|
|||||||
const tankDefinitions = await api.tankDefinitions();
|
const tankDefinitions = await api.tankDefinitions();
|
||||||
|
|
||||||
const POOL_HEIGHT = "16rem";
|
const POOL_HEIGHT = "16rem";
|
||||||
const FILTERS_WIDTH = "32rem";
|
|
||||||
|
|
||||||
export function PlaylistGenerator({ skeleton }: MaybeSkeletonComponentProps) {
|
export function PlaylistGenerator({ skeleton }: MaybeSkeletonComponentProps) {
|
||||||
const [largeWarningOpen, setLargeWarningOpen] = useState(false);
|
const [largeWarningOpen, setLargeWarningOpen] = useState(false);
|
||||||
@@ -81,19 +80,13 @@ export function PlaylistGenerator({ skeleton }: MaybeSkeletonComponentProps) {
|
|||||||
<Flex justify="center" width="100%" align="center" px="4">
|
<Flex justify="center" width="100%" align="center" px="4">
|
||||||
<Flex
|
<Flex
|
||||||
flexGrow="1"
|
flexGrow="1"
|
||||||
gap="6"
|
gap="9"
|
||||||
align="center"
|
align="center"
|
||||||
justify="center"
|
justify="center"
|
||||||
maxWidth="80rem"
|
maxWidth="80rem"
|
||||||
direction={{ initial: "column-reverse", md: "row" }}
|
direction={{ initial: "column-reverse", md: "row" }}
|
||||||
>
|
>
|
||||||
<Flex
|
<Flex direction="column" gap="4" align="center">
|
||||||
direction="column"
|
|
||||||
gap="4"
|
|
||||||
align="center"
|
|
||||||
flexShrink="0"
|
|
||||||
width={{ initial: "100%", md: FILTERS_WIDTH }}
|
|
||||||
>
|
|
||||||
<FilterControl />
|
<FilterControl />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
export function StupidCat() {
|
||||||
|
return <img src="https://i.imgur.com/6FBBzb9.png" />;
|
||||||
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import {
|
import {
|
||||||
normalizeBoundingBox,
|
normalizeBoundingBox,
|
||||||
resolveDpm,
|
resolveDpm,
|
||||||
tankBoundingBox,
|
unionBoundingBox,
|
||||||
type TankDefinition,
|
type TankDefinition,
|
||||||
} from "@blitzkit/core";
|
} from "@blitzkit/core";
|
||||||
import { useMemo } from "react";
|
import { useMemo } from "react";
|
||||||
@@ -112,7 +112,10 @@ export function TankSearchCard({ tank, onSelect }: TankSearchCardProps) {
|
|||||||
return (tank.camouflage_still * gun.camouflage_loss * 100).toFixed(0);
|
return (tank.camouflage_still * gun.camouflage_loss * 100).toFixed(0);
|
||||||
case "survivability.volume": {
|
case "survivability.volume": {
|
||||||
const dimensions = normalizeBoundingBox(
|
const dimensions = normalizeBoundingBox(
|
||||||
tankBoundingBox(tankModelDefinition, turretModelDefinition),
|
unionBoundingBox(
|
||||||
|
tankModelDefinition.bounding_box!,
|
||||||
|
turretModelDefinition.bounding_box!,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
return (dimensions.x * dimensions.y * dimensions.z).toFixed(0);
|
return (dimensions.x * dimensions.y * dimensions.z).toFixed(0);
|
||||||
@@ -120,7 +123,10 @@ export function TankSearchCard({ tank, onSelect }: TankSearchCardProps) {
|
|||||||
|
|
||||||
case "survivability.length": {
|
case "survivability.length": {
|
||||||
const bounds = normalizeBoundingBox(
|
const bounds = normalizeBoundingBox(
|
||||||
tankBoundingBox(tankModelDefinition, turretModelDefinition),
|
unionBoundingBox(
|
||||||
|
tankModelDefinition.bounding_box!,
|
||||||
|
turretModelDefinition.bounding_box!,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
return Math.max(bounds.x, bounds.y, bounds.z).toFixed(0);
|
return Math.max(bounds.x, bounds.y, bounds.z).toFixed(0);
|
||||||
|
|||||||
@@ -25,8 +25,8 @@ import {
|
|||||||
Tooltip,
|
Tooltip,
|
||||||
type FlexProps,
|
type FlexProps,
|
||||||
} from "@radix-ui/themes";
|
} from "@radix-ui/themes";
|
||||||
|
import { times } from "lodash-es";
|
||||||
import { Fragment, type ComponentProps, type ReactNode } from "react";
|
import { Fragment, type ComponentProps, type ReactNode } from "react";
|
||||||
import { awaitableTiers } from "../../../core/awaitables/tiers";
|
|
||||||
import { api } from "../../../core/blitzkit/api";
|
import { api } from "../../../core/blitzkit/api";
|
||||||
import { useLocale } from "../../../hooks/useLocale";
|
import { useLocale } from "../../../hooks/useLocale";
|
||||||
import { App } from "../../../stores/app";
|
import { App } from "../../../stores/app";
|
||||||
@@ -45,13 +45,14 @@ const consumableDefinitions = await api.consumableDefinitions();
|
|||||||
const provisionDefinitions = await api.provisionDefinitions();
|
const provisionDefinitions = await api.provisionDefinitions();
|
||||||
const tankDefinitions = await api.tankDefinitions();
|
const tankDefinitions = await api.tankDefinitions();
|
||||||
|
|
||||||
const gameModeRoleSets: Record<string, Set<number>> = {};
|
const gameModeRoleSets: Record<number, Set<number>> = {};
|
||||||
|
|
||||||
for (const tankIdString in tankDefinitions.tanks) {
|
for (const tankIdString in tankDefinitions.tanks) {
|
||||||
const gameMode = tankDefinitions.tanks[tankIdString];
|
const gameMode = tankDefinitions.tanks[tankIdString];
|
||||||
|
|
||||||
for (const gameModeId in gameMode.roles) {
|
for (const gameModeIdString in gameMode.roles) {
|
||||||
const role = gameMode.roles[gameModeId];
|
const role = gameMode.roles[gameModeIdString];
|
||||||
|
const gameModeId = Number(gameModeIdString);
|
||||||
|
|
||||||
if (gameModeId in gameModeRoleSets) {
|
if (gameModeId in gameModeRoleSets) {
|
||||||
gameModeRoleSets[gameModeId].add(role);
|
gameModeRoleSets[gameModeId].add(role);
|
||||||
@@ -62,7 +63,7 @@ for (const tankIdString in tankDefinitions.tanks) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const gameModeRoles: {
|
const gameModeRoles: {
|
||||||
gameModeId: string;
|
gameModeId: number;
|
||||||
consumables: number[];
|
consumables: number[];
|
||||||
provisions: number[];
|
provisions: number[];
|
||||||
}[] = [];
|
}[] = [];
|
||||||
@@ -71,7 +72,8 @@ const allGameModeConsumables = new Set<number>();
|
|||||||
const allGameModeProvisions = new Set<number>();
|
const allGameModeProvisions = new Set<number>();
|
||||||
|
|
||||||
for (const gameModeIdString in gameModeRoleSets) {
|
for (const gameModeIdString in gameModeRoleSets) {
|
||||||
const roles = gameModeRoleSets[gameModeIdString];
|
const gameModeId = Number(gameModeIdString);
|
||||||
|
const roles = gameModeRoleSets[gameModeId];
|
||||||
const consumables = new Set<number>();
|
const consumables = new Set<number>();
|
||||||
const provisions = new Set<number>();
|
const provisions = new Set<number>();
|
||||||
|
|
||||||
@@ -114,7 +116,7 @@ for (const gameModeIdString in gameModeRoleSets) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
gameModeRoles.push({
|
gameModeRoles.push({
|
||||||
gameModeId: gameModeIdString,
|
gameModeId: gameModeId,
|
||||||
consumables: Array.from(consumables.values()),
|
consumables: Array.from(consumables.values()),
|
||||||
provisions: Array.from(provisions.values()),
|
provisions: Array.from(provisions.values()),
|
||||||
});
|
});
|
||||||
@@ -171,7 +173,7 @@ const GUN_TYPES = Object.keys(
|
|||||||
|
|
||||||
const MAX_ICONS = 4;
|
const MAX_ICONS = 4;
|
||||||
|
|
||||||
const TIERS = await awaitableTiers;
|
const TIERS = times(10, (i) => 10 - i);
|
||||||
|
|
||||||
export function FilterControl() {
|
export function FilterControl() {
|
||||||
return (
|
return (
|
||||||
@@ -789,7 +791,6 @@ function OwnershipFilterInternal(props: FlexProps) {
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
TankFilters.mutate((draft) => {
|
TankFilters.mutate((draft) => {
|
||||||
draft.showOwned = !draft.showOwned;
|
draft.showOwned = !draft.showOwned;
|
||||||
if (draft.showOwned) draft.showUnowned = false;
|
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@@ -809,7 +810,6 @@ function OwnershipFilterInternal(props: FlexProps) {
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
TankFilters.mutate((draft) => {
|
TankFilters.mutate((draft) => {
|
||||||
draft.showUnowned = !draft.showUnowned;
|
draft.showUnowned = !draft.showUnowned;
|
||||||
if (draft.showUnowned) draft.showOwned = false;
|
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@@ -836,7 +836,6 @@ function TestFilter() {
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
TankFilters.mutate((draft) => {
|
TankFilters.mutate((draft) => {
|
||||||
draft.showNonTesting = !draft.showNonTesting;
|
draft.showNonTesting = !draft.showNonTesting;
|
||||||
if (draft.showNonTesting) draft.showTesting = false;
|
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@@ -857,7 +856,6 @@ function TestFilter() {
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
TankFilters.mutate((draft) => {
|
TankFilters.mutate((draft) => {
|
||||||
draft.showTesting = !draft.showTesting;
|
draft.showTesting = !draft.showTesting;
|
||||||
if (draft.showTesting) draft.showNonTesting = false;
|
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ export function SearchBar({ topResult, skeleton, onSelect }: SearchBarProps) {
|
|||||||
draft.search = sanitized.length === 0 ? null : sanitized;
|
draft.search = sanitized.length === 0 ? null : sanitized;
|
||||||
});
|
});
|
||||||
}, 500),
|
}, 500),
|
||||||
[],
|
[]
|
||||||
);
|
);
|
||||||
const handleChange = useCallback(() => {
|
const handleChange = useCallback(() => {
|
||||||
if (!searching) {
|
if (!searching) {
|
||||||
@@ -46,14 +46,7 @@ export function SearchBar({ topResult, skeleton, onSelect }: SearchBarProps) {
|
|||||||
}, [searching]);
|
}, [searching]);
|
||||||
const handleKeyDown = useCallback<KeyboardEventHandler>(
|
const handleKeyDown = useCallback<KeyboardEventHandler>(
|
||||||
(event) => {
|
(event) => {
|
||||||
if (
|
if (event.key !== "Enter" || !topResult || searching) return;
|
||||||
event.key !== "Enter" ||
|
|
||||||
!topResult ||
|
|
||||||
!TankFilters.state.search ||
|
|
||||||
TankFilters.state.searching
|
|
||||||
) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
@@ -63,7 +56,7 @@ export function SearchBar({ topResult, skeleton, onSelect }: SearchBarProps) {
|
|||||||
window.location.href = `/tanks/${topResult.slug}`;
|
window.location.href = `/tanks/${topResult.slug}`;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[topResult],
|
[topResult]
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
import { TIER_ROMAN_NUMERALS } from "@blitzkit/core";
|
import { TIER_ROMAN_NUMERALS } from "@blitzkit/core";
|
||||||
import { Flex, IconButton, Text } from "@radix-ui/themes";
|
import { Flex, IconButton, Text } from "@radix-ui/themes";
|
||||||
|
import { times } from "lodash-es";
|
||||||
import { memo } from "react";
|
import { memo } from "react";
|
||||||
import { awaitableTiers } from "../../../core/awaitables/tiers";
|
|
||||||
import { TankFilters } from "../../../stores/tankFilters";
|
import { TankFilters } from "../../../stores/tankFilters";
|
||||||
import { TankSort } from "../../../stores/tankopediaSort";
|
import { TankSort } from "../../../stores/tankopediaSort";
|
||||||
|
|
||||||
const TIERS = await awaitableTiers;
|
|
||||||
|
|
||||||
export const TierFilter = memo(() => {
|
export const TierFilter = memo(() => {
|
||||||
const by = TankSort.use((state) => state.by);
|
const by = TankSort.use((state) => state.by);
|
||||||
const search = TankFilters.use((state) => state.search);
|
const search = TankFilters.use((state) => state.search);
|
||||||
@@ -21,7 +19,8 @@ export const TierFilter = memo(() => {
|
|||||||
overflow="hidden"
|
overflow="hidden"
|
||||||
style={{ borderRadius: "var(--radius-full)" }}
|
style={{ borderRadius: "var(--radius-full)" }}
|
||||||
>
|
>
|
||||||
{TIERS.map((tier) => {
|
{times(10, (index) => {
|
||||||
|
const tier = 10 - index;
|
||||||
const selected = tiers.includes(tier);
|
const selected = tiers.includes(tier);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import {
|
|||||||
normalizeBoundingBox,
|
normalizeBoundingBox,
|
||||||
resolveDpm,
|
resolveDpm,
|
||||||
SEARCH_KEYS,
|
SEARCH_KEYS,
|
||||||
tankBoundingBox,
|
unionBoundingBox,
|
||||||
type TankDefinition,
|
type TankDefinition,
|
||||||
} from "@blitzkit/core";
|
} from "@blitzkit/core";
|
||||||
import { literals } from "@blitzkit/i18n/src/literals";
|
import { literals } from "@blitzkit/i18n/src/literals";
|
||||||
@@ -137,10 +137,16 @@ export const TankSearch = memo<TankSearchProps>(
|
|||||||
const bTurretModelDefinition =
|
const bTurretModelDefinition =
|
||||||
bTankModelDefinition.turrets[b.turrets.at(-1)!.id];
|
bTankModelDefinition.turrets[b.turrets.at(-1)!.id];
|
||||||
const aSize = normalizeBoundingBox(
|
const aSize = normalizeBoundingBox(
|
||||||
tankBoundingBox(aTankModelDefinition, aTurretModelDefinition),
|
unionBoundingBox(
|
||||||
|
aTankModelDefinition.bounding_box!,
|
||||||
|
aTurretModelDefinition.bounding_box!,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
const bSize = normalizeBoundingBox(
|
const bSize = normalizeBoundingBox(
|
||||||
tankBoundingBox(bTankModelDefinition, bTurretModelDefinition),
|
unionBoundingBox(
|
||||||
|
bTankModelDefinition.bounding_box!,
|
||||||
|
bTurretModelDefinition.bounding_box!,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
const aVolume = aSize.x * aSize.y * aSize.z;
|
const aVolume = aSize.x * aSize.y * aSize.z;
|
||||||
const bVolume = bSize.x * bSize.y * bSize.z;
|
const bVolume = bSize.x * bSize.y * bSize.z;
|
||||||
@@ -158,10 +164,16 @@ export const TankSearch = memo<TankSearchProps>(
|
|||||||
const bTurretModelDefinition =
|
const bTurretModelDefinition =
|
||||||
bTankModelDefinition.turrets[b.turrets.at(-1)!.id];
|
bTankModelDefinition.turrets[b.turrets.at(-1)!.id];
|
||||||
const aSize = normalizeBoundingBox(
|
const aSize = normalizeBoundingBox(
|
||||||
tankBoundingBox(aTankModelDefinition, aTurretModelDefinition),
|
unionBoundingBox(
|
||||||
|
aTankModelDefinition.bounding_box!,
|
||||||
|
aTurretModelDefinition.bounding_box!,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
const bSize = normalizeBoundingBox(
|
const bSize = normalizeBoundingBox(
|
||||||
tankBoundingBox(bTankModelDefinition, bTurretModelDefinition),
|
unionBoundingBox(
|
||||||
|
bTankModelDefinition.bounding_box!,
|
||||||
|
bTurretModelDefinition.bounding_box!,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
const aLength = Math.max(aSize.x, aSize.y, aSize.z);
|
const aLength = Math.max(aSize.x, aSize.y, aSize.z);
|
||||||
const bLength = Math.max(bSize.x, bSize.y, bSize.z);
|
const bLength = Math.max(bSize.x, bSize.y, bSize.z);
|
||||||
|
|||||||
+5
-47
@@ -1,14 +1,6 @@
|
|||||||
import { alias, isExplosive } from "@blitzkit/core";
|
import { alias, isExplosive } from "@blitzkit/core";
|
||||||
import { literals } from "@blitzkit/i18n";
|
import { literals } from "@blitzkit/i18n";
|
||||||
import { InfoCircledIcon } from "@radix-ui/react-icons";
|
import { Flex, Heading, IconButton, Tooltip } from "@radix-ui/themes";
|
||||||
import {
|
|
||||||
Flex,
|
|
||||||
Heading,
|
|
||||||
IconButton,
|
|
||||||
Popover,
|
|
||||||
Text,
|
|
||||||
Tooltip,
|
|
||||||
} from "@radix-ui/themes";
|
|
||||||
import { useLocale } from "../../../../../../hooks/useLocale";
|
import { useLocale } from "../../../../../../hooks/useLocale";
|
||||||
import { useTankModelDefinition } from "../../../../../../hooks/useTankModelDefinition";
|
import { useTankModelDefinition } from "../../../../../../hooks/useTankModelDefinition";
|
||||||
import { Duel } from "../../../../../../stores/duel";
|
import { Duel } from "../../../../../../stores/duel";
|
||||||
@@ -17,7 +9,7 @@ import { AssaultRangesVisualizer } from "./AssaultRangesVisualizer";
|
|||||||
import { GunFlexibilityVisualizer } from "./GunFlexibilityVisualizer";
|
import { GunFlexibilityVisualizer } from "./GunFlexibilityVisualizer";
|
||||||
import { Info } from "./Info";
|
import { Info } from "./Info";
|
||||||
import { InfoWithDelta } from "./InfoWithDelta";
|
import { InfoWithDelta } from "./InfoWithDelta";
|
||||||
import { RELOAD_PRECISION, ReloadVisualizer } from "./ReloadVisualizer";
|
import { ReloadVisualizer } from "./ReloadVisualizer";
|
||||||
import { RicochetVisualizer } from "./RicochetVisualizer";
|
import { RicochetVisualizer } from "./RicochetVisualizer";
|
||||||
import { StatsTableWrapper } from "./StatsTableWrapper";
|
import { StatsTableWrapper } from "./StatsTableWrapper";
|
||||||
import type { StatsAcceptorProps } from "./TraverseVisualizer";
|
import type { StatsAcceptorProps } from "./TraverseVisualizer";
|
||||||
@@ -85,40 +77,6 @@ export function Firepower({
|
|||||||
{strings.common.gun_types[gun.gun_type!.$case]}
|
{strings.common.gun_types[gun.gun_type!.$case]}
|
||||||
</Info>
|
</Info>
|
||||||
<InfoWithDelta stats={stats} decimals={0} value="dpm" />
|
<InfoWithDelta stats={stats} decimals={0} value="dpm" />
|
||||||
{gun.gun_type!.$case === "regular" && (
|
|
||||||
<InfoWithDelta
|
|
||||||
stats={stats}
|
|
||||||
indent
|
|
||||||
decimals={0}
|
|
||||||
noRanking
|
|
||||||
name={
|
|
||||||
<Flex align="center" gap="1" display="inline-flex">
|
|
||||||
{
|
|
||||||
strings.website.tools.tankopedia.characteristics.values
|
|
||||||
.peekabooDpm
|
|
||||||
}
|
|
||||||
|
|
||||||
<Popover.Root>
|
|
||||||
<Popover.Trigger>
|
|
||||||
<IconButton variant="ghost" size="1">
|
|
||||||
<InfoCircledIcon />
|
|
||||||
</IconButton>
|
|
||||||
</Popover.Trigger>
|
|
||||||
|
|
||||||
<Popover.Content style={{ maxWidth: 280 }}>
|
|
||||||
<Text size="2">
|
|
||||||
{
|
|
||||||
strings.website.tools.tankopedia.characteristics.values
|
|
||||||
.peekabooDpmInfo
|
|
||||||
}
|
|
||||||
</Text>
|
|
||||||
</Popover.Content>
|
|
||||||
</Popover.Root>
|
|
||||||
</Flex>
|
|
||||||
}
|
|
||||||
value={(tank) => tank.peekabooDpm}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
<InfoWithDelta stats={stats} decimals={0} value="damage" />
|
<InfoWithDelta stats={stats} decimals={0} value="damage" />
|
||||||
{gun.gun_type!.$case !== "regular" && (
|
{gun.gun_type!.$case !== "regular" && (
|
||||||
<InfoWithDelta stats={stats} indent decimals={0} value="clipDamage" />
|
<InfoWithDelta stats={stats} indent decimals={0} value="clipDamage" />
|
||||||
@@ -163,7 +121,7 @@ export function Firepower({
|
|||||||
.shell_index,
|
.shell_index,
|
||||||
{ index: index + 1 },
|
{ index: index + 1 },
|
||||||
)}
|
)}
|
||||||
decimals={RELOAD_PRECISION}
|
decimals={2}
|
||||||
deltaType="lowerIsBetter"
|
deltaType="lowerIsBetter"
|
||||||
noRanking
|
noRanking
|
||||||
value={() => reload}
|
value={() => reload}
|
||||||
@@ -173,7 +131,7 @@ export function Firepower({
|
|||||||
) : (
|
) : (
|
||||||
<InfoWithDelta
|
<InfoWithDelta
|
||||||
stats={stats}
|
stats={stats}
|
||||||
decimals={RELOAD_PRECISION}
|
decimals={2}
|
||||||
deltaType="lowerIsBetter"
|
deltaType="lowerIsBetter"
|
||||||
value="shellReload"
|
value="shellReload"
|
||||||
/>
|
/>
|
||||||
@@ -183,7 +141,7 @@ export function Firepower({
|
|||||||
<InfoWithDelta
|
<InfoWithDelta
|
||||||
stats={stats}
|
stats={stats}
|
||||||
indent
|
indent
|
||||||
decimals={RELOAD_PRECISION}
|
decimals={2}
|
||||||
deltaType="lowerIsBetter"
|
deltaType="lowerIsBetter"
|
||||||
value="intraClip"
|
value="intraClip"
|
||||||
/>
|
/>
|
||||||
|
|||||||
+3
-24
@@ -1,7 +1,6 @@
|
|||||||
import type { QuicklimeEvent } from "quicklime";
|
import type { QuicklimeEvent } from "quicklime";
|
||||||
import { useEffect, useRef } from "react";
|
import { useEffect, useRef } from "react";
|
||||||
import type { Group } from "three";
|
import type { Group } from "three";
|
||||||
import { degToRad } from "three/src/math/MathUtils.js";
|
|
||||||
import { api } from "../../../../../../../../core/blitzkit/api";
|
import { api } from "../../../../../../../../core/blitzkit/api";
|
||||||
import {
|
import {
|
||||||
modelTransformEvent,
|
modelTransformEvent,
|
||||||
@@ -22,13 +21,6 @@ export function CanvasContent() {
|
|||||||
const tankModel = modelDefinitions.models[tank.id];
|
const tankModel = modelDefinitions.models[tank.id];
|
||||||
const turretModel = tankModel.turrets[turret.id];
|
const turretModel = tankModel.turrets[turret.id];
|
||||||
|
|
||||||
// baked-in turret mount tilt (e.g. Minotauro sits pitched 3deg forward);
|
|
||||||
// applied as a static base rotation so the live gun pitch composes on top
|
|
||||||
// of it, mirroring useTankTransform.ts's turretContainer/gunContainer nesting
|
|
||||||
const initialTurretPitch = -degToRad(
|
|
||||||
tankModel.initial_turret_rotation?.pitch ?? 0,
|
|
||||||
);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
function handleModelTransformEvent(
|
function handleModelTransformEvent(
|
||||||
event: QuicklimeEvent<ModelTransformEventData>,
|
event: QuicklimeEvent<ModelTransformEventData>,
|
||||||
@@ -53,23 +45,10 @@ export function CanvasContent() {
|
|||||||
</group>
|
</group>
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
<group
|
<ModelChunk only="turret" />
|
||||||
position={[0, turretModel.gun_origin!.y, turretModel.gun_origin!.z]}
|
|
||||||
rotation={[initialTurretPitch, 0, 0]}
|
|
||||||
>
|
|
||||||
<group
|
|
||||||
position={[
|
|
||||||
0,
|
|
||||||
-turretModel.gun_origin!.y,
|
|
||||||
-turretModel.gun_origin!.z,
|
|
||||||
]}
|
|
||||||
>
|
|
||||||
<ModelChunk only="turret" />
|
|
||||||
|
|
||||||
<group ref={gunWrapper}>
|
<group ref={gunWrapper}>
|
||||||
<ModelChunk only="gun" />
|
<ModelChunk only="gun" />
|
||||||
</group>
|
|
||||||
</group>
|
|
||||||
</group>
|
</group>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
+14
-30
@@ -13,7 +13,6 @@ import { modelTransformEvent } from "../../../../../../../core/blitzkit/modelTra
|
|||||||
import { Var } from "../../../../../../../core/radix/var";
|
import { Var } from "../../../../../../../core/radix/var";
|
||||||
import { useLocale } from "../../../../../../../hooks/useLocale";
|
import { useLocale } from "../../../../../../../hooks/useLocale";
|
||||||
import { Duel } from "../../../../../../../stores/duel";
|
import { Duel } from "../../../../../../../stores/duel";
|
||||||
import { Tankopedia } from "../../../../../../../stores/tankopedia";
|
|
||||||
import type { MaybeSkeletonComponentProps } from "../../../../../../../types/maybeSkeletonComponentProps";
|
import type { MaybeSkeletonComponentProps } from "../../../../../../../types/maybeSkeletonComponentProps";
|
||||||
import { VisualizerCard } from "../VisualizerCard";
|
import { VisualizerCard } from "../VisualizerCard";
|
||||||
import { VisualizerCornerStat } from "../VisualizerCornerStat";
|
import { VisualizerCornerStat } from "../VisualizerCornerStat";
|
||||||
@@ -44,33 +43,18 @@ export function GunFlexibilityVisualizer({
|
|||||||
const tank = Duel.use((state) => state.protagonist.tank);
|
const tank = Duel.use((state) => state.protagonist.tank);
|
||||||
const turret = Duel.use((state) => state.protagonist.turret);
|
const turret = Duel.use((state) => state.protagonist.turret);
|
||||||
const gun = Duel.use((state) => state.protagonist.gun);
|
const gun = Duel.use((state) => state.protagonist.gun);
|
||||||
const modelRequested = Tankopedia.use((state) => state.modelRequested);
|
|
||||||
|
|
||||||
const tankModel = modelDefinition.models[tank.id];
|
const tankModel = modelDefinition.models[tank.id];
|
||||||
const turretModel = tankModel.turrets[turret.id];
|
const turretModel = tankModel.turrets[turret.id];
|
||||||
const gunModel = turretModel.guns[gun.id];
|
const gunModel = turretModel.guns[gun.id];
|
||||||
|
|
||||||
// turret's own baked-in mount tilt (e.g. Minotauro's turret sits pitched
|
|
||||||
// 3deg forward on the hull); must be folded into displayed pitch values
|
|
||||||
// the same way tankCharacteristics.ts and QuickInputs do
|
|
||||||
const initialTurretPitch = degToRad(
|
|
||||||
tankModel.initial_turret_rotation?.pitch ?? 0,
|
|
||||||
);
|
|
||||||
|
|
||||||
// radial map is in the tilt-compensated frame so the neutrality circle sits
|
|
||||||
// at the displayed 0deg
|
|
||||||
const tiltDeg = radToDeg(initialTurretPitch);
|
|
||||||
const magTilted = (deg: number) => mag(deg + tiltDeg);
|
|
||||||
|
|
||||||
const [yaw, setYaw] = useState(0);
|
const [yaw, setYaw] = useState(0);
|
||||||
const [pitch, setPitch] = useState(0);
|
const [pitch, setPitch] = useState(0);
|
||||||
const [minPitch, setMinPitch] = useState(
|
const [minPitch, setMinPitch] = useState(
|
||||||
-degToRad(gunModel.pitch!.front?.max ?? gunModel.pitch!.max) -
|
-degToRad(gunModel.pitch!.front?.max ?? gunModel.pitch!.max),
|
||||||
initialTurretPitch,
|
|
||||||
);
|
);
|
||||||
const [maxPitch, setMaxPitch] = useState(
|
const [maxPitch, setMaxPitch] = useState(
|
||||||
-degToRad(gunModel.pitch!.front?.min ?? gunModel.pitch!.min) -
|
-degToRad(gunModel.pitch!.front?.min ?? gunModel.pitch!.min),
|
||||||
initialTurretPitch,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const container = useRef<HTMLDivElement>(null);
|
const container = useRef<HTMLDivElement>(null);
|
||||||
@@ -86,7 +70,7 @@ export function GunFlexibilityVisualizer({
|
|||||||
let d = "";
|
let d = "";
|
||||||
|
|
||||||
// right
|
// right
|
||||||
const mo = magTilted(p.max);
|
const mo = mag(p.max);
|
||||||
if (y) {
|
if (y) {
|
||||||
d += `M 0 0`;
|
d += `M 0 0`;
|
||||||
d += `L ${c(90 - y.max, mo)}`;
|
d += `L ${c(90 - y.max, mo)}`;
|
||||||
@@ -103,7 +87,7 @@ export function GunFlexibilityVisualizer({
|
|||||||
|
|
||||||
// front
|
// front
|
||||||
if (f) {
|
if (f) {
|
||||||
const m = magTilted(f.max);
|
const m = mag(f.max);
|
||||||
d += `L ${c(90 - f.range / 2, m)}`;
|
d += `L ${c(90 - f.range / 2, m)}`;
|
||||||
d += `A ${m} ${m} 0 0 0 ${c(90 + f.range / 2, m)}`;
|
d += `A ${m} ${m} 0 0 0 ${c(90 + f.range / 2, m)}`;
|
||||||
}
|
}
|
||||||
@@ -124,7 +108,7 @@ export function GunFlexibilityVisualizer({
|
|||||||
|
|
||||||
// back
|
// back
|
||||||
if (!y && b) {
|
if (!y && b) {
|
||||||
const m = magTilted(b.max);
|
const m = mag(b.max);
|
||||||
d += `L ${c(-90 - b.range / 2, m)}`;
|
d += `L ${c(-90 - b.range / 2, m)}`;
|
||||||
d += `A ${m} ${m} 0 0 0 ${c(-90 + b.range / 2, m)}`;
|
d += `A ${m} ${m} 0 0 0 ${c(-90 + b.range / 2, m)}`;
|
||||||
}
|
}
|
||||||
@@ -132,7 +116,7 @@ export function GunFlexibilityVisualizer({
|
|||||||
d += `Z`;
|
d += `Z`;
|
||||||
|
|
||||||
// right
|
// right
|
||||||
const mi = magTilted(p.min);
|
const mi = mag(p.min);
|
||||||
if (y) {
|
if (y) {
|
||||||
d += `M 0 0`;
|
d += `M 0 0`;
|
||||||
d += `L ${c(90 - y.max, mi)}`;
|
d += `L ${c(90 - y.max, mi)}`;
|
||||||
@@ -149,7 +133,7 @@ export function GunFlexibilityVisualizer({
|
|||||||
|
|
||||||
// front
|
// front
|
||||||
if (f) {
|
if (f) {
|
||||||
const m = magTilted(f.min);
|
const m = mag(f.min);
|
||||||
d += `L ${c(90 - f.range / 2, m)}`;
|
d += `L ${c(90 - f.range / 2, m)}`;
|
||||||
d += `A ${m} ${m} 0 0 0 ${c(90 + f.range / 2, m)}`;
|
d += `A ${m} ${m} 0 0 0 ${c(90 + f.range / 2, m)}`;
|
||||||
}
|
}
|
||||||
@@ -170,14 +154,14 @@ export function GunFlexibilityVisualizer({
|
|||||||
|
|
||||||
// back
|
// back
|
||||||
if (!y && b) {
|
if (!y && b) {
|
||||||
const m = magTilted(b.min);
|
const m = mag(b.min);
|
||||||
d += `L ${c(-90 - b.range / 2, m)}`;
|
d += `L ${c(-90 - b.range / 2, m)}`;
|
||||||
d += `A ${m} ${m} 0 0 0 ${c(-90 + b.range / 2, m)}`;
|
d += `A ${m} ${m} 0 0 0 ${c(-90 + b.range / 2, m)}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
d += `Z`;
|
d += `Z`;
|
||||||
|
|
||||||
const r = mag(radToDeg(-(pitch - initialTurretPitch)));
|
const r = mag(radToDeg(-pitch));
|
||||||
const dotX = r * Math.sin(yaw);
|
const dotX = r * Math.sin(yaw);
|
||||||
const dotY = r * Math.cos(yaw);
|
const dotY = r * Math.cos(yaw);
|
||||||
|
|
||||||
@@ -195,7 +179,7 @@ export function GunFlexibilityVisualizer({
|
|||||||
top="0"
|
top="0"
|
||||||
left="0"
|
left="0"
|
||||||
>
|
>
|
||||||
{!skeleton && modelRequested && <FlexibilityCanvas />}
|
{!skeleton && <FlexibilityCanvas />}
|
||||||
|
|
||||||
<Box
|
<Box
|
||||||
position="absolute"
|
position="absolute"
|
||||||
@@ -267,13 +251,13 @@ export function GunFlexibilityVisualizer({
|
|||||||
yaw = min[1];
|
yaw = min[1];
|
||||||
let t = 2 * Math.sqrt((u / rect.width) ** 2 + (v / rect.height) ** 2);
|
let t = 2 * Math.sqrt((u / rect.width) ** 2 + (v / rect.height) ** 2);
|
||||||
t = clamp(t, 0, 1);
|
t = clamp(t, 0, 1);
|
||||||
let pitch = degToRad(magInverse(-t)) + initialTurretPitch;
|
let pitch = degToRad(magInverse(-t));
|
||||||
pitch = clamp(pitch, min[0], max[0]);
|
pitch = clamp(pitch, min[0], max[0]);
|
||||||
|
|
||||||
setPitch(pitch);
|
setPitch(pitch);
|
||||||
setYaw(yaw);
|
setYaw(yaw);
|
||||||
setMinPitch(min[0] - initialTurretPitch);
|
setMinPitch(min[0]);
|
||||||
setMaxPitch(max[0] - initialTurretPitch);
|
setMaxPitch(max[0]);
|
||||||
|
|
||||||
modelTransformEvent.dispatch({ pitch, yaw });
|
modelTransformEvent.dispatch({ pitch, yaw });
|
||||||
}}
|
}}
|
||||||
@@ -392,7 +376,7 @@ export function GunFlexibilityVisualizer({
|
|||||||
<VisualizerCornerStat
|
<VisualizerCornerStat
|
||||||
label={strings.website.tools.tankopedia.visualizers.flexibility.pitch}
|
label={strings.website.tools.tankopedia.visualizers.flexibility.pitch}
|
||||||
value={literals(strings.common.units.deg, {
|
value={literals(strings.common.units.deg, {
|
||||||
value: radToDeg(pitch - initialTurretPitch).toFixed(0),
|
value: radToDeg(pitch).toFixed(0),
|
||||||
})}
|
})}
|
||||||
side="top-left"
|
side="top-left"
|
||||||
/>
|
/>
|
||||||
|
|||||||
+7
-7
@@ -11,7 +11,7 @@ import { Shell } from './components/Shell';
|
|||||||
import { Target } from './components/Target';
|
import { Target } from './components/Target';
|
||||||
import './index.css';
|
import './index.css';
|
||||||
|
|
||||||
export const RELOAD_PRECISION = 1;
|
const PRECISION = 2;
|
||||||
|
|
||||||
export interface ReloadUpdateData {
|
export interface ReloadUpdateData {
|
||||||
reload: number;
|
reload: number;
|
||||||
@@ -82,9 +82,9 @@ export function ReloadVisualizer({ stats }: StatsAcceptorProps) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
totalTime.current.innerHTML = shellReload.toFixed(RELOAD_PRECISION);
|
totalTime.current.innerHTML = shellReload.toFixed(PRECISION);
|
||||||
progressTime.current.innerHTML = ((1 - reload) * shellReload).toFixed(
|
progressTime.current.innerHTML = ((1 - reload) * shellReload).toFixed(
|
||||||
RELOAD_PRECISION,
|
PRECISION,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (state.current >= reloadThreshold) shoot();
|
if (state.current >= reloadThreshold) shoot();
|
||||||
@@ -117,9 +117,9 @@ export function ReloadVisualizer({ stats }: StatsAcceptorProps) {
|
|||||||
shells = times(stats.shells, (index) => index > state.current - 1);
|
shells = times(stats.shells, (index) => index > state.current - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
totalTime.current.innerHTML = interval.toFixed(RELOAD_PRECISION);
|
totalTime.current.innerHTML = interval.toFixed(PRECISION);
|
||||||
progressTime.current.innerHTML = ((1 - reload) * interval).toFixed(
|
progressTime.current.innerHTML = ((1 - reload) * interval).toFixed(
|
||||||
RELOAD_PRECISION,
|
PRECISION,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (lastState % 1 > state.current % 1) shoot();
|
if (lastState % 1 > state.current % 1) shoot();
|
||||||
@@ -262,7 +262,7 @@ export function ReloadVisualizer({ stats }: StatsAcceptorProps) {
|
|||||||
transform: 'translate(50%, -50%)',
|
transform: 'translate(50%, -50%)',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{(0).toFixed(RELOAD_PRECISION)}
|
0.00
|
||||||
</Code>
|
</Code>
|
||||||
<Code
|
<Code
|
||||||
ref={totalTime}
|
ref={totalTime}
|
||||||
@@ -277,7 +277,7 @@ export function ReloadVisualizer({ stats }: StatsAcceptorProps) {
|
|||||||
transform: 'translate(-50%, -50%)',
|
transform: 'translate(-50%, -50%)',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{(0).toFixed(RELOAD_PRECISION)}
|
0.00
|
||||||
</Code>
|
</Code>
|
||||||
|
|
||||||
{stats.shells > 1 &&
|
{stats.shells > 1 &&
|
||||||
|
|||||||
Loaded 100 of 138 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user