first commit
This commit is contained in:
commit
1ff1774b1c
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "wit/repo"]
|
||||
path = wit/repo
|
||||
url = https://github.com/Pumpkin-MC/Pumpkin.git
|
||||
677
LICENSE
Normal file
677
LICENSE
Normal file
@ -0,0 +1,677 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is 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. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
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.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
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 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 international 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 modifying 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 the
|
||||
Corresponding Source is located. 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 if 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 surcharge for exercising rights granted under this
|
||||
License, and you may not impose any (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 any recipient 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. Use with the GNU Affero General Public License.
|
||||
|
||||
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 Affero 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 special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU 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 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 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 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 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 General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
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 GPL, see
|
||||
<http://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
||||
8
NuGet.Config
Normal file
8
NuGet.Config
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<packageSources>
|
||||
<clear />
|
||||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
|
||||
<add key="dotnet-experimental" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-experimental/nuget/v3/index.json" />
|
||||
</packageSources>
|
||||
</configuration>
|
||||
27
PumpkinApi.csproj
Normal file
27
PumpkinApi.csproj
Normal file
@ -0,0 +1,27 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<LangVersion>12.0</LangVersion>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<!-- Hide wit-bindgen warnings if any -->
|
||||
<NoWarn>$(NoWarn);CS0169;CS0649;CS8618</NoWarn>
|
||||
|
||||
<!-- NuGet Package Metadata -->
|
||||
<PackageId>PumpkinMC.PumpkinApi</PackageId>
|
||||
<Version>0.1.0-dev</Version>
|
||||
<Authors>PumpkinMC Contributors</Authors>
|
||||
<Description>Pumpkin server plugin API bindings for C# (.NET)</Description>
|
||||
<RepositoryUrl>https://github.com/Pumpkin-MC/pumpkin-api-cs</RepositoryUrl>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<PackageLicenseExpression>GPL-3.0-or-later</PackageLicenseExpression>
|
||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="README.md" Pack="true" PackagePath="\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
88
README.md
Normal file
88
README.md
Normal file
@ -0,0 +1,88 @@
|
||||
# Pumpkin Plugin API for C# (.NET)
|
||||
|
||||
This package provides everything needed to write a Pumpkin server plugin compiled to WebAssembly using C# (.NET 10+).
|
||||
|
||||
## Quick start
|
||||
|
||||
1. Create a new C# Class Library project for your plugin:
|
||||
```bash
|
||||
dotnet new classlib -n MyPumpkinPlugin
|
||||
cd MyPumpkinPlugin
|
||||
```
|
||||
|
||||
2. Add a `NuGet.Config` to your project to include the .NET experimental feed:
|
||||
```xml
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<packageSources>
|
||||
<add key="dotnet-experimental" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-experimental/nuget/v3/index.json" />
|
||||
</packageSources>
|
||||
</configuration>
|
||||
```
|
||||
|
||||
3. Add the required packages:
|
||||
```bash
|
||||
dotnet add package PumpkinMC.PumpkinApi
|
||||
dotnet add package ByteCodeAlliance.Componentize.DotNet.Wasm.SDK --prerelease
|
||||
```
|
||||
|
||||
4. Configure your `.csproj` to target `wasi-wasm`:
|
||||
```xml
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<RuntimeIdentifier>wasi-wasm</RuntimeIdentifier>
|
||||
</PropertyGroup>
|
||||
```
|
||||
|
||||
5. Implement your plugin by implementing the interfaces from the package (e.g., `PluginWorld.IPluginWorldExports` and `PluginWorld.wit.Exports.pumpkin.plugin.v0_1_0.IMetadataExports`).
|
||||
|
||||
```csharp
|
||||
using PluginWorld;
|
||||
using PluginWorld.wit.Exports.pumpkin.plugin.v0_1_0;
|
||||
using PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0;
|
||||
|
||||
namespace MyPumpkinPlugin;
|
||||
|
||||
public class MyPlugin : IPluginWorldExports, IMetadataExports
|
||||
{
|
||||
public static void InitPlugin() { }
|
||||
|
||||
public static void OnLoad(IContextImports.Context context)
|
||||
{
|
||||
ILoggingImports.Log(ILoggingImports.Level.Info, "C# plugin loaded!");
|
||||
}
|
||||
|
||||
public static void OnUnload(IContextImports.Context context) { }
|
||||
|
||||
public static IEventImports.Event HandleEvent(uint eventId, IServerImports.Server server, IEventImports.Event @event)
|
||||
{
|
||||
return @event;
|
||||
}
|
||||
|
||||
public static int HandleCommand(uint commandId, ICommandImports.CommandSender sender, IServerImports.Server server, ICommandImports.ConsumedArgs args)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static void HandleTask(uint handlerId, IServerImports.Server server) { }
|
||||
|
||||
public static IMetadataExports.PluginMetadata Metadata()
|
||||
{
|
||||
return new IMetadataExports.PluginMetadata(
|
||||
"my-csharp-plugin",
|
||||
"0.1.0",
|
||||
"An example C# plugin.",
|
||||
["you"],
|
||||
[]
|
||||
);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
5. Build your plugin into a WebAssembly component:
|
||||
|
||||
```bash
|
||||
dotnet build -c Release
|
||||
```
|
||||
|
||||
The output will contain a `.wasm` file that you can use in your Pumpkin server.
|
||||
BIN
bin/Release/PumpkinMC.PumpkinApi.0.1.0-dev.nupkg
Normal file
BIN
bin/Release/PumpkinMC.PumpkinApi.0.1.0-dev.nupkg
Normal file
Binary file not shown.
23
bin/Release/net10.0/PumpkinApi.deps.json
Normal file
23
bin/Release/net10.0/PumpkinApi.deps.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v10.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v10.0": {
|
||||
"PumpkinApi/0.1.0-dev": {
|
||||
"runtime": {
|
||||
"PumpkinApi.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"PumpkinApi/0.1.0-dev": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
bin/Release/net10.0/PumpkinApi.dll
Normal file
BIN
bin/Release/net10.0/PumpkinApi.dll
Normal file
Binary file not shown.
BIN
bin/Release/net10.0/PumpkinApi.pdb
Normal file
BIN
bin/Release/net10.0/PumpkinApi.pdb
Normal file
Binary file not shown.
10
generate.sh
Executable file
10
generate.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Ensure the submodule is initialized
|
||||
git submodule update --init
|
||||
|
||||
# Generate the C# bindings
|
||||
mkdir -p src/gen
|
||||
wit-bindgen csharp --runtime native-aot --out-dir src/gen -w plugin wit/repo/pumpkin-plugin-wit/v0.1
|
||||
|
||||
echo "Bindings generated successfully in src/gen/"
|
||||
349
obj/PumpkinApi.csproj.nuget.dgspec.json
Normal file
349
obj/PumpkinApi.csproj.nuget.dgspec.json
Normal file
@ -0,0 +1,349 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"/home/alex/Documents/Development/Rust/pumpkin-api-cs/PumpkinApi.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"/home/alex/Documents/Development/Rust/pumpkin-api-cs/PumpkinApi.csproj": {
|
||||
"version": "0.1.0-dev",
|
||||
"restore": {
|
||||
"projectUniqueName": "/home/alex/Documents/Development/Rust/pumpkin-api-cs/PumpkinApi.csproj",
|
||||
"projectName": "PumpkinMC.PumpkinApi",
|
||||
"projectPath": "/home/alex/Documents/Development/Rust/pumpkin-api-cs/PumpkinApi.csproj",
|
||||
"packagesPath": "/home/alex/.nuget/packages/",
|
||||
"outputPath": "/home/alex/Documents/Development/Rust/pumpkin-api-cs/obj/",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"/home/alex/Documents/Development/Rust/pumpkin-api-cs/NuGet.Config",
|
||||
"/home/alex/.nuget/NuGet/NuGet.Config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net10.0"
|
||||
],
|
||||
"sources": {
|
||||
"https://api.nuget.org/v3/index.json": {},
|
||||
"https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-experimental/nuget/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net10.0": {
|
||||
"targetAlias": "net10.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "all"
|
||||
},
|
||||
"SdkAnalysisLevel": "10.0.100"
|
||||
},
|
||||
"frameworks": {
|
||||
"net10.0": {
|
||||
"targetAlias": "net10.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"downloadDependencies": [
|
||||
{
|
||||
"name": "Microsoft.AspNetCore.App.Ref",
|
||||
"version": "[10.0.4, 10.0.4]"
|
||||
}
|
||||
],
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/10.0.104/PortableRuntimeIdentifierGraph.json",
|
||||
"packagesToPrune": {
|
||||
"Microsoft.CSharp": "(,4.7.32767]",
|
||||
"Microsoft.VisualBasic": "(,10.4.32767]",
|
||||
"Microsoft.Win32.Primitives": "(,4.3.32767]",
|
||||
"Microsoft.Win32.Registry": "(,5.0.32767]",
|
||||
"runtime.any.System.Collections": "(,4.3.32767]",
|
||||
"runtime.any.System.Diagnostics.Tools": "(,4.3.32767]",
|
||||
"runtime.any.System.Diagnostics.Tracing": "(,4.3.32767]",
|
||||
"runtime.any.System.Globalization": "(,4.3.32767]",
|
||||
"runtime.any.System.Globalization.Calendars": "(,4.3.32767]",
|
||||
"runtime.any.System.IO": "(,4.3.32767]",
|
||||
"runtime.any.System.Reflection": "(,4.3.32767]",
|
||||
"runtime.any.System.Reflection.Extensions": "(,4.3.32767]",
|
||||
"runtime.any.System.Reflection.Primitives": "(,4.3.32767]",
|
||||
"runtime.any.System.Resources.ResourceManager": "(,4.3.32767]",
|
||||
"runtime.any.System.Runtime": "(,4.3.32767]",
|
||||
"runtime.any.System.Runtime.Handles": "(,4.3.32767]",
|
||||
"runtime.any.System.Runtime.InteropServices": "(,4.3.32767]",
|
||||
"runtime.any.System.Text.Encoding": "(,4.3.32767]",
|
||||
"runtime.any.System.Text.Encoding.Extensions": "(,4.3.32767]",
|
||||
"runtime.any.System.Threading.Tasks": "(,4.3.32767]",
|
||||
"runtime.any.System.Threading.Timer": "(,4.3.32767]",
|
||||
"runtime.aot.System.Collections": "(,4.3.32767]",
|
||||
"runtime.aot.System.Diagnostics.Tools": "(,4.3.32767]",
|
||||
"runtime.aot.System.Diagnostics.Tracing": "(,4.3.32767]",
|
||||
"runtime.aot.System.Globalization": "(,4.3.32767]",
|
||||
"runtime.aot.System.Globalization.Calendars": "(,4.3.32767]",
|
||||
"runtime.aot.System.IO": "(,4.3.32767]",
|
||||
"runtime.aot.System.Reflection": "(,4.3.32767]",
|
||||
"runtime.aot.System.Reflection.Extensions": "(,4.3.32767]",
|
||||
"runtime.aot.System.Reflection.Primitives": "(,4.3.32767]",
|
||||
"runtime.aot.System.Resources.ResourceManager": "(,4.3.32767]",
|
||||
"runtime.aot.System.Runtime": "(,4.3.32767]",
|
||||
"runtime.aot.System.Runtime.Handles": "(,4.3.32767]",
|
||||
"runtime.aot.System.Runtime.InteropServices": "(,4.3.32767]",
|
||||
"runtime.aot.System.Text.Encoding": "(,4.3.32767]",
|
||||
"runtime.aot.System.Text.Encoding.Extensions": "(,4.3.32767]",
|
||||
"runtime.aot.System.Threading.Tasks": "(,4.3.32767]",
|
||||
"runtime.aot.System.Threading.Timer": "(,4.3.32767]",
|
||||
"runtime.debian.8-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.debian.8-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.debian.8-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.debian.8-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.debian.8-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
|
||||
"runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
|
||||
"runtime.debian.9-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.debian.9-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.debian.9-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.debian.9-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.fedora.23-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.fedora.23-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.fedora.23-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.fedora.23-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.fedora.23-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
|
||||
"runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
|
||||
"runtime.fedora.24-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.fedora.24-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.fedora.24-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.fedora.24-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.fedora.24-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
|
||||
"runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
|
||||
"runtime.fedora.27-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.fedora.27-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.fedora.27-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.fedora.27-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.fedora.28-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.fedora.28-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.fedora.28-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.fedora.28-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.opensuse.13.2-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.opensuse.13.2-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.opensuse.13.2-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.opensuse.13.2-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
|
||||
"runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
|
||||
"runtime.opensuse.42.1-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.opensuse.42.1-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.opensuse.42.1-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.opensuse.42.1-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
|
||||
"runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
|
||||
"runtime.opensuse.42.3-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.opensuse.42.3-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.opensuse.42.3-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.opensuse.42.3-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.osx.10.10-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.osx.10.10-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.osx.10.10-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.osx.10.10-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
|
||||
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "(,4.3.32767]",
|
||||
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
|
||||
"runtime.rhel.7-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.rhel.7-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.rhel.7-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.rhel.7-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.rhel.7-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
|
||||
"runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
|
||||
"runtime.ubuntu.14.04-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.ubuntu.14.04-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.ubuntu.14.04-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.ubuntu.14.04-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
|
||||
"runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
|
||||
"runtime.ubuntu.16.04-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.ubuntu.16.04-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.ubuntu.16.04-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.ubuntu.16.04-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
|
||||
"runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
|
||||
"runtime.ubuntu.16.10-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.ubuntu.16.10-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.ubuntu.16.10-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.ubuntu.16.10-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
|
||||
"runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
|
||||
"runtime.ubuntu.18.04-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.ubuntu.18.04-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.ubuntu.18.04-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.ubuntu.18.04-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.unix.Microsoft.Win32.Primitives": "(,4.3.32767]",
|
||||
"runtime.unix.System.Console": "(,4.3.32767]",
|
||||
"runtime.unix.System.Diagnostics.Debug": "(,4.3.32767]",
|
||||
"runtime.unix.System.IO.FileSystem": "(,4.3.32767]",
|
||||
"runtime.unix.System.Net.Primitives": "(,4.3.32767]",
|
||||
"runtime.unix.System.Net.Sockets": "(,4.3.32767]",
|
||||
"runtime.unix.System.Private.Uri": "(,4.3.32767]",
|
||||
"runtime.unix.System.Runtime.Extensions": "(,4.3.32767]",
|
||||
"runtime.win.Microsoft.Win32.Primitives": "(,4.3.32767]",
|
||||
"runtime.win.System.Console": "(,4.3.32767]",
|
||||
"runtime.win.System.Diagnostics.Debug": "(,4.3.32767]",
|
||||
"runtime.win.System.IO.FileSystem": "(,4.3.32767]",
|
||||
"runtime.win.System.Net.Primitives": "(,4.3.32767]",
|
||||
"runtime.win.System.Net.Sockets": "(,4.3.32767]",
|
||||
"runtime.win.System.Runtime.Extensions": "(,4.3.32767]",
|
||||
"runtime.win10-arm-aot.runtime.native.System.IO.Compression": "(,4.0.32767]",
|
||||
"runtime.win10-arm64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.win10-x64-aot.runtime.native.System.IO.Compression": "(,4.0.32767]",
|
||||
"runtime.win10-x86-aot.runtime.native.System.IO.Compression": "(,4.0.32767]",
|
||||
"runtime.win7-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.win7-x86.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.win7.System.Private.Uri": "(,4.3.32767]",
|
||||
"runtime.win8-arm.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"System.AppContext": "(,4.3.32767]",
|
||||
"System.Buffers": "(,5.0.32767]",
|
||||
"System.Collections": "(,4.3.32767]",
|
||||
"System.Collections.Concurrent": "(,4.3.32767]",
|
||||
"System.Collections.Immutable": "(,10.0.32767]",
|
||||
"System.Collections.NonGeneric": "(,4.3.32767]",
|
||||
"System.Collections.Specialized": "(,4.3.32767]",
|
||||
"System.ComponentModel": "(,4.3.32767]",
|
||||
"System.ComponentModel.Annotations": "(,4.3.32767]",
|
||||
"System.ComponentModel.EventBasedAsync": "(,4.3.32767]",
|
||||
"System.ComponentModel.Primitives": "(,4.3.32767]",
|
||||
"System.ComponentModel.TypeConverter": "(,4.3.32767]",
|
||||
"System.Console": "(,4.3.32767]",
|
||||
"System.Data.Common": "(,4.3.32767]",
|
||||
"System.Data.DataSetExtensions": "(,4.4.32767]",
|
||||
"System.Diagnostics.Contracts": "(,4.3.32767]",
|
||||
"System.Diagnostics.Debug": "(,4.3.32767]",
|
||||
"System.Diagnostics.DiagnosticSource": "(,10.0.32767]",
|
||||
"System.Diagnostics.FileVersionInfo": "(,4.3.32767]",
|
||||
"System.Diagnostics.Process": "(,4.3.32767]",
|
||||
"System.Diagnostics.StackTrace": "(,4.3.32767]",
|
||||
"System.Diagnostics.TextWriterTraceListener": "(,4.3.32767]",
|
||||
"System.Diagnostics.Tools": "(,4.3.32767]",
|
||||
"System.Diagnostics.TraceSource": "(,4.3.32767]",
|
||||
"System.Diagnostics.Tracing": "(,4.3.32767]",
|
||||
"System.Drawing.Primitives": "(,4.3.32767]",
|
||||
"System.Dynamic.Runtime": "(,4.3.32767]",
|
||||
"System.Formats.Asn1": "(,10.0.32767]",
|
||||
"System.Formats.Tar": "(,10.0.32767]",
|
||||
"System.Globalization": "(,4.3.32767]",
|
||||
"System.Globalization.Calendars": "(,4.3.32767]",
|
||||
"System.Globalization.Extensions": "(,4.3.32767]",
|
||||
"System.IO": "(,4.3.32767]",
|
||||
"System.IO.Compression": "(,4.3.32767]",
|
||||
"System.IO.Compression.ZipFile": "(,4.3.32767]",
|
||||
"System.IO.FileSystem": "(,4.3.32767]",
|
||||
"System.IO.FileSystem.AccessControl": "(,4.4.32767]",
|
||||
"System.IO.FileSystem.DriveInfo": "(,4.3.32767]",
|
||||
"System.IO.FileSystem.Primitives": "(,4.3.32767]",
|
||||
"System.IO.FileSystem.Watcher": "(,4.3.32767]",
|
||||
"System.IO.IsolatedStorage": "(,4.3.32767]",
|
||||
"System.IO.MemoryMappedFiles": "(,4.3.32767]",
|
||||
"System.IO.Pipelines": "(,10.0.32767]",
|
||||
"System.IO.Pipes": "(,4.3.32767]",
|
||||
"System.IO.Pipes.AccessControl": "(,5.0.32767]",
|
||||
"System.IO.UnmanagedMemoryStream": "(,4.3.32767]",
|
||||
"System.Linq": "(,4.3.32767]",
|
||||
"System.Linq.AsyncEnumerable": "(,10.0.32767]",
|
||||
"System.Linq.Expressions": "(,4.3.32767]",
|
||||
"System.Linq.Parallel": "(,4.3.32767]",
|
||||
"System.Linq.Queryable": "(,4.3.32767]",
|
||||
"System.Memory": "(,5.0.32767]",
|
||||
"System.Net.Http": "(,4.3.32767]",
|
||||
"System.Net.Http.Json": "(,10.0.32767]",
|
||||
"System.Net.NameResolution": "(,4.3.32767]",
|
||||
"System.Net.NetworkInformation": "(,4.3.32767]",
|
||||
"System.Net.Ping": "(,4.3.32767]",
|
||||
"System.Net.Primitives": "(,4.3.32767]",
|
||||
"System.Net.Requests": "(,4.3.32767]",
|
||||
"System.Net.Security": "(,4.3.32767]",
|
||||
"System.Net.ServerSentEvents": "(,10.0.32767]",
|
||||
"System.Net.Sockets": "(,4.3.32767]",
|
||||
"System.Net.WebHeaderCollection": "(,4.3.32767]",
|
||||
"System.Net.WebSockets": "(,4.3.32767]",
|
||||
"System.Net.WebSockets.Client": "(,4.3.32767]",
|
||||
"System.Numerics.Vectors": "(,5.0.32767]",
|
||||
"System.ObjectModel": "(,4.3.32767]",
|
||||
"System.Private.DataContractSerialization": "(,4.3.32767]",
|
||||
"System.Private.Uri": "(,4.3.32767]",
|
||||
"System.Reflection": "(,4.3.32767]",
|
||||
"System.Reflection.DispatchProxy": "(,6.0.32767]",
|
||||
"System.Reflection.Emit": "(,4.7.32767]",
|
||||
"System.Reflection.Emit.ILGeneration": "(,4.7.32767]",
|
||||
"System.Reflection.Emit.Lightweight": "(,4.7.32767]",
|
||||
"System.Reflection.Extensions": "(,4.3.32767]",
|
||||
"System.Reflection.Metadata": "(,10.0.32767]",
|
||||
"System.Reflection.Primitives": "(,4.3.32767]",
|
||||
"System.Reflection.TypeExtensions": "(,4.3.32767]",
|
||||
"System.Resources.Reader": "(,4.3.32767]",
|
||||
"System.Resources.ResourceManager": "(,4.3.32767]",
|
||||
"System.Resources.Writer": "(,4.3.32767]",
|
||||
"System.Runtime": "(,4.3.32767]",
|
||||
"System.Runtime.CompilerServices.Unsafe": "(,7.0.32767]",
|
||||
"System.Runtime.CompilerServices.VisualC": "(,4.3.32767]",
|
||||
"System.Runtime.Extensions": "(,4.3.32767]",
|
||||
"System.Runtime.Handles": "(,4.3.32767]",
|
||||
"System.Runtime.InteropServices": "(,4.3.32767]",
|
||||
"System.Runtime.InteropServices.RuntimeInformation": "(,4.3.32767]",
|
||||
"System.Runtime.Loader": "(,4.3.32767]",
|
||||
"System.Runtime.Numerics": "(,4.3.32767]",
|
||||
"System.Runtime.Serialization.Formatters": "(,4.3.32767]",
|
||||
"System.Runtime.Serialization.Json": "(,4.3.32767]",
|
||||
"System.Runtime.Serialization.Primitives": "(,4.3.32767]",
|
||||
"System.Runtime.Serialization.Xml": "(,4.3.32767]",
|
||||
"System.Security.AccessControl": "(,6.0.32767]",
|
||||
"System.Security.Claims": "(,4.3.32767]",
|
||||
"System.Security.Cryptography.Algorithms": "(,4.3.32767]",
|
||||
"System.Security.Cryptography.Cng": "(,5.0.32767]",
|
||||
"System.Security.Cryptography.Csp": "(,4.3.32767]",
|
||||
"System.Security.Cryptography.Encoding": "(,4.3.32767]",
|
||||
"System.Security.Cryptography.OpenSsl": "(,5.0.32767]",
|
||||
"System.Security.Cryptography.Primitives": "(,4.3.32767]",
|
||||
"System.Security.Cryptography.X509Certificates": "(,4.3.32767]",
|
||||
"System.Security.Principal": "(,4.3.32767]",
|
||||
"System.Security.Principal.Windows": "(,5.0.32767]",
|
||||
"System.Security.SecureString": "(,4.3.32767]",
|
||||
"System.Text.Encoding": "(,4.3.32767]",
|
||||
"System.Text.Encoding.CodePages": "(,10.0.32767]",
|
||||
"System.Text.Encoding.Extensions": "(,4.3.32767]",
|
||||
"System.Text.Encodings.Web": "(,10.0.32767]",
|
||||
"System.Text.Json": "(,10.0.32767]",
|
||||
"System.Text.RegularExpressions": "(,4.3.32767]",
|
||||
"System.Threading": "(,4.3.32767]",
|
||||
"System.Threading.AccessControl": "(,10.0.32767]",
|
||||
"System.Threading.Channels": "(,10.0.32767]",
|
||||
"System.Threading.Overlapped": "(,4.3.32767]",
|
||||
"System.Threading.Tasks": "(,4.3.32767]",
|
||||
"System.Threading.Tasks.Dataflow": "(,10.0.32767]",
|
||||
"System.Threading.Tasks.Extensions": "(,5.0.32767]",
|
||||
"System.Threading.Tasks.Parallel": "(,4.3.32767]",
|
||||
"System.Threading.Thread": "(,4.3.32767]",
|
||||
"System.Threading.ThreadPool": "(,4.3.32767]",
|
||||
"System.Threading.Timer": "(,4.3.32767]",
|
||||
"System.ValueTuple": "(,4.5.32767]",
|
||||
"System.Xml.ReaderWriter": "(,4.3.32767]",
|
||||
"System.Xml.XDocument": "(,4.3.32767]",
|
||||
"System.Xml.XmlDocument": "(,4.3.32767]",
|
||||
"System.Xml.XmlSerializer": "(,4.3.32767]",
|
||||
"System.Xml.XPath": "(,4.3.32767]",
|
||||
"System.Xml.XPath.XDocument": "(,5.0.32767]"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
15
obj/PumpkinApi.csproj.nuget.g.props
Normal file
15
obj/PumpkinApi.csproj.nuget.g.props
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/alex/.nuget/packages/</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/alex/.nuget/packages/</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">7.0.0</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="/home/alex/.nuget/packages/" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
2
obj/PumpkinApi.csproj.nuget.g.targets
Normal file
2
obj/PumpkinApi.csproj.nuget.g.targets
Normal file
@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
||||
20
obj/Release/PumpkinMC.PumpkinApi.0.1.0-dev.nuspec
Normal file
20
obj/Release/PumpkinMC.PumpkinApi.0.1.0-dev.nuspec
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>PumpkinMC.PumpkinApi</id>
|
||||
<version>0.1.0-dev</version>
|
||||
<authors>PumpkinMC Contributors</authors>
|
||||
<license type="expression">GPL-3.0-or-later</license>
|
||||
<licenseUrl>https://licenses.nuget.org/GPL-3.0-or-later</licenseUrl>
|
||||
<readme>README.md</readme>
|
||||
<description>Pumpkin server plugin API bindings for C# (.NET)</description>
|
||||
<repository type="git" url="https://github.com/Pumpkin-MC/pumpkin-api-cs" />
|
||||
<dependencies>
|
||||
<group targetFramework="net10.0" />
|
||||
</dependencies>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="/home/alex/Documents/Development/Rust/pumpkin-api-cs/bin/Release/net10.0/PumpkinApi.dll" target="lib/net10.0/PumpkinApi.dll" />
|
||||
<file src="/home/alex/Documents/Development/Rust/pumpkin-api-cs/README.md" target="/README.md" />
|
||||
</files>
|
||||
</package>
|
||||
@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v10.0", FrameworkDisplayName = ".NET 10.0")]
|
||||
24
obj/Release/net10.0/PumpkinApi.AssemblyInfo.cs
Normal file
24
obj/Release/net10.0/PumpkinApi.AssemblyInfo.cs
Normal file
@ -0,0 +1,24 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("PumpkinMC Contributors")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
|
||||
[assembly: System.Reflection.AssemblyDescriptionAttribute("Pumpkin server plugin API bindings for C# (.NET)")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.1.0-dev")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("PumpkinApi")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("PumpkinApi")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")]
|
||||
[assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "https://github.com/Pumpkin-MC/pumpkin-api-cs")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
|
||||
1
obj/Release/net10.0/PumpkinApi.AssemblyInfoInputs.cache
Normal file
1
obj/Release/net10.0/PumpkinApi.AssemblyInfoInputs.cache
Normal file
@ -0,0 +1 @@
|
||||
200d64c1b82f7a6396630e55162364d9d715146da5ee00ace6806cd51a4441a9
|
||||
@ -0,0 +1,17 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net10.0
|
||||
build_property.TargetFrameworkIdentifier = .NETCoreApp
|
||||
build_property.TargetFrameworkVersion = v10.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = PumpkinApi
|
||||
build_property.ProjectDir = /home/alex/Documents/Development/Rust/pumpkin-api-cs/
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||
build_property.EffectiveAnalysisLevelStyle = 10.0
|
||||
build_property.EnableCodeStyleSeverity =
|
||||
8
obj/Release/net10.0/PumpkinApi.GlobalUsings.g.cs
Normal file
8
obj/Release/net10.0/PumpkinApi.GlobalUsings.g.cs
Normal file
@ -0,0 +1,8 @@
|
||||
// <auto-generated/>
|
||||
global using System;
|
||||
global using System.Collections.Generic;
|
||||
global using System.IO;
|
||||
global using System.Linq;
|
||||
global using System.Net.Http;
|
||||
global using System.Threading;
|
||||
global using System.Threading.Tasks;
|
||||
BIN
obj/Release/net10.0/PumpkinApi.assets.cache
Normal file
BIN
obj/Release/net10.0/PumpkinApi.assets.cache
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
||||
eabf36b0f657105612c32ab100916f90b2229089c54ecb8d86432c8011e96e8d
|
||||
12
obj/Release/net10.0/PumpkinApi.csproj.FileListAbsolute.txt
Normal file
12
obj/Release/net10.0/PumpkinApi.csproj.FileListAbsolute.txt
Normal file
@ -0,0 +1,12 @@
|
||||
/home/alex/Documents/Development/Rust/pumpkin-api-cs/bin/Release/net10.0/PumpkinApi.deps.json
|
||||
/home/alex/Documents/Development/Rust/pumpkin-api-cs/bin/Release/net10.0/PumpkinApi.dll
|
||||
/home/alex/Documents/Development/Rust/pumpkin-api-cs/bin/Release/net10.0/PumpkinApi.pdb
|
||||
/home/alex/Documents/Development/Rust/pumpkin-api-cs/obj/Release/net10.0/PumpkinApi.GeneratedMSBuildEditorConfig.editorconfig
|
||||
/home/alex/Documents/Development/Rust/pumpkin-api-cs/obj/Release/net10.0/PumpkinApi.AssemblyInfoInputs.cache
|
||||
/home/alex/Documents/Development/Rust/pumpkin-api-cs/obj/Release/net10.0/PumpkinApi.AssemblyInfo.cs
|
||||
/home/alex/Documents/Development/Rust/pumpkin-api-cs/obj/Release/net10.0/PumpkinApi.csproj.CoreCompileInputs.cache
|
||||
/home/alex/Documents/Development/Rust/pumpkin-api-cs/obj/Release/net10.0/PumpkinApi.sourcelink.json
|
||||
/home/alex/Documents/Development/Rust/pumpkin-api-cs/obj/Release/net10.0/PumpkinApi.dll
|
||||
/home/alex/Documents/Development/Rust/pumpkin-api-cs/obj/Release/net10.0/refint/PumpkinApi.dll
|
||||
/home/alex/Documents/Development/Rust/pumpkin-api-cs/obj/Release/net10.0/PumpkinApi.pdb
|
||||
/home/alex/Documents/Development/Rust/pumpkin-api-cs/obj/Release/net10.0/ref/PumpkinApi.dll
|
||||
BIN
obj/Release/net10.0/PumpkinApi.dll
Normal file
BIN
obj/Release/net10.0/PumpkinApi.dll
Normal file
Binary file not shown.
BIN
obj/Release/net10.0/PumpkinApi.pdb
Normal file
BIN
obj/Release/net10.0/PumpkinApi.pdb
Normal file
Binary file not shown.
1
obj/Release/net10.0/PumpkinApi.sourcelink.json
Normal file
1
obj/Release/net10.0/PumpkinApi.sourcelink.json
Normal file
@ -0,0 +1 @@
|
||||
{"documents":{"/home/alex/Documents/Development/Rust/pumpkin-api-cs/wit/repo/*":"https://raw.githubusercontent.com/Pumpkin-MC/Pumpkin/6f2c3cd5e37a3c39e1e5f27c1300d31bd97fe936/*"}}
|
||||
BIN
obj/Release/net10.0/ref/PumpkinApi.dll
Normal file
BIN
obj/Release/net10.0/ref/PumpkinApi.dll
Normal file
Binary file not shown.
BIN
obj/Release/net10.0/refint/PumpkinApi.dll
Normal file
BIN
obj/Release/net10.0/refint/PumpkinApi.dll
Normal file
Binary file not shown.
354
obj/project.assets.json
Normal file
354
obj/project.assets.json
Normal file
@ -0,0 +1,354 @@
|
||||
{
|
||||
"version": 3,
|
||||
"targets": {
|
||||
"net10.0": {}
|
||||
},
|
||||
"libraries": {},
|
||||
"projectFileDependencyGroups": {
|
||||
"net10.0": []
|
||||
},
|
||||
"packageFolders": {
|
||||
"/home/alex/.nuget/packages/": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "0.1.0-dev",
|
||||
"restore": {
|
||||
"projectUniqueName": "/home/alex/Documents/Development/Rust/pumpkin-api-cs/PumpkinApi.csproj",
|
||||
"projectName": "PumpkinMC.PumpkinApi",
|
||||
"projectPath": "/home/alex/Documents/Development/Rust/pumpkin-api-cs/PumpkinApi.csproj",
|
||||
"packagesPath": "/home/alex/.nuget/packages/",
|
||||
"outputPath": "/home/alex/Documents/Development/Rust/pumpkin-api-cs/obj/",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"/home/alex/Documents/Development/Rust/pumpkin-api-cs/NuGet.Config",
|
||||
"/home/alex/.nuget/NuGet/NuGet.Config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net10.0"
|
||||
],
|
||||
"sources": {
|
||||
"https://api.nuget.org/v3/index.json": {},
|
||||
"https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-experimental/nuget/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net10.0": {
|
||||
"targetAlias": "net10.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "all"
|
||||
},
|
||||
"SdkAnalysisLevel": "10.0.100"
|
||||
},
|
||||
"frameworks": {
|
||||
"net10.0": {
|
||||
"targetAlias": "net10.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"downloadDependencies": [
|
||||
{
|
||||
"name": "Microsoft.AspNetCore.App.Ref",
|
||||
"version": "[10.0.4, 10.0.4]"
|
||||
}
|
||||
],
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/10.0.104/PortableRuntimeIdentifierGraph.json",
|
||||
"packagesToPrune": {
|
||||
"Microsoft.CSharp": "(,4.7.32767]",
|
||||
"Microsoft.VisualBasic": "(,10.4.32767]",
|
||||
"Microsoft.Win32.Primitives": "(,4.3.32767]",
|
||||
"Microsoft.Win32.Registry": "(,5.0.32767]",
|
||||
"runtime.any.System.Collections": "(,4.3.32767]",
|
||||
"runtime.any.System.Diagnostics.Tools": "(,4.3.32767]",
|
||||
"runtime.any.System.Diagnostics.Tracing": "(,4.3.32767]",
|
||||
"runtime.any.System.Globalization": "(,4.3.32767]",
|
||||
"runtime.any.System.Globalization.Calendars": "(,4.3.32767]",
|
||||
"runtime.any.System.IO": "(,4.3.32767]",
|
||||
"runtime.any.System.Reflection": "(,4.3.32767]",
|
||||
"runtime.any.System.Reflection.Extensions": "(,4.3.32767]",
|
||||
"runtime.any.System.Reflection.Primitives": "(,4.3.32767]",
|
||||
"runtime.any.System.Resources.ResourceManager": "(,4.3.32767]",
|
||||
"runtime.any.System.Runtime": "(,4.3.32767]",
|
||||
"runtime.any.System.Runtime.Handles": "(,4.3.32767]",
|
||||
"runtime.any.System.Runtime.InteropServices": "(,4.3.32767]",
|
||||
"runtime.any.System.Text.Encoding": "(,4.3.32767]",
|
||||
"runtime.any.System.Text.Encoding.Extensions": "(,4.3.32767]",
|
||||
"runtime.any.System.Threading.Tasks": "(,4.3.32767]",
|
||||
"runtime.any.System.Threading.Timer": "(,4.3.32767]",
|
||||
"runtime.aot.System.Collections": "(,4.3.32767]",
|
||||
"runtime.aot.System.Diagnostics.Tools": "(,4.3.32767]",
|
||||
"runtime.aot.System.Diagnostics.Tracing": "(,4.3.32767]",
|
||||
"runtime.aot.System.Globalization": "(,4.3.32767]",
|
||||
"runtime.aot.System.Globalization.Calendars": "(,4.3.32767]",
|
||||
"runtime.aot.System.IO": "(,4.3.32767]",
|
||||
"runtime.aot.System.Reflection": "(,4.3.32767]",
|
||||
"runtime.aot.System.Reflection.Extensions": "(,4.3.32767]",
|
||||
"runtime.aot.System.Reflection.Primitives": "(,4.3.32767]",
|
||||
"runtime.aot.System.Resources.ResourceManager": "(,4.3.32767]",
|
||||
"runtime.aot.System.Runtime": "(,4.3.32767]",
|
||||
"runtime.aot.System.Runtime.Handles": "(,4.3.32767]",
|
||||
"runtime.aot.System.Runtime.InteropServices": "(,4.3.32767]",
|
||||
"runtime.aot.System.Text.Encoding": "(,4.3.32767]",
|
||||
"runtime.aot.System.Text.Encoding.Extensions": "(,4.3.32767]",
|
||||
"runtime.aot.System.Threading.Tasks": "(,4.3.32767]",
|
||||
"runtime.aot.System.Threading.Timer": "(,4.3.32767]",
|
||||
"runtime.debian.8-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.debian.8-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.debian.8-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.debian.8-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.debian.8-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
|
||||
"runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
|
||||
"runtime.debian.9-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.debian.9-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.debian.9-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.debian.9-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.fedora.23-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.fedora.23-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.fedora.23-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.fedora.23-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.fedora.23-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
|
||||
"runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
|
||||
"runtime.fedora.24-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.fedora.24-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.fedora.24-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.fedora.24-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.fedora.24-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
|
||||
"runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
|
||||
"runtime.fedora.27-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.fedora.27-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.fedora.27-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.fedora.27-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.fedora.28-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.fedora.28-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.fedora.28-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.fedora.28-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.opensuse.13.2-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.opensuse.13.2-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.opensuse.13.2-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.opensuse.13.2-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
|
||||
"runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
|
||||
"runtime.opensuse.42.1-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.opensuse.42.1-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.opensuse.42.1-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.opensuse.42.1-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
|
||||
"runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
|
||||
"runtime.opensuse.42.3-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.opensuse.42.3-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.opensuse.42.3-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.opensuse.42.3-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.osx.10.10-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.osx.10.10-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.osx.10.10-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.osx.10.10-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
|
||||
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "(,4.3.32767]",
|
||||
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
|
||||
"runtime.rhel.7-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.rhel.7-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.rhel.7-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.rhel.7-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.rhel.7-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
|
||||
"runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
|
||||
"runtime.ubuntu.14.04-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.ubuntu.14.04-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.ubuntu.14.04-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.ubuntu.14.04-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
|
||||
"runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
|
||||
"runtime.ubuntu.16.04-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.ubuntu.16.04-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.ubuntu.16.04-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.ubuntu.16.04-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
|
||||
"runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
|
||||
"runtime.ubuntu.16.10-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.ubuntu.16.10-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.ubuntu.16.10-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.ubuntu.16.10-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
|
||||
"runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
|
||||
"runtime.ubuntu.18.04-x64.runtime.native.System": "(,4.3.32767]",
|
||||
"runtime.ubuntu.18.04-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.ubuntu.18.04-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
|
||||
"runtime.ubuntu.18.04-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
|
||||
"runtime.unix.Microsoft.Win32.Primitives": "(,4.3.32767]",
|
||||
"runtime.unix.System.Console": "(,4.3.32767]",
|
||||
"runtime.unix.System.Diagnostics.Debug": "(,4.3.32767]",
|
||||
"runtime.unix.System.IO.FileSystem": "(,4.3.32767]",
|
||||
"runtime.unix.System.Net.Primitives": "(,4.3.32767]",
|
||||
"runtime.unix.System.Net.Sockets": "(,4.3.32767]",
|
||||
"runtime.unix.System.Private.Uri": "(,4.3.32767]",
|
||||
"runtime.unix.System.Runtime.Extensions": "(,4.3.32767]",
|
||||
"runtime.win.Microsoft.Win32.Primitives": "(,4.3.32767]",
|
||||
"runtime.win.System.Console": "(,4.3.32767]",
|
||||
"runtime.win.System.Diagnostics.Debug": "(,4.3.32767]",
|
||||
"runtime.win.System.IO.FileSystem": "(,4.3.32767]",
|
||||
"runtime.win.System.Net.Primitives": "(,4.3.32767]",
|
||||
"runtime.win.System.Net.Sockets": "(,4.3.32767]",
|
||||
"runtime.win.System.Runtime.Extensions": "(,4.3.32767]",
|
||||
"runtime.win10-arm-aot.runtime.native.System.IO.Compression": "(,4.0.32767]",
|
||||
"runtime.win10-arm64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.win10-x64-aot.runtime.native.System.IO.Compression": "(,4.0.32767]",
|
||||
"runtime.win10-x86-aot.runtime.native.System.IO.Compression": "(,4.0.32767]",
|
||||
"runtime.win7-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.win7-x86.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"runtime.win7.System.Private.Uri": "(,4.3.32767]",
|
||||
"runtime.win8-arm.runtime.native.System.IO.Compression": "(,4.3.32767]",
|
||||
"System.AppContext": "(,4.3.32767]",
|
||||
"System.Buffers": "(,5.0.32767]",
|
||||
"System.Collections": "(,4.3.32767]",
|
||||
"System.Collections.Concurrent": "(,4.3.32767]",
|
||||
"System.Collections.Immutable": "(,10.0.32767]",
|
||||
"System.Collections.NonGeneric": "(,4.3.32767]",
|
||||
"System.Collections.Specialized": "(,4.3.32767]",
|
||||
"System.ComponentModel": "(,4.3.32767]",
|
||||
"System.ComponentModel.Annotations": "(,4.3.32767]",
|
||||
"System.ComponentModel.EventBasedAsync": "(,4.3.32767]",
|
||||
"System.ComponentModel.Primitives": "(,4.3.32767]",
|
||||
"System.ComponentModel.TypeConverter": "(,4.3.32767]",
|
||||
"System.Console": "(,4.3.32767]",
|
||||
"System.Data.Common": "(,4.3.32767]",
|
||||
"System.Data.DataSetExtensions": "(,4.4.32767]",
|
||||
"System.Diagnostics.Contracts": "(,4.3.32767]",
|
||||
"System.Diagnostics.Debug": "(,4.3.32767]",
|
||||
"System.Diagnostics.DiagnosticSource": "(,10.0.32767]",
|
||||
"System.Diagnostics.FileVersionInfo": "(,4.3.32767]",
|
||||
"System.Diagnostics.Process": "(,4.3.32767]",
|
||||
"System.Diagnostics.StackTrace": "(,4.3.32767]",
|
||||
"System.Diagnostics.TextWriterTraceListener": "(,4.3.32767]",
|
||||
"System.Diagnostics.Tools": "(,4.3.32767]",
|
||||
"System.Diagnostics.TraceSource": "(,4.3.32767]",
|
||||
"System.Diagnostics.Tracing": "(,4.3.32767]",
|
||||
"System.Drawing.Primitives": "(,4.3.32767]",
|
||||
"System.Dynamic.Runtime": "(,4.3.32767]",
|
||||
"System.Formats.Asn1": "(,10.0.32767]",
|
||||
"System.Formats.Tar": "(,10.0.32767]",
|
||||
"System.Globalization": "(,4.3.32767]",
|
||||
"System.Globalization.Calendars": "(,4.3.32767]",
|
||||
"System.Globalization.Extensions": "(,4.3.32767]",
|
||||
"System.IO": "(,4.3.32767]",
|
||||
"System.IO.Compression": "(,4.3.32767]",
|
||||
"System.IO.Compression.ZipFile": "(,4.3.32767]",
|
||||
"System.IO.FileSystem": "(,4.3.32767]",
|
||||
"System.IO.FileSystem.AccessControl": "(,4.4.32767]",
|
||||
"System.IO.FileSystem.DriveInfo": "(,4.3.32767]",
|
||||
"System.IO.FileSystem.Primitives": "(,4.3.32767]",
|
||||
"System.IO.FileSystem.Watcher": "(,4.3.32767]",
|
||||
"System.IO.IsolatedStorage": "(,4.3.32767]",
|
||||
"System.IO.MemoryMappedFiles": "(,4.3.32767]",
|
||||
"System.IO.Pipelines": "(,10.0.32767]",
|
||||
"System.IO.Pipes": "(,4.3.32767]",
|
||||
"System.IO.Pipes.AccessControl": "(,5.0.32767]",
|
||||
"System.IO.UnmanagedMemoryStream": "(,4.3.32767]",
|
||||
"System.Linq": "(,4.3.32767]",
|
||||
"System.Linq.AsyncEnumerable": "(,10.0.32767]",
|
||||
"System.Linq.Expressions": "(,4.3.32767]",
|
||||
"System.Linq.Parallel": "(,4.3.32767]",
|
||||
"System.Linq.Queryable": "(,4.3.32767]",
|
||||
"System.Memory": "(,5.0.32767]",
|
||||
"System.Net.Http": "(,4.3.32767]",
|
||||
"System.Net.Http.Json": "(,10.0.32767]",
|
||||
"System.Net.NameResolution": "(,4.3.32767]",
|
||||
"System.Net.NetworkInformation": "(,4.3.32767]",
|
||||
"System.Net.Ping": "(,4.3.32767]",
|
||||
"System.Net.Primitives": "(,4.3.32767]",
|
||||
"System.Net.Requests": "(,4.3.32767]",
|
||||
"System.Net.Security": "(,4.3.32767]",
|
||||
"System.Net.ServerSentEvents": "(,10.0.32767]",
|
||||
"System.Net.Sockets": "(,4.3.32767]",
|
||||
"System.Net.WebHeaderCollection": "(,4.3.32767]",
|
||||
"System.Net.WebSockets": "(,4.3.32767]",
|
||||
"System.Net.WebSockets.Client": "(,4.3.32767]",
|
||||
"System.Numerics.Vectors": "(,5.0.32767]",
|
||||
"System.ObjectModel": "(,4.3.32767]",
|
||||
"System.Private.DataContractSerialization": "(,4.3.32767]",
|
||||
"System.Private.Uri": "(,4.3.32767]",
|
||||
"System.Reflection": "(,4.3.32767]",
|
||||
"System.Reflection.DispatchProxy": "(,6.0.32767]",
|
||||
"System.Reflection.Emit": "(,4.7.32767]",
|
||||
"System.Reflection.Emit.ILGeneration": "(,4.7.32767]",
|
||||
"System.Reflection.Emit.Lightweight": "(,4.7.32767]",
|
||||
"System.Reflection.Extensions": "(,4.3.32767]",
|
||||
"System.Reflection.Metadata": "(,10.0.32767]",
|
||||
"System.Reflection.Primitives": "(,4.3.32767]",
|
||||
"System.Reflection.TypeExtensions": "(,4.3.32767]",
|
||||
"System.Resources.Reader": "(,4.3.32767]",
|
||||
"System.Resources.ResourceManager": "(,4.3.32767]",
|
||||
"System.Resources.Writer": "(,4.3.32767]",
|
||||
"System.Runtime": "(,4.3.32767]",
|
||||
"System.Runtime.CompilerServices.Unsafe": "(,7.0.32767]",
|
||||
"System.Runtime.CompilerServices.VisualC": "(,4.3.32767]",
|
||||
"System.Runtime.Extensions": "(,4.3.32767]",
|
||||
"System.Runtime.Handles": "(,4.3.32767]",
|
||||
"System.Runtime.InteropServices": "(,4.3.32767]",
|
||||
"System.Runtime.InteropServices.RuntimeInformation": "(,4.3.32767]",
|
||||
"System.Runtime.Loader": "(,4.3.32767]",
|
||||
"System.Runtime.Numerics": "(,4.3.32767]",
|
||||
"System.Runtime.Serialization.Formatters": "(,4.3.32767]",
|
||||
"System.Runtime.Serialization.Json": "(,4.3.32767]",
|
||||
"System.Runtime.Serialization.Primitives": "(,4.3.32767]",
|
||||
"System.Runtime.Serialization.Xml": "(,4.3.32767]",
|
||||
"System.Security.AccessControl": "(,6.0.32767]",
|
||||
"System.Security.Claims": "(,4.3.32767]",
|
||||
"System.Security.Cryptography.Algorithms": "(,4.3.32767]",
|
||||
"System.Security.Cryptography.Cng": "(,5.0.32767]",
|
||||
"System.Security.Cryptography.Csp": "(,4.3.32767]",
|
||||
"System.Security.Cryptography.Encoding": "(,4.3.32767]",
|
||||
"System.Security.Cryptography.OpenSsl": "(,5.0.32767]",
|
||||
"System.Security.Cryptography.Primitives": "(,4.3.32767]",
|
||||
"System.Security.Cryptography.X509Certificates": "(,4.3.32767]",
|
||||
"System.Security.Principal": "(,4.3.32767]",
|
||||
"System.Security.Principal.Windows": "(,5.0.32767]",
|
||||
"System.Security.SecureString": "(,4.3.32767]",
|
||||
"System.Text.Encoding": "(,4.3.32767]",
|
||||
"System.Text.Encoding.CodePages": "(,10.0.32767]",
|
||||
"System.Text.Encoding.Extensions": "(,4.3.32767]",
|
||||
"System.Text.Encodings.Web": "(,10.0.32767]",
|
||||
"System.Text.Json": "(,10.0.32767]",
|
||||
"System.Text.RegularExpressions": "(,4.3.32767]",
|
||||
"System.Threading": "(,4.3.32767]",
|
||||
"System.Threading.AccessControl": "(,10.0.32767]",
|
||||
"System.Threading.Channels": "(,10.0.32767]",
|
||||
"System.Threading.Overlapped": "(,4.3.32767]",
|
||||
"System.Threading.Tasks": "(,4.3.32767]",
|
||||
"System.Threading.Tasks.Dataflow": "(,10.0.32767]",
|
||||
"System.Threading.Tasks.Extensions": "(,5.0.32767]",
|
||||
"System.Threading.Tasks.Parallel": "(,4.3.32767]",
|
||||
"System.Threading.Thread": "(,4.3.32767]",
|
||||
"System.Threading.ThreadPool": "(,4.3.32767]",
|
||||
"System.Threading.Timer": "(,4.3.32767]",
|
||||
"System.ValueTuple": "(,4.5.32767]",
|
||||
"System.Xml.ReaderWriter": "(,4.3.32767]",
|
||||
"System.Xml.XDocument": "(,4.3.32767]",
|
||||
"System.Xml.XmlDocument": "(,4.3.32767]",
|
||||
"System.Xml.XmlSerializer": "(,4.3.32767]",
|
||||
"System.Xml.XPath": "(,4.3.32767]",
|
||||
"System.Xml.XPath.XDocument": "(,5.0.32767]"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
10
obj/project.nuget.cache
Normal file
10
obj/project.nuget.cache
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "Oa2ROurmFEc=",
|
||||
"success": true,
|
||||
"projectFilePath": "/home/alex/Documents/Development/Rust/pumpkin-api-cs/PumpkinApi.csproj",
|
||||
"expectedPackageFiles": [
|
||||
"/home/alex/.nuget/packages/microsoft.aspnetcore.app.ref/10.0.4/microsoft.aspnetcore.app.ref.10.0.4.nupkg.sha512"
|
||||
],
|
||||
"logs": []
|
||||
}
|
||||
55
src/Impl.cs
Normal file
55
src/Impl.cs
Normal file
@ -0,0 +1,55 @@
|
||||
using PluginWorld;
|
||||
using PluginWorld.wit.Exports.pumpkin.plugin.v0_1_0;
|
||||
using PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0;
|
||||
|
||||
namespace PluginWorld
|
||||
{
|
||||
// wit-bindgen generates calls to a partial class named [WorldName]ExportsImpl
|
||||
// and [InterfaceName]ExportsImpl. We must provide these implementations.
|
||||
|
||||
public partial class PluginWorldExportsImpl : IPluginWorldExports
|
||||
{
|
||||
public static void InitPlugin()
|
||||
{
|
||||
}
|
||||
|
||||
public static void OnLoad(IContextImports.Context context)
|
||||
{
|
||||
}
|
||||
|
||||
public static void OnUnload(IContextImports.Context context)
|
||||
{
|
||||
}
|
||||
|
||||
public static IEventImports.Event HandleEvent(uint eventId, IServerImports.Server server, IEventImports.Event @event)
|
||||
{
|
||||
return @event;
|
||||
}
|
||||
|
||||
public static int HandleCommand(uint commandId, ICommandImports.CommandSender sender, IServerImports.Server server, ICommandImports.ConsumedArgs args)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static void HandleTask(uint handlerId, IServerImports.Server server)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
namespace PluginWorld.wit.Exports.pumpkin.plugin.v0_1_0
|
||||
{
|
||||
public partial class MetadataExportsImpl : IMetadataExports
|
||||
{
|
||||
public static IMetadataExports.PluginMetadata GetMetadata()
|
||||
{
|
||||
return new IMetadataExports.PluginMetadata(
|
||||
"csharp-plugin",
|
||||
"0.1.0",
|
||||
new List<string> { "Author" },
|
||||
"A Pumpkin plugin written in C#",
|
||||
new List<string>()
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
1892
src/gen/Plugin.cs
Normal file
1892
src/gen/Plugin.cs
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,26 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
namespace PluginWorld.wit.Exports.pumpkin.plugin.v0_1_0;
|
||||
|
||||
public interface IMetadataExports {
|
||||
|
||||
public struct PluginMetadata {
|
||||
public string name;
|
||||
public string version;
|
||||
public global::System.Collections.Generic.List<string> authors;
|
||||
public string description;
|
||||
public global::System.Collections.Generic.List<string> dependencies;
|
||||
|
||||
public PluginMetadata(string name, string version, global::System.Collections.Generic.List<string> authors, string description, global::System.Collections.Generic.List<string> dependencies) {
|
||||
this.name = name;
|
||||
this.version = version;
|
||||
this.authors = authors;
|
||||
this.description = description;
|
||||
this.dependencies = dependencies;
|
||||
}
|
||||
}
|
||||
static abstract global::PluginWorld.wit.Exports.pumpkin.plugin.v0_1_0.IMetadataExports.PluginMetadata GetMetadata();
|
||||
|
||||
}
|
||||
@ -0,0 +1,107 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
using System;
|
||||
|
||||
namespace PluginWorld.wit.Exports.pumpkin.plugin.v0_1_0
|
||||
{
|
||||
public static class MetadataExportsInterop {
|
||||
|
||||
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(EntryPoint = "pumpkin:plugin/metadata@0.1.0#get-metadata")]
|
||||
public static unsafe nint wasmExportGetMetadata() {
|
||||
|
||||
global::PluginWorld.wit.Exports.pumpkin.plugin.v0_1_0.IMetadataExports.PluginMetadata ret;
|
||||
ret = MetadataExportsImpl.GetMetadata();
|
||||
|
||||
var ptr = InteropReturnArea.returnArea.AddressOfReturnArea();
|
||||
|
||||
var stringSpan = global::System.MemoryExtensions.AsSpan(ret.name);
|
||||
var length = global::System.Text.Encoding.UTF8.GetByteCount(stringSpan);
|
||||
var strPtr = global::System.Runtime.InteropServices.NativeMemory.Alloc((nuint)length);
|
||||
global::System.Text.Encoding.UTF8.GetBytes(stringSpan, new global::System.Span<byte>(strPtr, length));
|
||||
|
||||
new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0] = length;
|
||||
new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0] = (nint)(int)strPtr;
|
||||
|
||||
var stringSpan4 = global::System.MemoryExtensions.AsSpan(ret.version);
|
||||
var length2 = global::System.Text.Encoding.UTF8.GetByteCount(stringSpan4);
|
||||
var strPtr0 = global::System.Runtime.InteropServices.NativeMemory.Alloc((nuint)length2);
|
||||
global::System.Text.Encoding.UTF8.GetBytes(stringSpan4, new global::System.Span<byte>(strPtr0, length2));
|
||||
|
||||
new global::System.Span<int>((void*)((byte*)ptr + 12), 1)[0] = length2;
|
||||
new global::System.Span<nint>((void*)((byte*)ptr + 8), 1)[0] = (nint)(int)strPtr0;
|
||||
|
||||
var bufferSize = 8 * (nuint)ret.authors.Count;
|
||||
void* address = global::System.Runtime.InteropServices.NativeMemory.AlignedAlloc(bufferSize, 4);
|
||||
|
||||
for (int index = 0; index < ret.authors.Count; ++index) {
|
||||
string element = ret.authors[index];
|
||||
int basePtr = (int)address + (index * 8);
|
||||
|
||||
var stringSpan9 = global::System.MemoryExtensions.AsSpan(element);
|
||||
var length7 = global::System.Text.Encoding.UTF8.GetByteCount(stringSpan9);
|
||||
var strPtr5 = global::System.Runtime.InteropServices.NativeMemory.Alloc((nuint)length7);
|
||||
global::System.Text.Encoding.UTF8.GetBytes(stringSpan9, new global::System.Span<byte>(strPtr5, length7));
|
||||
|
||||
new global::System.Span<int>((void*)((byte*)basePtr + 4), 1)[0] = length7;
|
||||
new global::System.Span<nint>((void*)((byte*)basePtr + 0), 1)[0] = (nint)(int)strPtr5;
|
||||
|
||||
}
|
||||
new global::System.Span<int>((void*)((byte*)ptr + 20), 1)[0] = ret.authors.Count;
|
||||
new global::System.Span<nint>((void*)((byte*)ptr + 16), 1)[0] = (nint)(int)address;
|
||||
|
||||
var stringSpan14 = global::System.MemoryExtensions.AsSpan(ret.description);
|
||||
var length12 = global::System.Text.Encoding.UTF8.GetByteCount(stringSpan14);
|
||||
var strPtr10 = global::System.Runtime.InteropServices.NativeMemory.Alloc((nuint)length12);
|
||||
global::System.Text.Encoding.UTF8.GetBytes(stringSpan14, new global::System.Span<byte>(strPtr10, length12));
|
||||
|
||||
new global::System.Span<int>((void*)((byte*)ptr + 28), 1)[0] = length12;
|
||||
new global::System.Span<nint>((void*)((byte*)ptr + 24), 1)[0] = (nint)(int)strPtr10;
|
||||
|
||||
var bufferSize24 = 8 * (nuint)ret.dependencies.Count;
|
||||
void* address23 = global::System.Runtime.InteropServices.NativeMemory.AlignedAlloc(bufferSize24, 4);
|
||||
|
||||
for (int index22 = 0; index22 < ret.dependencies.Count; ++index22) {
|
||||
string element15 = ret.dependencies[index22];
|
||||
int basePtr16 = (int)address23 + (index22 * 8);
|
||||
|
||||
var stringSpan21 = global::System.MemoryExtensions.AsSpan(element15);
|
||||
var length19 = global::System.Text.Encoding.UTF8.GetByteCount(stringSpan21);
|
||||
var strPtr17 = global::System.Runtime.InteropServices.NativeMemory.Alloc((nuint)length19);
|
||||
global::System.Text.Encoding.UTF8.GetBytes(stringSpan21, new global::System.Span<byte>(strPtr17, length19));
|
||||
|
||||
new global::System.Span<int>((void*)((byte*)basePtr16 + 4), 1)[0] = length19;
|
||||
new global::System.Span<nint>((void*)((byte*)basePtr16 + 0), 1)[0] = (nint)(int)strPtr17;
|
||||
|
||||
}
|
||||
new global::System.Span<int>((void*)((byte*)ptr + 36), 1)[0] = ret.dependencies.Count;
|
||||
new global::System.Span<nint>((void*)((byte*)ptr + 32), 1)[0] = (nint)(int)address23;
|
||||
return ptr;
|
||||
|
||||
}
|
||||
|
||||
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(EntryPoint = "cabi_post_pumpkin:plugin/metadata@0.1.0#get-metadata")]
|
||||
public static unsafe void cabi_post_wasmExportGetMetadata(nint p0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)p0 + 0), 1)[0]);
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)p0 + 8), 1)[0]);
|
||||
|
||||
for (int index = 0; index < new global::System.Span<int>((void*)((byte*)p0 + 20), 1)[0]; ++index) {
|
||||
int basePtr = (int)new global::System.Span<nint>((void*)((byte*)p0 + 16), 1)[0] + (index * 8);
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)basePtr + 0), 1)[0]);
|
||||
|
||||
}
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)p0 + 16), 1)[0]);
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)p0 + 24), 1)[0]);
|
||||
|
||||
for (int index2 = 0; index2 < new global::System.Span<int>((void*)((byte*)p0 + 36), 1)[0]; ++index2) {
|
||||
int basePtr1 = (int)new global::System.Span<nint>((void*)((byte*)p0 + 32), 1)[0] + (index2 * 8);
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)basePtr1 + 0), 1)[0]);
|
||||
|
||||
}
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)p0 + 32), 1)[0]);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,100 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
using System;
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0
|
||||
{
|
||||
public static class BlockEntityImportsInterop {
|
||||
|
||||
internal static class BlockEntity
|
||||
{
|
||||
|
||||
public static class ResourceLocationWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/block-entity@0.1.0", EntryPoint = "[method]block-entity.resource-location"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportResourceLocation(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class GetPositionWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/block-entity@0.1.0", EntryPoint = "[method]block-entity.get-position"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetPosition(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class GetIdWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/block-entity@0.1.0", EntryPoint = "[method]block-entity.get-id"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetId(int p0);
|
||||
}
|
||||
|
||||
public static class IsDirtyWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/block-entity@0.1.0", EntryPoint = "[method]block-entity.is-dirty"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportIsDirty(int p0);
|
||||
}
|
||||
|
||||
public static class ClearDirtyWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/block-entity@0.1.0", EntryPoint = "[method]block-entity.clear-dirty"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportClearDirty(int p0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
internal static class CommandBlockEntity
|
||||
{
|
||||
|
||||
public static class GetBlockEntityWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/block-entity@0.1.0", EntryPoint = "[method]command-block-entity.get-block-entity"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetBlockEntity(int p0);
|
||||
}
|
||||
|
||||
public static class LastOutputWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/block-entity@0.1.0", EntryPoint = "[method]command-block-entity.last-output"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportLastOutput(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class TrackOutputWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/block-entity@0.1.0", EntryPoint = "[method]command-block-entity.track-output"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportTrackOutput(int p0);
|
||||
}
|
||||
|
||||
public static class SuccessCountWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/block-entity@0.1.0", EntryPoint = "[method]command-block-entity.success-count"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportSuccessCount(int p0);
|
||||
}
|
||||
|
||||
public static class CommandWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/block-entity@0.1.0", EntryPoint = "[method]command-block-entity.command"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportCommand(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class AutoWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/block-entity@0.1.0", EntryPoint = "[method]command-block-entity.auto"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportAuto(int p0);
|
||||
}
|
||||
|
||||
public static class ConditionMetWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/block-entity@0.1.0", EntryPoint = "[method]command-block-entity.condition-met"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportConditionMet(int p0);
|
||||
}
|
||||
|
||||
public static class PoweredWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/block-entity@0.1.0", EntryPoint = "[method]command-block-entity.powered"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportPowered(int p0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,107 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
using System;
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0
|
||||
{
|
||||
public static class BossBarImportsInterop {
|
||||
|
||||
internal static class BossBar
|
||||
{
|
||||
|
||||
public static class ConstructorWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/boss-bar@0.1.0", EntryPoint = "[constructor]boss-bar"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportConstructor(int p0, int p1, int p2);
|
||||
}
|
||||
|
||||
public static class GetTitleWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/boss-bar@0.1.0", EntryPoint = "[method]boss-bar.get-title"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetTitle(int p0);
|
||||
}
|
||||
|
||||
public static class SetTitleWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/boss-bar@0.1.0", EntryPoint = "[method]boss-bar.set-title"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetTitle(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class GetHealthWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/boss-bar@0.1.0", EntryPoint = "[method]boss-bar.get-health"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern float wasmImportGetHealth(int p0);
|
||||
}
|
||||
|
||||
public static class SetHealthWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/boss-bar@0.1.0", EntryPoint = "[method]boss-bar.set-health"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetHealth(int p0, float p1);
|
||||
}
|
||||
|
||||
public static class GetColorWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/boss-bar@0.1.0", EntryPoint = "[method]boss-bar.get-color"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetColor(int p0);
|
||||
}
|
||||
|
||||
public static class SetColorWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/boss-bar@0.1.0", EntryPoint = "[method]boss-bar.set-color"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetColor(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class GetDivisionWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/boss-bar@0.1.0", EntryPoint = "[method]boss-bar.get-division"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetDivision(int p0);
|
||||
}
|
||||
|
||||
public static class SetDivisionWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/boss-bar@0.1.0", EntryPoint = "[method]boss-bar.set-division"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetDivision(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class GetMetadataWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/boss-bar@0.1.0", EntryPoint = "[method]boss-bar.get-metadata"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetMetadata(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class SetMetadataWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/boss-bar@0.1.0", EntryPoint = "[method]boss-bar.set-metadata"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetMetadata(int p0, int p1, int p2, int p3);
|
||||
}
|
||||
|
||||
public static class AddPlayerWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/boss-bar@0.1.0", EntryPoint = "[method]boss-bar.add-player"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportAddPlayer(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class RemovePlayerWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/boss-bar@0.1.0", EntryPoint = "[method]boss-bar.remove-player"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportRemovePlayer(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class GetPlayersWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/boss-bar@0.1.0", EntryPoint = "[method]boss-bar.get-players"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetPlayers(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class RemoveAllWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/boss-bar@0.1.0", EntryPoint = "[method]boss-bar.remove-all"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportRemoveAll(int p0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,176 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
using System;
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0
|
||||
{
|
||||
public static class CommandImportsInterop {
|
||||
|
||||
internal static class ConsumedArgs
|
||||
{
|
||||
|
||||
public static class GetValueWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/command@0.1.0", EntryPoint = "[method]consumed-args.get-value"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetValue(int p0, nint p1, int p2, nint p3);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
internal static class CommandSender
|
||||
{
|
||||
|
||||
public static class GetCommandSenderTypeWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/command@0.1.0", EntryPoint = "[method]command-sender.get-command-sender-type"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetCommandSenderType(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class SendMessageWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/command@0.1.0", EntryPoint = "[method]command-sender.send-message"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSendMessage(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class SetSuccessCountWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/command@0.1.0", EntryPoint = "[method]command-sender.set-success-count"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetSuccessCount(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class IsPlayerWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/command@0.1.0", EntryPoint = "[method]command-sender.is-player"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportIsPlayer(int p0);
|
||||
}
|
||||
|
||||
public static class IsConsoleWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/command@0.1.0", EntryPoint = "[method]command-sender.is-console"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportIsConsole(int p0);
|
||||
}
|
||||
|
||||
public static class AsPlayerWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/command@0.1.0", EntryPoint = "[method]command-sender.as-player"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportAsPlayer(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class PermissionLevelWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/command@0.1.0", EntryPoint = "[method]command-sender.permission-level"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportPermissionLevel(int p0);
|
||||
}
|
||||
|
||||
public static class HasPermissionLevelWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/command@0.1.0", EntryPoint = "[method]command-sender.has-permission-level"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportHasPermissionLevel(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class HasPermissionWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/command@0.1.0", EntryPoint = "[method]command-sender.has-permission"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportHasPermission(int p0, int p1, nint p2, int p3);
|
||||
}
|
||||
|
||||
public static class PositionWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/command@0.1.0", EntryPoint = "[method]command-sender.position"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportPosition(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class WorldWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/command@0.1.0", EntryPoint = "[method]command-sender.world"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportWorld(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class GetLocaleWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/command@0.1.0", EntryPoint = "[method]command-sender.get-locale"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetLocale(int p0);
|
||||
}
|
||||
|
||||
public static class ShouldReceiveFeedbackWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/command@0.1.0", EntryPoint = "[method]command-sender.should-receive-feedback"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportShouldReceiveFeedback(int p0);
|
||||
}
|
||||
|
||||
public static class ShouldBroadcastConsoleToOpsWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/command@0.1.0", EntryPoint = "[method]command-sender.should-broadcast-console-to-ops"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportShouldBroadcastConsoleToOps(int p0);
|
||||
}
|
||||
|
||||
public static class ShouldTrackOutputWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/command@0.1.0", EntryPoint = "[method]command-sender.should-track-output"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportShouldTrackOutput(int p0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
internal static class CommandNode
|
||||
{
|
||||
|
||||
public static class LiteralWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/command@0.1.0", EntryPoint = "[static]command-node.literal"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportLiteral(nint p0, int p1);
|
||||
}
|
||||
|
||||
public static class ArgumentWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/command@0.1.0", EntryPoint = "[static]command-node.argument"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportArgument(nint p0, int p1, int p2, nint p3, long p4, int p5, long p6);
|
||||
}
|
||||
|
||||
public static class ThenWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/command@0.1.0", EntryPoint = "[method]command-node.then"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportThen(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class ExecuteWithHandlerIdWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/command@0.1.0", EntryPoint = "[method]command-node.execute-with-handler-id"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportExecuteWithHandlerId(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class RequireWithHandlerIdWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/command@0.1.0", EntryPoint = "[method]command-node.require-with-handler-id"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportRequireWithHandlerId(int p0, int p1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
internal static class Command
|
||||
{
|
||||
|
||||
public static class ConstructorWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/command@0.1.0", EntryPoint = "[constructor]command"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportConstructor(nint p0, int p1, nint p2, int p3);
|
||||
}
|
||||
|
||||
public static class ThenWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/command@0.1.0", EntryPoint = "[method]command.then"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportThen(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class ExecuteWithHandlerIdWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/command@0.1.0", EntryPoint = "[method]command.execute-with-handler-id"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportExecuteWithHandlerId(int p0, int p1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
using System;
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0
|
||||
{
|
||||
public static class CommonImportsInterop {
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,47 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
using System;
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0
|
||||
{
|
||||
public static class ContextImportsInterop {
|
||||
|
||||
internal static class Context
|
||||
{
|
||||
|
||||
public static class RegisterEventWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/context@0.1.0", EntryPoint = "[method]context.register-event"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportRegisterEvent(int p0, int p1, int p2, int p3, int p4);
|
||||
}
|
||||
|
||||
public static class RegisterCommandWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/context@0.1.0", EntryPoint = "[method]context.register-command"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportRegisterCommand(int p0, int p1, nint p2, int p3);
|
||||
}
|
||||
|
||||
public static class RegisterPermissionWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/context@0.1.0", EntryPoint = "[method]context.register-permission"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportRegisterPermission(int p0, nint p1, int p2, nint p3, int p4, int p5, int p6, nint p7, int p8, nint p9);
|
||||
}
|
||||
|
||||
public static class GetDataFolderWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/context@0.1.0", EntryPoint = "[method]context.get-data-folder"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetDataFolder(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class GetServerWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/context@0.1.0", EntryPoint = "[method]context.get-server"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetServer(int p0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
using System;
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0
|
||||
{
|
||||
public static class EntityImportsInterop {
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
using System;
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0
|
||||
{
|
||||
public static class EventImportsInterop {
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,83 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
using System;
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0
|
||||
{
|
||||
public static class GuiImportsInterop {
|
||||
|
||||
internal static class Gui
|
||||
{
|
||||
|
||||
public static class ConstructorWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/gui@0.1.0", EntryPoint = "[constructor]gui"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportConstructor(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class SetItemWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/gui@0.1.0", EntryPoint = "[method]gui.set-item"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetItem(int p0, int p1, nint p2, int p3, int p4);
|
||||
}
|
||||
|
||||
public static class GetItemWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/gui@0.1.0", EntryPoint = "[method]gui.get-item"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetItem(int p0, int p1, nint p2);
|
||||
}
|
||||
|
||||
public static class GetTypeWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/gui@0.1.0", EntryPoint = "[method]gui.get-type"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetType(int p0);
|
||||
}
|
||||
|
||||
public static class GetTitleWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/gui@0.1.0", EntryPoint = "[method]gui.get-title"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetTitle(int p0);
|
||||
}
|
||||
|
||||
public static class GetSizeWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/gui@0.1.0", EntryPoint = "[method]gui.get-size"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetSize(int p0);
|
||||
}
|
||||
|
||||
public static class ClearItemsWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/gui@0.1.0", EntryPoint = "[method]gui.clear-items"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportClearItems(int p0);
|
||||
}
|
||||
|
||||
public static class SetAllowGrabItemsWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/gui@0.1.0", EntryPoint = "[method]gui.set-allow-grab-items"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetAllowGrabItems(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class GetAllowGrabItemsWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/gui@0.1.0", EntryPoint = "[method]gui.get-allow-grab-items"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetAllowGrabItems(int p0);
|
||||
}
|
||||
|
||||
public static class SetAllowPutItemsWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/gui@0.1.0", EntryPoint = "[method]gui.set-allow-put-items"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetAllowPutItems(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class GetAllowPutItemsWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/gui@0.1.0", EntryPoint = "[method]gui.get-allow-put-items"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetAllowPutItems(int p0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,24 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
using System;
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0
|
||||
{
|
||||
public static class I18nImportsInterop {
|
||||
|
||||
public static class TranslateWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/i18n@0.1.0", EntryPoint = "translate"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportTranslate(nint p0, int p1, int p2, nint p3);
|
||||
}
|
||||
|
||||
public static class LoadTranslationsWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/i18n@0.1.0", EntryPoint = "load-translations"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportLoadTranslations(nint p0, int p1, nint p2, int p3, int p4);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,222 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0;
|
||||
|
||||
public interface IBlockEntityImports {
|
||||
|
||||
public class BlockEntityType {
|
||||
public readonly byte Tag;
|
||||
private readonly object? value;
|
||||
|
||||
private BlockEntityType(byte tag, object? value) {
|
||||
this.Tag = tag;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public static BlockEntityType CommandBlockEntity(CommandBlockEntity commandBlockEntity) {
|
||||
return new BlockEntityType(Tags.CommandBlockEntity, commandBlockEntity);
|
||||
}
|
||||
|
||||
public CommandBlockEntity AsCommandBlockEntity
|
||||
{
|
||||
get
|
||||
{
|
||||
if (Tag == Tags.CommandBlockEntity)
|
||||
return (CommandBlockEntity)value!;
|
||||
else
|
||||
throw new global::System.ArgumentException("expected CommandBlockEntity, got " + Tag);
|
||||
}
|
||||
}
|
||||
|
||||
public class Tags {
|
||||
public const byte CommandBlockEntity = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public class BlockEntity: global::System.IDisposable {
|
||||
internal int Handle { get; set; }
|
||||
|
||||
public readonly record struct THandle(int Handle);
|
||||
|
||||
public BlockEntity(THandle handle) {
|
||||
Handle = handle.Handle;
|
||||
}
|
||||
|
||||
public void Dispose() {
|
||||
Dispose(true);
|
||||
}
|
||||
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/block-entity@0.1.0", EntryPoint = "[resource-drop]block-entity"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
private static extern void wasmImportResourceDrop(int p0);
|
||||
|
||||
protected virtual void Dispose(bool disposing) {
|
||||
if (disposing && Handle != 0) {
|
||||
wasmImportResourceDrop(Handle);
|
||||
Handle = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public unsafe string ResourceLocation()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[3];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
BlockEntityImportsInterop.BlockEntity.ResourceLocationWasmInterop.wasmImportResourceLocation(handle, ptr);
|
||||
|
||||
var str = global::System.Text.Encoding.UTF8.GetString((byte*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0], new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]);
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0]);
|
||||
}
|
||||
|
||||
return str;
|
||||
|
||||
}
|
||||
|
||||
public unsafe (int, int, int) GetPosition()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[4];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
BlockEntityImportsInterop.BlockEntity.GetPositionWasmInterop.wasmImportGetPosition(handle, ptr);
|
||||
return (new global::System.Span<int>((void*)((byte*)ptr + 0), 1)[0], new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0], new global::System.Span<int>((void*)((byte*)ptr + 8), 1)[0]);
|
||||
|
||||
}
|
||||
|
||||
public unsafe uint GetId()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = BlockEntityImportsInterop.BlockEntity.GetIdWasmInterop.wasmImportGetId(handle);
|
||||
return unchecked((uint)(result));
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool IsDirty()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = BlockEntityImportsInterop.BlockEntity.IsDirtyWasmInterop.wasmImportIsDirty(handle);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void ClearDirty()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
BlockEntityImportsInterop.BlockEntity.ClearDirtyWasmInterop.wasmImportClearDirty(handle);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class CommandBlockEntity: global::System.IDisposable {
|
||||
internal int Handle { get; set; }
|
||||
|
||||
public readonly record struct THandle(int Handle);
|
||||
|
||||
public CommandBlockEntity(THandle handle) {
|
||||
Handle = handle.Handle;
|
||||
}
|
||||
|
||||
public void Dispose() {
|
||||
Dispose(true);
|
||||
}
|
||||
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/block-entity@0.1.0", EntryPoint = "[resource-drop]command-block-entity"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
private static extern void wasmImportResourceDrop(int p0);
|
||||
|
||||
protected virtual void Dispose(bool disposing) {
|
||||
if (disposing && Handle != 0) {
|
||||
wasmImportResourceDrop(Handle);
|
||||
Handle = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IBlockEntityImports.BlockEntity GetBlockEntity()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = BlockEntityImportsInterop.CommandBlockEntity.GetBlockEntityWasmInterop.wasmImportGetBlockEntity(handle);
|
||||
var resource = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IBlockEntityImports.BlockEntity(new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IBlockEntityImports.BlockEntity.THandle(result));
|
||||
return resource;
|
||||
|
||||
}
|
||||
|
||||
public unsafe string LastOutput()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[3];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
BlockEntityImportsInterop.CommandBlockEntity.LastOutputWasmInterop.wasmImportLastOutput(handle, ptr);
|
||||
|
||||
var str = global::System.Text.Encoding.UTF8.GetString((byte*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0], new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]);
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0]);
|
||||
}
|
||||
|
||||
return str;
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool TrackOutput()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = BlockEntityImportsInterop.CommandBlockEntity.TrackOutputWasmInterop.wasmImportTrackOutput(handle);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe uint SuccessCount()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = BlockEntityImportsInterop.CommandBlockEntity.SuccessCountWasmInterop.wasmImportSuccessCount(handle);
|
||||
return unchecked((uint)(result));
|
||||
|
||||
}
|
||||
|
||||
public unsafe string Command()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[3];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
BlockEntityImportsInterop.CommandBlockEntity.CommandWasmInterop.wasmImportCommand(handle, ptr);
|
||||
|
||||
var str = global::System.Text.Encoding.UTF8.GetString((byte*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0], new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]);
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0]);
|
||||
}
|
||||
|
||||
return str;
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool Auto()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = BlockEntityImportsInterop.CommandBlockEntity.AutoWasmInterop.wasmImportAuto(handle);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool ConditionMet()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = BlockEntityImportsInterop.CommandBlockEntity.ConditionMetWasmInterop.wasmImportConditionMet(handle);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool Powered()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = BlockEntityImportsInterop.CommandBlockEntity.PoweredWasmInterop.wasmImportPowered(handle);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,209 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0;
|
||||
|
||||
public interface IBossBarImports {
|
||||
|
||||
/**
|
||||
* Represents the color of a boss bar.
|
||||
*/
|
||||
|
||||
public enum BossBarColor {
|
||||
PINK, BLUE, RED, GREEN, YELLOW, PURPLE, WHITE
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents the notches/divisions of a boss bar.
|
||||
*/
|
||||
|
||||
public enum BossBarDivision {
|
||||
NO_DIVISION, NOTCHES_6, NOTCHES_10, NOTCHES_12, NOTCHES_20
|
||||
}
|
||||
|
||||
/**
|
||||
* Metadata flags that can be toggled on a boss bar.
|
||||
*/
|
||||
|
||||
public struct BossBarMetadata {
|
||||
public bool darkenSky;
|
||||
public bool dragonBar;
|
||||
public bool createFog;
|
||||
|
||||
public BossBarMetadata(bool darkenSky, bool dragonBar, bool createFog) {
|
||||
this.darkenSky = darkenSky;
|
||||
this.dragonBar = dragonBar;
|
||||
this.createFog = createFog;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a boss bar that can be shown to players.
|
||||
*/
|
||||
|
||||
public class BossBar: global::System.IDisposable {
|
||||
internal int Handle { get; set; }
|
||||
|
||||
public readonly record struct THandle(int Handle);
|
||||
|
||||
public BossBar(THandle handle) {
|
||||
Handle = handle.Handle;
|
||||
}
|
||||
|
||||
public void Dispose() {
|
||||
Dispose(true);
|
||||
}
|
||||
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/boss-bar@0.1.0", EntryPoint = "[resource-drop]boss-bar"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
private static extern void wasmImportResourceDrop(int p0);
|
||||
|
||||
protected virtual void Dispose(bool disposing) {
|
||||
if (disposing && Handle != 0) {
|
||||
wasmImportResourceDrop(Handle);
|
||||
Handle = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public unsafe BossBar(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent title, global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IBossBarImports.BossBarColor color, global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IBossBarImports.BossBarDivision division)
|
||||
{
|
||||
var handle = title.Handle;
|
||||
title.Handle = 0;
|
||||
var result = BossBarImportsInterop.BossBar.ConstructorWasmInterop.wasmImportConstructor(handle, (int)color, (int)division);
|
||||
this.Handle = result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent GetTitle()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = BossBarImportsInterop.BossBar.GetTitleWasmInterop.wasmImportGetTitle(handle);
|
||||
var resource = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent(new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent.THandle(result));
|
||||
return resource;
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetTitle(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent title)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var handle0 = title.Handle;
|
||||
title.Handle = 0;
|
||||
BossBarImportsInterop.BossBar.SetTitleWasmInterop.wasmImportSetTitle(handle, handle0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe float GetHealth()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = BossBarImportsInterop.BossBar.GetHealthWasmInterop.wasmImportGetHealth(handle);
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetHealth(float health)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
BossBarImportsInterop.BossBar.SetHealthWasmInterop.wasmImportSetHealth(handle, health);
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IBossBarImports.BossBarColor GetColor()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = BossBarImportsInterop.BossBar.GetColorWasmInterop.wasmImportGetColor(handle);
|
||||
return (global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IBossBarImports.BossBarColor)result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetColor(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IBossBarImports.BossBarColor color)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
BossBarImportsInterop.BossBar.SetColorWasmInterop.wasmImportSetColor(handle, (int)color);
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IBossBarImports.BossBarDivision GetDivision()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = BossBarImportsInterop.BossBar.GetDivisionWasmInterop.wasmImportGetDivision(handle);
|
||||
return (global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IBossBarImports.BossBarDivision)result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetDivision(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IBossBarImports.BossBarDivision division)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
BossBarImportsInterop.BossBar.SetDivisionWasmInterop.wasmImportSetDivision(handle, (int)division);
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IBossBarImports.BossBarMetadata GetMetadata()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc byte[3];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 1);
|
||||
BossBarImportsInterop.BossBar.GetMetadataWasmInterop.wasmImportGetMetadata(handle, ptr);
|
||||
return new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IBossBarImports.BossBarMetadata (
|
||||
(new global::System.Span<byte>((byte*)ptr + 0, 1)[0] != 0), (new global::System.Span<byte>((byte*)ptr + 1, 1)[0] != 0), (new global::System.Span<byte>((byte*)ptr + 2, 1)[0] != 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetMetadata(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IBossBarImports.BossBarMetadata metadata)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
BossBarImportsInterop.BossBar.SetMetadataWasmInterop.wasmImportSetMetadata(handle, (metadata.darkenSky ? 1 : 0), (metadata.dragonBar ? 1 : 0), (metadata.createFog ? 1 : 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe void AddPlayer(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.Player player)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var handle0 = player.Handle;
|
||||
player.Handle = 0;
|
||||
BossBarImportsInterop.BossBar.AddPlayerWasmInterop.wasmImportAddPlayer(handle, handle0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void RemovePlayer(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.Player player)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var handle0 = player.Handle;
|
||||
player.Handle = 0;
|
||||
BossBarImportsInterop.BossBar.RemovePlayerWasmInterop.wasmImportRemovePlayer(handle, handle0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::System.Collections.Generic.List<global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.Player> GetPlayers()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[3];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
BossBarImportsInterop.BossBar.GetPlayersWasmInterop.wasmImportGetPlayers(handle, ptr);
|
||||
|
||||
var array = new global::System.Collections.Generic.List<global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.Player>(new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]);
|
||||
for (int index = 0; index < new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]; ++index) {
|
||||
nint basePtr = new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0] + (index * 4);
|
||||
var resource = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.Player(new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.Player.THandle(new global::System.Span<int>((void*)((byte*)basePtr + 0), 1)[0]));
|
||||
|
||||
array.Add(resource);
|
||||
}
|
||||
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0]);
|
||||
}
|
||||
return array;
|
||||
|
||||
}
|
||||
|
||||
public unsafe void RemoveAll()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
BossBarImportsInterop.BossBar.RemoveAllWasmInterop.wasmImportRemoveAll(handle);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,105 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0;
|
||||
|
||||
public interface ICommonImports {
|
||||
|
||||
/**
|
||||
* Represents the hands of a player.
|
||||
*/
|
||||
|
||||
public enum Hand {
|
||||
LEFT, RIGHT
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents the game modes available in Minecraft.
|
||||
*/
|
||||
|
||||
public enum GameMode {
|
||||
SURVIVAL, CREATIVE, ADVENTURE, SPECTATOR
|
||||
}
|
||||
|
||||
/**
|
||||
* The 16 base Minecraft colors.
|
||||
*/
|
||||
|
||||
public enum NamedColor {
|
||||
BLACK, DARK_BLUE, DARK_GREEN, DARK_AQUA, DARK_RED, DARK_PURPLE, GOLD, GRAY, DARK_GRAY, BLUE, GREEN, AQUA, RED, LIGHT_PURPLE, YELLOW, WHITE
|
||||
}
|
||||
|
||||
/**
|
||||
* An RGB color represented by its red, green, and blue components.
|
||||
*/
|
||||
|
||||
public struct RgbColor {
|
||||
public byte r;
|
||||
public byte g;
|
||||
public byte b;
|
||||
|
||||
public RgbColor(byte r, byte g, byte b) {
|
||||
this.r = r;
|
||||
this.g = g;
|
||||
this.b = b;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* An ARGB color with alpha (transparency) channel.
|
||||
*/
|
||||
|
||||
public struct ArgbColor {
|
||||
public byte a;
|
||||
public byte r;
|
||||
public byte g;
|
||||
public byte b;
|
||||
|
||||
public ArgbColor(byte a, byte r, byte g, byte b) {
|
||||
this.a = a;
|
||||
this.r = r;
|
||||
this.g = g;
|
||||
this.b = b;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a stack of items with its type and count.
|
||||
*/
|
||||
|
||||
public struct ItemStack {
|
||||
public string registryKey;
|
||||
public byte count;
|
||||
|
||||
public ItemStack(string registryKey, byte count) {
|
||||
this.registryKey = registryKey;
|
||||
this.count = count;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents the type of click interaction in a GUI.
|
||||
*/
|
||||
|
||||
public enum ClickType {
|
||||
LEFT, RIGHT, SHIFT_LEFT, SHIFT_RIGHT, MIDDLE, DROP, CONTROL_DROP, DOUBLE_CLICK, NUMBER_KEY, UNKNOWN
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents the various poses an entity can be in.
|
||||
*/
|
||||
|
||||
public enum EntityPose {
|
||||
STANDING, FALL_FLYING, SLEEPING, SWIMMING, SPIN_ATTACK, CROUCHING, LONG_JUMPING, DYING, CROAKING, USING_TONGUE, SITTING, ROARING, SNIFFING, EMERGING, DIGGING, SLIDING, SHOOTING, INHALING
|
||||
}
|
||||
|
||||
/**
|
||||
* All Minecraft-supported locales.
|
||||
*/
|
||||
|
||||
public enum Locale {
|
||||
AF_ZA, AR_SA, AST_ES, AZ_AZ, BA_RU, BAR, BE_BY, BG_BG, BR_FR, BRB, BS_BA, CA_ES, CS_CZ, CY_GB, DA_DK, DE_AT, DE_CH, DE_DE, EL_GR, EN_AU, EN_CA, EN_GB, EN_NZ, EN_PT, EN_UD, EN_US, ENP, ENWS, EO_UY, ES_AR, ES_CL, ES_EC, ES_ES, ES_MX, ES_UY, ES_VE, ESAN, ET_EE, EU_ES, FA_IR, FI_FI, FIL_PH, FO_FO, FR_CA, FR_FR, FRA_DE, FUR_IT, FY_NL, GA_IE, GD_GB, GL_ES, HAW_US, HE_IL, HI_IN, HR_HR, HU_HU, HY_AM, ID_ID, IG_NG, IO_EN, IS_IS, ISV, IT_IT, JA_JP, JBO_EN, KA_GE, KK_KZ, KN_IN, KO_KR, KSH, KW_GB, LA_LA, LB_LU, LI_LI, LMO, LO_LA, LOL_US, LT_LT, LV_LV, LZH, MK_MK, MN_MN, MS_MY, MT_MT, NAH, NDS_DE, NL_BE, NL_NL, NN_NO, NO_NO, OC_FR, OVD, PL_PL, PT_BR, PT_PT, QYA_AA, RO_RO, RPR, RU_RU, RY_UA, SAH_SAH, SE_NO, SK_SK, SL_SI, SO_SO, SQ_AL, SR_CS, SR_SP, SV_SE, SXU, SZL, TA_IN, TH_TH, TL_PH, TLH_AA, TOK, TR_TR, TT_RU, UK_UA, VAL_ES, VEC_IT, VI_VN, YI_DE, YO_NG, ZH_CN, ZH_HK, ZH_TW, ZLM_ARAB
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,212 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0;
|
||||
|
||||
public interface IContextImports {
|
||||
|
||||
/**
|
||||
* A contextual handle for plugin-related operations.
|
||||
*/
|
||||
|
||||
public class Context: global::System.IDisposable {
|
||||
internal int Handle { get; set; }
|
||||
|
||||
public readonly record struct THandle(int Handle);
|
||||
|
||||
public Context(THandle handle) {
|
||||
Handle = handle.Handle;
|
||||
}
|
||||
|
||||
public void Dispose() {
|
||||
Dispose(true);
|
||||
}
|
||||
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/context@0.1.0", EntryPoint = "[resource-drop]context"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
private static extern void wasmImportResourceDrop(int p0);
|
||||
|
||||
protected virtual void Dispose(bool disposing) {
|
||||
if (disposing && Handle != 0) {
|
||||
wasmImportResourceDrop(Handle);
|
||||
Handle = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public unsafe void RegisterEvent(uint handlerId, global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IEventImports.EventType eventType, global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IEventImports.EventPriority eventPriority, bool blocking)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
ContextImportsInterop.Context.RegisterEventWasmInterop.wasmImportRegisterEvent(handle, unchecked((int)(handlerId)), (int)eventType, (int)eventPriority, (blocking ? 1 : 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe void RegisterCommand(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommandImports.Command command, string permission)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
var handle0 = command.Handle;
|
||||
command.Handle = 0;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(permission);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
ContextImportsInterop.Context.RegisterCommandWasmInterop.wasmImportRegisterCommand(handle, handle0, strPtr.ToInt32(), length);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe void RegisterPermission(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPermissionImports.Permission permission)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(permission.node);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
|
||||
var utf8Bytes1 = global::System.Text.Encoding.UTF8.GetBytes(permission.description);
|
||||
var length2 = utf8Bytes1.Length;
|
||||
var gcHandle3 = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes1, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr0 = gcHandle3.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle3.Free());
|
||||
|
||||
int lowered;
|
||||
int lowered10;
|
||||
|
||||
switch (permission.@default.Tag) {
|
||||
case 0: {
|
||||
|
||||
lowered = 0;
|
||||
lowered10 = 0;
|
||||
|
||||
break;
|
||||
}
|
||||
case 1: {
|
||||
|
||||
lowered = 1;
|
||||
lowered10 = 0;
|
||||
|
||||
break;
|
||||
}
|
||||
case 2: {
|
||||
global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPermissionImports.PermissionLevel payload9 = permission.@default.AsOp;
|
||||
|
||||
lowered = 2;
|
||||
lowered10 = (int)payload9;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
default: throw new global::System.ArgumentException("invalid discriminant: " + permission.@default);
|
||||
}
|
||||
|
||||
void* address;
|
||||
if ((12 * permission.children.Count) < 1024) {
|
||||
var retArea = stackalloc uint[3 * permission.children.Count + 1];
|
||||
address = MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
}
|
||||
else
|
||||
{
|
||||
var bufferSize = 12 * (nuint)permission.children.Count;
|
||||
address = global::System.Runtime.InteropServices.NativeMemory.AlignedAlloc(bufferSize, 4);
|
||||
cleanups.Add(() => global::System.Runtime.InteropServices.NativeMemory.AlignedFree(address));
|
||||
}
|
||||
|
||||
for (int index = 0; index < permission.children.Count; ++index) {
|
||||
global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPermissionImports.PermissionChild element11 = permission.children[index];
|
||||
int basePtr12 = (int)address + (index * 12);
|
||||
|
||||
var utf8Bytes14 = global::System.Text.Encoding.UTF8.GetBytes(element11.node);
|
||||
var length15 = utf8Bytes14.Length;
|
||||
var gcHandle16 = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes14, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr13 = gcHandle16.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle16.Free());
|
||||
new global::System.Span<int>((void*)((byte*)basePtr12 + 4), 1)[0] = length15;
|
||||
new global::System.Span<nint>((void*)((byte*)basePtr12 + 0), 1)[0] = (nint)strPtr13.ToInt32();
|
||||
*(byte*)(basePtr12 + 8) = (byte)(element11.value ? 1 : 0);
|
||||
|
||||
}
|
||||
|
||||
var retArea17 = stackalloc uint[4];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea17, 4);
|
||||
ContextImportsInterop.Context.RegisterPermissionWasmInterop.wasmImportRegisterPermission(handle, strPtr.ToInt32(), length, strPtr0.ToInt32(), length2, lowered, lowered10, (int)address, permission.children.Count, ptr);
|
||||
|
||||
Result<None, string> lifted;
|
||||
|
||||
switch (new global::System.Span<byte>((byte*)ptr + 0, 1)[0]) {
|
||||
case 0: {
|
||||
|
||||
lifted = Result<None, string>.Ok(new global::PluginWorld.None());
|
||||
break;
|
||||
}
|
||||
case 1: {
|
||||
|
||||
var str = global::System.Text.Encoding.UTF8.GetString((byte*)new global::System.Span<nint>((void*)((byte*)ptr + 4), 1)[0], new global::System.Span<int>((void*)((byte*)ptr + 8), 1)[0]);
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 8), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 4), 1)[0]);
|
||||
}
|
||||
|
||||
lifted = Result<None, string>.Err(str);
|
||||
break;
|
||||
}
|
||||
|
||||
default: throw new global::System.ArgumentException("invalid discriminant:" + new global::System.Span<byte>((byte*)ptr + 0, 1)[0]);
|
||||
}
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
if (lifted.IsOk)
|
||||
{
|
||||
var tmp = lifted.AsOk;
|
||||
return ;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new WitException<string>(lifted.AsErr!, 0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe string GetDataFolder()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[3];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
ContextImportsInterop.Context.GetDataFolderWasmInterop.wasmImportGetDataFolder(handle, ptr);
|
||||
|
||||
var str = global::System.Text.Encoding.UTF8.GetString((byte*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0], new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]);
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0]);
|
||||
}
|
||||
|
||||
return str;
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IServerImports.Server GetServer()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = ContextImportsInterop.Context.GetServerWasmInterop.wasmImportGetServer(handle);
|
||||
var resource = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IServerImports.Server(new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IServerImports.Server.THandle(result));
|
||||
return resource;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,163 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0;
|
||||
|
||||
public interface IGuiImports {
|
||||
|
||||
public enum GuiType {
|
||||
GENERIC_9X1, GENERIC_9X2, GENERIC_9X3, GENERIC_9X4, GENERIC_9X5, GENERIC_9X6, GENERIC_3X3, CRAFTER_3X3, ANVIL, BEACON, BLAST_FURNACE, BREWING_STAND, CRAFTING, ENCHANTMENT, FURNACE, GRINDSTONE, HOPPER, LECTERN, LOOM, MERCHANT, SHULKER_BOX, SMITHING, SMOKER, CARTOGRAPHY_TABLE, STONECUTTER
|
||||
}
|
||||
|
||||
public class Gui: global::System.IDisposable {
|
||||
internal int Handle { get; set; }
|
||||
|
||||
public readonly record struct THandle(int Handle);
|
||||
|
||||
public Gui(THandle handle) {
|
||||
Handle = handle.Handle;
|
||||
}
|
||||
|
||||
public void Dispose() {
|
||||
Dispose(true);
|
||||
}
|
||||
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/gui@0.1.0", EntryPoint = "[resource-drop]gui"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
private static extern void wasmImportResourceDrop(int p0);
|
||||
|
||||
protected virtual void Dispose(bool disposing) {
|
||||
if (disposing && Handle != 0) {
|
||||
wasmImportResourceDrop(Handle);
|
||||
Handle = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public unsafe Gui(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IGuiImports.GuiType type, global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent title)
|
||||
{
|
||||
var handle = title.Handle;
|
||||
title.Handle = 0;
|
||||
var result = GuiImportsInterop.Gui.ConstructorWasmInterop.wasmImportConstructor((int)type, handle);
|
||||
this.Handle = result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetItem(uint slot, global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommonImports.ItemStack item)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(item.registryKey);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
GuiImportsInterop.Gui.SetItemWasmInterop.wasmImportSetItem(handle, unchecked((int)(slot)), strPtr.ToInt32(), length, item.count);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommonImports.ItemStack? GetItem(uint slot)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[5];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
GuiImportsInterop.Gui.GetItemWasmInterop.wasmImportGetItem(handle, unchecked((int)(slot)), ptr);
|
||||
|
||||
global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommonImports.ItemStack? lifted;
|
||||
|
||||
switch (new global::System.Span<byte>((byte*)ptr + 0, 1)[0]) {
|
||||
case 0: {
|
||||
lifted = null;
|
||||
break;
|
||||
}
|
||||
|
||||
case 1: {
|
||||
|
||||
var str = global::System.Text.Encoding.UTF8.GetString((byte*)new global::System.Span<nint>((void*)((byte*)ptr + 4), 1)[0], new global::System.Span<int>((void*)((byte*)ptr + 8), 1)[0]);
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 8), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 4), 1)[0]);
|
||||
}
|
||||
|
||||
lifted = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommonImports.ItemStack (
|
||||
str, ((byte)new global::System.Span<byte>((byte*)ptr + 12, 1)[0]));
|
||||
break;
|
||||
}
|
||||
|
||||
default: throw new global::System.ArgumentException("invalid discriminant: " + (new global::System.Span<byte>((byte*)ptr + 0, 1)[0]));
|
||||
}
|
||||
return lifted;
|
||||
|
||||
}
|
||||
|
||||
public new unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IGuiImports.GuiType GetType()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = GuiImportsInterop.Gui.GetTypeWasmInterop.wasmImportGetType(handle);
|
||||
return (global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IGuiImports.GuiType)result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent GetTitle()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = GuiImportsInterop.Gui.GetTitleWasmInterop.wasmImportGetTitle(handle);
|
||||
var resource = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent(new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent.THandle(result));
|
||||
return resource;
|
||||
|
||||
}
|
||||
|
||||
public unsafe uint GetSize()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = GuiImportsInterop.Gui.GetSizeWasmInterop.wasmImportGetSize(handle);
|
||||
return unchecked((uint)(result));
|
||||
|
||||
}
|
||||
|
||||
public unsafe void ClearItems()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
GuiImportsInterop.Gui.ClearItemsWasmInterop.wasmImportClearItems(handle);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetAllowGrabItems(bool allow)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
GuiImportsInterop.Gui.SetAllowGrabItemsWasmInterop.wasmImportSetAllowGrabItems(handle, (allow ? 1 : 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool GetAllowGrabItems()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = GuiImportsInterop.Gui.GetAllowGrabItemsWasmInterop.wasmImportGetAllowGrabItems(handle);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetAllowPutItems(bool allow)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
GuiImportsInterop.Gui.SetAllowPutItemsWasmInterop.wasmImportSetAllowPutItems(handle, (allow ? 1 : 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool GetAllowPutItems()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = GuiImportsInterop.Gui.GetAllowPutItemsWasmInterop.wasmImportGetAllowPutItems(handle);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,63 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0;
|
||||
|
||||
public interface II18nImports {
|
||||
|
||||
public static unsafe string Translate(string key, global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommonImports.Locale locale)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(key);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
|
||||
var retArea = stackalloc uint[3];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
I18nImportsInterop.TranslateWasmInterop.wasmImportTranslate(strPtr.ToInt32(), length, (int)locale, ptr);
|
||||
|
||||
var str = global::System.Text.Encoding.UTF8.GetString((byte*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0], new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]);
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0]);
|
||||
}
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
return str;
|
||||
|
||||
}
|
||||
|
||||
public static unsafe void LoadTranslations(string @namespace, string json, global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommonImports.Locale locale)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(@namespace);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
|
||||
var utf8Bytes1 = global::System.Text.Encoding.UTF8.GetBytes(json);
|
||||
var length2 = utf8Bytes1.Length;
|
||||
var gcHandle3 = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes1, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr0 = gcHandle3.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle3.Free());
|
||||
I18nImportsInterop.LoadTranslationsWasmInterop.wasmImportLoadTranslations(strPtr.ToInt32(), length, strPtr0.ToInt32(), length2, (int)locale);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,66 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0;
|
||||
|
||||
public interface ILoggingImports {
|
||||
|
||||
public enum Level {
|
||||
TRACE, DEBUG, INFO, WARN, ERROR
|
||||
}
|
||||
|
||||
public static unsafe void Log(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ILoggingImports.Level level, string message)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(message);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
LoggingImportsInterop.LogWasmInterop.wasmImportLog((int)level, strPtr.ToInt32(), length);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static unsafe void LogTracing(byte[] @event)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(@event, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var listPtr = gcHandle.AddrOfPinnedObject();
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
LoggingImportsInterop.LogTracingWasmInterop.wasmImportLogTracing((nint)listPtr, (@event).Length);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static unsafe void LogTracing(global::System.Span<byte> @event)
|
||||
{
|
||||
fixed (void* listPtr = @event)
|
||||
{
|
||||
LoggingImportsInterop.LogTracingWasmInterop.wasmImportLogTracing((nint)listPtr, (@event).Length);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static unsafe void LogTracing(global::System.Memory<byte> @event)
|
||||
{
|
||||
fixed (void* listPtr = @event.Span)
|
||||
{
|
||||
LoggingImportsInterop.LogTracingWasmInterop.wasmImportLogTracing((nint)listPtr, (@event).Length);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,100 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0;
|
||||
|
||||
public interface IPermissionImports {
|
||||
|
||||
/**
|
||||
* Represents the player's permission level
|
||||
*
|
||||
* Permission levels determine the player's access to commands and server operations.
|
||||
* Each numeric level corresponds to a specific role:
|
||||
* - `Zero`: `normal`: Player can use basic commands.
|
||||
* - `One`: `moderator`: Player can bypass spawn protection.
|
||||
* - `Two`: `gamemaster`: Player or executor can use more commands and player can use command blocks.
|
||||
* - `Three`: `admin`: Player or executor can use commands related to multiplayer management.
|
||||
* - `Four`: `owner`: Player or executor can use all of the commands, including commands related to server management.
|
||||
*/
|
||||
|
||||
public enum PermissionLevel {
|
||||
ZERO, ONE, TWO, THREE, FOUR
|
||||
}
|
||||
|
||||
/**
|
||||
* Describes the default behavior for permissions
|
||||
*/
|
||||
|
||||
public class PermissionDefault {
|
||||
public readonly byte Tag;
|
||||
private readonly object? value;
|
||||
|
||||
private PermissionDefault(byte tag, object? value) {
|
||||
this.Tag = tag;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public static PermissionDefault Deny() {
|
||||
return new PermissionDefault(Tags.Deny, null);
|
||||
}
|
||||
|
||||
public static PermissionDefault Allow() {
|
||||
return new PermissionDefault(Tags.Allow, null);
|
||||
}
|
||||
|
||||
public static PermissionDefault Op(PermissionLevel op) {
|
||||
return new PermissionDefault(Tags.Op, op);
|
||||
}
|
||||
|
||||
public PermissionLevel AsOp
|
||||
{
|
||||
get
|
||||
{
|
||||
if (Tag == Tags.Op)
|
||||
return (PermissionLevel)value!;
|
||||
else
|
||||
throw new global::System.ArgumentException("expected Op, got " + Tag);
|
||||
}
|
||||
}
|
||||
|
||||
public class Tags {
|
||||
public const byte Deny = 0;
|
||||
public const byte Allow = 1;
|
||||
public const byte Op = 2;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A child permission entry
|
||||
*/
|
||||
|
||||
public struct PermissionChild {
|
||||
public string node;
|
||||
public bool value;
|
||||
|
||||
public PermissionChild(string node, bool value) {
|
||||
this.node = node;
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines a permission node in the system
|
||||
*/
|
||||
|
||||
public struct Permission {
|
||||
public string node;
|
||||
public string description;
|
||||
public PermissionDefault @default;
|
||||
public global::System.Collections.Generic.List<PermissionChild> children;
|
||||
|
||||
public Permission(string node, string description, PermissionDefault @default, global::System.Collections.Generic.List<PermissionChild> children) {
|
||||
this.node = node;
|
||||
this.description = description;
|
||||
this.@default = @default;
|
||||
this.children = children;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,924 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0;
|
||||
|
||||
public interface IPlayerImports {
|
||||
|
||||
/**
|
||||
* Various abilities a player can have.
|
||||
*/
|
||||
|
||||
public struct PlayerAbilities {
|
||||
public bool invulnerable;
|
||||
public bool flying;
|
||||
public bool allowFlying;
|
||||
public bool creative;
|
||||
public bool allowModifyWorld;
|
||||
public float flySpeed;
|
||||
public float walkSpeed;
|
||||
|
||||
public PlayerAbilities(bool invulnerable, bool flying, bool allowFlying, bool creative, bool allowModifyWorld, float flySpeed, float walkSpeed) {
|
||||
this.invulnerable = invulnerable;
|
||||
this.flying = flying;
|
||||
this.allowFlying = allowFlying;
|
||||
this.creative = creative;
|
||||
this.allowModifyWorld = allowModifyWorld;
|
||||
this.flySpeed = flySpeed;
|
||||
this.walkSpeed = walkSpeed;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a player's skin textures and metadata.
|
||||
*/
|
||||
|
||||
public struct PlayerSkin {
|
||||
public string value;
|
||||
public string? signature;
|
||||
|
||||
public PlayerSkin(string value, string? signature) {
|
||||
this.value = value;
|
||||
this.signature = signature;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Flags representing visible skin parts.
|
||||
*/
|
||||
|
||||
public enum SkinParts : byte {
|
||||
CAPE = 1 << 0,
|
||||
JACKET = 1 << 1,
|
||||
LEFT_SLEEVE = 1 << 2,
|
||||
RIGHT_SLEEVE = 1 << 3,
|
||||
LEFT_PANTS_LEG = 1 << 4,
|
||||
RIGHT_PANTS_LEG = 1 << 5,
|
||||
HAT = 1 << 6,
|
||||
}
|
||||
|
||||
/**
|
||||
* A handle to a player on the server.
|
||||
*/
|
||||
|
||||
public class Player: global::System.IDisposable {
|
||||
internal int Handle { get; set; }
|
||||
|
||||
public readonly record struct THandle(int Handle);
|
||||
|
||||
public Player(THandle handle) {
|
||||
Handle = handle.Handle;
|
||||
}
|
||||
|
||||
public void Dispose() {
|
||||
Dispose(true);
|
||||
}
|
||||
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[resource-drop]player"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
private static extern void wasmImportResourceDrop(int p0);
|
||||
|
||||
protected virtual void Dispose(bool disposing) {
|
||||
if (disposing && Handle != 0) {
|
||||
wasmImportResourceDrop(Handle);
|
||||
Handle = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.Entity AsEntity()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = PlayerImportsInterop.Player.AsEntityWasmInterop.wasmImportAsEntity(handle);
|
||||
var resource = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.Entity(new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.Entity.THandle(result));
|
||||
return resource;
|
||||
|
||||
}
|
||||
|
||||
public unsafe string GetId()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[3];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
PlayerImportsInterop.Player.GetIdWasmInterop.wasmImportGetId(handle, ptr);
|
||||
|
||||
var str = global::System.Text.Encoding.UTF8.GetString((byte*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0], new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]);
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0]);
|
||||
}
|
||||
|
||||
return str;
|
||||
|
||||
}
|
||||
|
||||
public unsafe string GetName()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[3];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
PlayerImportsInterop.Player.GetNameWasmInterop.wasmImportGetName(handle, ptr);
|
||||
|
||||
var str = global::System.Text.Encoding.UTF8.GetString((byte*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0], new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]);
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0]);
|
||||
}
|
||||
|
||||
return str;
|
||||
|
||||
}
|
||||
|
||||
public unsafe (double, double, double) GetPosition()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc ulong[4];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 8);
|
||||
PlayerImportsInterop.Player.GetPositionWasmInterop.wasmImportGetPosition(handle, ptr);
|
||||
return (new global::System.Span<double>((void*)((byte*)ptr + 0), 1)[0], new global::System.Span<double>((void*)((byte*)ptr + 8), 1)[0], new global::System.Span<double>((void*)((byte*)ptr + 16), 1)[0]);
|
||||
|
||||
}
|
||||
|
||||
public unsafe float GetYaw()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = PlayerImportsInterop.Player.GetYawWasmInterop.wasmImportGetYaw(handle);
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe float GetPitch()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = PlayerImportsInterop.Player.GetPitchWasmInterop.wasmImportGetPitch(handle);
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.World GetWorld()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = PlayerImportsInterop.Player.GetWorldWasmInterop.wasmImportGetWorld(handle);
|
||||
var resource = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.World(new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.World.THandle(result));
|
||||
return resource;
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommonImports.GameMode GetGamemode()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = PlayerImportsInterop.Player.GetGamemodeWasmInterop.wasmImportGetGamemode(handle);
|
||||
return (global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommonImports.GameMode)result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool SetGamemode(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommonImports.GameMode mode)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = PlayerImportsInterop.Player.SetGamemodeWasmInterop.wasmImportSetGamemode(handle, (int)mode);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe string GetLocale()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[3];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
PlayerImportsInterop.Player.GetLocaleWasmInterop.wasmImportGetLocale(handle, ptr);
|
||||
|
||||
var str = global::System.Text.Encoding.UTF8.GetString((byte*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0], new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]);
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0]);
|
||||
}
|
||||
|
||||
return str;
|
||||
|
||||
}
|
||||
|
||||
public unsafe uint GetPing()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = PlayerImportsInterop.Player.GetPingWasmInterop.wasmImportGetPing(handle);
|
||||
return unchecked((uint)(result));
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPermissionImports.PermissionLevel GetPermissionLevel()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = PlayerImportsInterop.Player.GetPermissionLevelWasmInterop.wasmImportGetPermissionLevel(handle);
|
||||
return (global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPermissionImports.PermissionLevel)result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetPermissionLevel(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPermissionImports.PermissionLevel level)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
PlayerImportsInterop.Player.SetPermissionLevelWasmInterop.wasmImportSetPermissionLevel(handle, (int)level);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetPermission(string node, bool value)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(node);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
PlayerImportsInterop.Player.SetPermissionWasmInterop.wasmImportSetPermission(handle, strPtr.ToInt32(), length, (value ? 1 : 0));
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe void UnsetPermission(string node)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(node);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
PlayerImportsInterop.Player.UnsetPermissionWasmInterop.wasmImportUnsetPermission(handle, strPtr.ToInt32(), length);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool? HasPermissionSet(string node)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(node);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
|
||||
var retArea = stackalloc byte[2];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 1);
|
||||
PlayerImportsInterop.Player.HasPermissionSetWasmInterop.wasmImportHasPermissionSet(handle, strPtr.ToInt32(), length, ptr);
|
||||
|
||||
bool? lifted;
|
||||
|
||||
switch (new global::System.Span<byte>((byte*)ptr + 0, 1)[0]) {
|
||||
case 0: {
|
||||
lifted = null;
|
||||
break;
|
||||
}
|
||||
|
||||
case 1: {
|
||||
|
||||
lifted = (new global::System.Span<byte>((byte*)ptr + 1, 1)[0] != 0);
|
||||
break;
|
||||
}
|
||||
|
||||
default: throw new global::System.ArgumentException("invalid discriminant: " + (new global::System.Span<byte>((byte*)ptr + 0, 1)[0]));
|
||||
}
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
return lifted;
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool HasPermission(string node)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(node);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
var result = PlayerImportsInterop.Player.HasPermissionWasmInterop.wasmImportHasPermission(handle, strPtr.ToInt32(), length);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent GetDisplayName()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = PlayerImportsInterop.Player.GetDisplayNameWasmInterop.wasmImportGetDisplayName(handle);
|
||||
var resource = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent(new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent.THandle(result));
|
||||
return resource;
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetDisplayName(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent displayName)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var handle0 = displayName.Handle;
|
||||
displayName.Handle = 0;
|
||||
PlayerImportsInterop.Player.SetDisplayNameWasmInterop.wasmImportSetDisplayName(handle, handle0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SendSystemMessage(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent text, bool overlay)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var handle0 = text.Handle;
|
||||
text.Handle = 0;
|
||||
PlayerImportsInterop.Player.SendSystemMessageWasmInterop.wasmImportSendSystemMessage(handle, handle0, (overlay ? 1 : 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetTabListHeaderFooter(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent header, global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent footer)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var handle0 = header.Handle;
|
||||
header.Handle = 0;
|
||||
var handle1 = footer.Handle;
|
||||
footer.Handle = 0;
|
||||
PlayerImportsInterop.Player.SetTabListHeaderFooterWasmInterop.wasmImportSetTabListHeaderFooter(handle, handle0, handle1);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetTabListOrder(int order)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
PlayerImportsInterop.Player.SetTabListOrderWasmInterop.wasmImportSetTabListOrder(handle, order);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetTabListLatency(int latency)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
PlayerImportsInterop.Player.SetTabListLatencyWasmInterop.wasmImportSetTabListLatency(handle, latency);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetTabListListed(bool listed)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
PlayerImportsInterop.Player.SetTabListListedWasmInterop.wasmImportSetTabListListed(handle, (listed ? 1 : 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe void ShowTitle(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent text)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var handle0 = text.Handle;
|
||||
text.Handle = 0;
|
||||
PlayerImportsInterop.Player.ShowTitleWasmInterop.wasmImportShowTitle(handle, handle0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void ShowSubtitle(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent text)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var handle0 = text.Handle;
|
||||
text.Handle = 0;
|
||||
PlayerImportsInterop.Player.ShowSubtitleWasmInterop.wasmImportShowSubtitle(handle, handle0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void ShowActionbar(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent text)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var handle0 = text.Handle;
|
||||
text.Handle = 0;
|
||||
PlayerImportsInterop.Player.ShowActionbarWasmInterop.wasmImportShowActionbar(handle, handle0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SendTitleAnimation(int fadeIn, int stay, int fadeOut)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
PlayerImportsInterop.Player.SendTitleAnimationWasmInterop.wasmImportSendTitleAnimation(handle, fadeIn, stay, fadeOut);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void Teleport((double, double, double) position, float? yaw, float? pitch, global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.World world)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
int lowered;
|
||||
float lowered3;
|
||||
|
||||
if (yaw != null) {
|
||||
var payload2 = (float) yaw;
|
||||
|
||||
lowered = 1;
|
||||
lowered3 = payload2;
|
||||
|
||||
} else {
|
||||
|
||||
lowered = 0;
|
||||
lowered3 = 0.0F;
|
||||
|
||||
}
|
||||
|
||||
int lowered10;
|
||||
float lowered11;
|
||||
|
||||
if (pitch != null) {
|
||||
var payload9 = (float) pitch;
|
||||
|
||||
lowered10 = 1;
|
||||
lowered11 = payload9;
|
||||
|
||||
} else {
|
||||
|
||||
lowered10 = 0;
|
||||
lowered11 = 0.0F;
|
||||
|
||||
}
|
||||
var handle12 = world.Handle;
|
||||
world.Handle = 0;
|
||||
PlayerImportsInterop.Player.TeleportWasmInterop.wasmImportTeleport(handle, position.Item1, position.Item2, position.Item3, lowered, lowered3, lowered10, lowered11, handle12);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void TeleportWorld(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.World worldRef, (double, double, double) position, float? yaw, float? pitch)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var handle0 = worldRef.Handle;
|
||||
worldRef.Handle = 0;
|
||||
|
||||
int lowered;
|
||||
float lowered4;
|
||||
|
||||
if (yaw != null) {
|
||||
var payload3 = (float) yaw;
|
||||
|
||||
lowered = 1;
|
||||
lowered4 = payload3;
|
||||
|
||||
} else {
|
||||
|
||||
lowered = 0;
|
||||
lowered4 = 0.0F;
|
||||
|
||||
}
|
||||
|
||||
int lowered11;
|
||||
float lowered12;
|
||||
|
||||
if (pitch != null) {
|
||||
var payload10 = (float) pitch;
|
||||
|
||||
lowered11 = 1;
|
||||
lowered12 = payload10;
|
||||
|
||||
} else {
|
||||
|
||||
lowered11 = 0;
|
||||
lowered12 = 0.0F;
|
||||
|
||||
}
|
||||
PlayerImportsInterop.Player.TeleportWorldWasmInterop.wasmImportTeleportWorld(handle, handle0, position.Item1, position.Item2, position.Item3, lowered, lowered4, lowered11, lowered12);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void Kick(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent message)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var handle0 = message.Handle;
|
||||
message.Handle = 0;
|
||||
PlayerImportsInterop.Player.KickWasmInterop.wasmImportKick(handle, handle0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void Respawn()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
PlayerImportsInterop.Player.RespawnWasmInterop.wasmImportRespawn(handle);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void OpenGui(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IGuiImports.Gui guiRef)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var handle0 = guiRef.Handle;
|
||||
guiRef.Handle = 0;
|
||||
PlayerImportsInterop.Player.OpenGuiWasmInterop.wasmImportOpenGui(handle, handle0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void Ban(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent? reason)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
int lowered;
|
||||
int lowered4;
|
||||
|
||||
if (reason != null) {
|
||||
var payload2 = (global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent) reason;
|
||||
var handle3 = payload2.Handle;
|
||||
payload2.Handle = 0;
|
||||
|
||||
lowered = 1;
|
||||
lowered4 = handle3;
|
||||
|
||||
} else {
|
||||
|
||||
lowered = 0;
|
||||
lowered4 = 0;
|
||||
|
||||
}
|
||||
PlayerImportsInterop.Player.BanWasmInterop.wasmImportBan(handle, lowered, lowered4);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void BanIp(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent? reason)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
int lowered;
|
||||
int lowered4;
|
||||
|
||||
if (reason != null) {
|
||||
var payload2 = (global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent) reason;
|
||||
var handle3 = payload2.Handle;
|
||||
payload2.Handle = 0;
|
||||
|
||||
lowered = 1;
|
||||
lowered4 = handle3;
|
||||
|
||||
} else {
|
||||
|
||||
lowered = 0;
|
||||
lowered4 = 0;
|
||||
|
||||
}
|
||||
PlayerImportsInterop.Player.BanIpWasmInterop.wasmImportBanIp(handle, lowered, lowered4);
|
||||
|
||||
}
|
||||
|
||||
public unsafe byte GetSelectedSlot()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = PlayerImportsInterop.Player.GetSelectedSlotWasmInterop.wasmImportGetSelectedSlot(handle);
|
||||
return ((byte)result);
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommonImports.ItemStack? GetItemInHand(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommonImports.Hand hand)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[5];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
PlayerImportsInterop.Player.GetItemInHandWasmInterop.wasmImportGetItemInHand(handle, (int)hand, ptr);
|
||||
|
||||
global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommonImports.ItemStack? lifted;
|
||||
|
||||
switch (new global::System.Span<byte>((byte*)ptr + 0, 1)[0]) {
|
||||
case 0: {
|
||||
lifted = null;
|
||||
break;
|
||||
}
|
||||
|
||||
case 1: {
|
||||
|
||||
var str = global::System.Text.Encoding.UTF8.GetString((byte*)new global::System.Span<nint>((void*)((byte*)ptr + 4), 1)[0], new global::System.Span<int>((void*)((byte*)ptr + 8), 1)[0]);
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 8), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 4), 1)[0]);
|
||||
}
|
||||
|
||||
lifted = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommonImports.ItemStack (
|
||||
str, ((byte)new global::System.Span<byte>((byte*)ptr + 12, 1)[0]));
|
||||
break;
|
||||
}
|
||||
|
||||
default: throw new global::System.ArgumentException("invalid discriminant: " + (new global::System.Span<byte>((byte*)ptr + 0, 1)[0]));
|
||||
}
|
||||
return lifted;
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommonImports.ItemStack? GetInventoryItem(byte slot)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[5];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
PlayerImportsInterop.Player.GetInventoryItemWasmInterop.wasmImportGetInventoryItem(handle, slot, ptr);
|
||||
|
||||
global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommonImports.ItemStack? lifted;
|
||||
|
||||
switch (new global::System.Span<byte>((byte*)ptr + 0, 1)[0]) {
|
||||
case 0: {
|
||||
lifted = null;
|
||||
break;
|
||||
}
|
||||
|
||||
case 1: {
|
||||
|
||||
var str = global::System.Text.Encoding.UTF8.GetString((byte*)new global::System.Span<nint>((void*)((byte*)ptr + 4), 1)[0], new global::System.Span<int>((void*)((byte*)ptr + 8), 1)[0]);
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 8), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 4), 1)[0]);
|
||||
}
|
||||
|
||||
lifted = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommonImports.ItemStack (
|
||||
str, ((byte)new global::System.Span<byte>((byte*)ptr + 12, 1)[0]));
|
||||
break;
|
||||
}
|
||||
|
||||
default: throw new global::System.ArgumentException("invalid discriminant: " + (new global::System.Span<byte>((byte*)ptr + 0, 1)[0]));
|
||||
}
|
||||
return lifted;
|
||||
|
||||
}
|
||||
|
||||
public unsafe float GetHealth()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = PlayerImportsInterop.Player.GetHealthWasmInterop.wasmImportGetHealth(handle);
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetHealth(float health)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
PlayerImportsInterop.Player.SetHealthWasmInterop.wasmImportSetHealth(handle, health);
|
||||
|
||||
}
|
||||
|
||||
public unsafe float GetMaxHealth()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = PlayerImportsInterop.Player.GetMaxHealthWasmInterop.wasmImportGetMaxHealth(handle);
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetMaxHealth(float maxHealth)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
PlayerImportsInterop.Player.SetMaxHealthWasmInterop.wasmImportSetMaxHealth(handle, maxHealth);
|
||||
|
||||
}
|
||||
|
||||
public unsafe byte GetFoodLevel()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = PlayerImportsInterop.Player.GetFoodLevelWasmInterop.wasmImportGetFoodLevel(handle);
|
||||
return ((byte)result);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetFoodLevel(byte foodLevel)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
PlayerImportsInterop.Player.SetFoodLevelWasmInterop.wasmImportSetFoodLevel(handle, foodLevel);
|
||||
|
||||
}
|
||||
|
||||
public unsafe float GetSaturation()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = PlayerImportsInterop.Player.GetSaturationWasmInterop.wasmImportGetSaturation(handle);
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetSaturation(float saturation)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
PlayerImportsInterop.Player.SetSaturationWasmInterop.wasmImportSetSaturation(handle, saturation);
|
||||
|
||||
}
|
||||
|
||||
public unsafe float GetExhaustion()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = PlayerImportsInterop.Player.GetExhaustionWasmInterop.wasmImportGetExhaustion(handle);
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetExhaustion(float exhaustion)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
PlayerImportsInterop.Player.SetExhaustionWasmInterop.wasmImportSetExhaustion(handle, exhaustion);
|
||||
|
||||
}
|
||||
|
||||
public unsafe float GetAbsorption()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = PlayerImportsInterop.Player.GetAbsorptionWasmInterop.wasmImportGetAbsorption(handle);
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetAbsorption(float absorption)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
PlayerImportsInterop.Player.SetAbsorptionWasmInterop.wasmImportSetAbsorption(handle, absorption);
|
||||
|
||||
}
|
||||
|
||||
public unsafe int GetExperienceLevel()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = PlayerImportsInterop.Player.GetExperienceLevelWasmInterop.wasmImportGetExperienceLevel(handle);
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe float GetExperienceProgress()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = PlayerImportsInterop.Player.GetExperienceProgressWasmInterop.wasmImportGetExperienceProgress(handle);
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe int GetExperiencePoints()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = PlayerImportsInterop.Player.GetExperiencePointsWasmInterop.wasmImportGetExperiencePoints(handle);
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetExperienceLevel(int level)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
PlayerImportsInterop.Player.SetExperienceLevelWasmInterop.wasmImportSetExperienceLevel(handle, level);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetExperienceProgress(float progress)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
PlayerImportsInterop.Player.SetExperienceProgressWasmInterop.wasmImportSetExperienceProgress(handle, progress);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetExperiencePoints(int points)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
PlayerImportsInterop.Player.SetExperiencePointsWasmInterop.wasmImportSetExperiencePoints(handle, points);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void AddExperienceLevels(int levels)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
PlayerImportsInterop.Player.AddExperienceLevelsWasmInterop.wasmImportAddExperienceLevels(handle, levels);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void AddExperiencePoints(int points)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
PlayerImportsInterop.Player.AddExperiencePointsWasmInterop.wasmImportAddExperiencePoints(handle, points);
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool IsFlying()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = PlayerImportsInterop.Player.IsFlyingWasmInterop.wasmImportIsFlying(handle);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetFlying(bool flying)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
PlayerImportsInterop.Player.SetFlyingWasmInterop.wasmImportSetFlying(handle, (flying ? 1 : 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.PlayerAbilities GetAbilities()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[5];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
PlayerImportsInterop.Player.GetAbilitiesWasmInterop.wasmImportGetAbilities(handle, ptr);
|
||||
return new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.PlayerAbilities (
|
||||
(new global::System.Span<byte>((byte*)ptr + 0, 1)[0] != 0), (new global::System.Span<byte>((byte*)ptr + 1, 1)[0] != 0), (new global::System.Span<byte>((byte*)ptr + 2, 1)[0] != 0), (new global::System.Span<byte>((byte*)ptr + 3, 1)[0] != 0), (new global::System.Span<byte>((byte*)ptr + 4, 1)[0] != 0), new global::System.Span<float>((void*)((byte*)ptr + 8), 1)[0], new global::System.Span<float>((void*)((byte*)ptr + 12), 1)[0]);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetAbilities(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.PlayerAbilities abilities)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
PlayerImportsInterop.Player.SetAbilitiesWasmInterop.wasmImportSetAbilities(handle, (abilities.invulnerable ? 1 : 0), (abilities.flying ? 1 : 0), (abilities.allowFlying ? 1 : 0), (abilities.creative ? 1 : 0), (abilities.allowModifyWorld ? 1 : 0), abilities.flySpeed, abilities.walkSpeed);
|
||||
|
||||
}
|
||||
|
||||
public unsafe string GetIp()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[3];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
PlayerImportsInterop.Player.GetIpWasmInterop.wasmImportGetIp(handle, ptr);
|
||||
|
||||
var str = global::System.Text.Encoding.UTF8.GetString((byte*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0], new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]);
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0]);
|
||||
}
|
||||
|
||||
return str;
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.PlayerSkin? GetSkin()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[7];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
PlayerImportsInterop.Player.GetSkinWasmInterop.wasmImportGetSkin(handle, ptr);
|
||||
|
||||
global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.PlayerSkin? lifted7;
|
||||
|
||||
switch (new global::System.Span<byte>((byte*)ptr + 0, 1)[0]) {
|
||||
case 0: {
|
||||
lifted7 = null;
|
||||
break;
|
||||
}
|
||||
|
||||
case 1: {
|
||||
|
||||
var str = global::System.Text.Encoding.UTF8.GetString((byte*)new global::System.Span<nint>((void*)((byte*)ptr + 4), 1)[0], new global::System.Span<int>((void*)((byte*)ptr + 8), 1)[0]);
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 8), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 4), 1)[0]);
|
||||
}
|
||||
|
||||
string? lifted;
|
||||
|
||||
switch (new global::System.Span<byte>((byte*)ptr + 12, 1)[0]) {
|
||||
case 0: {
|
||||
lifted = null;
|
||||
break;
|
||||
}
|
||||
|
||||
case 1: {
|
||||
|
||||
var str6 = global::System.Text.Encoding.UTF8.GetString((byte*)new global::System.Span<nint>((void*)((byte*)ptr + 16), 1)[0], new global::System.Span<int>((void*)((byte*)ptr + 20), 1)[0]);
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 20), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 16), 1)[0]);
|
||||
}
|
||||
|
||||
lifted = str6;
|
||||
break;
|
||||
}
|
||||
|
||||
default: throw new global::System.ArgumentException("invalid discriminant: " + (new global::System.Span<byte>((byte*)ptr + 12, 1)[0]));
|
||||
}
|
||||
|
||||
lifted7 = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.PlayerSkin (
|
||||
str, lifted);
|
||||
break;
|
||||
}
|
||||
|
||||
default: throw new global::System.ArgumentException("invalid discriminant: " + (new global::System.Span<byte>((byte*)ptr + 0, 1)[0]));
|
||||
}
|
||||
return lifted7;
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.SkinParts GetSkinParts()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = PlayerImportsInterop.Player.GetSkinPartsWasmInterop.wasmImportGetSkinParts(handle);
|
||||
return (global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.SkinParts)(result);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetSkinParts(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.SkinParts parts)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
PlayerImportsInterop.Player.SetSkinPartsWasmInterop.wasmImportSetSkinParts(handle, (int)parts);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,29 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0;
|
||||
|
||||
public interface ISchedulerImports {
|
||||
|
||||
public static unsafe uint ScheduleDelayedTask(uint handlerId, ulong delayTicks)
|
||||
{
|
||||
var result = SchedulerImportsInterop.ScheduleDelayedTaskWasmInterop.wasmImportScheduleDelayedTask(unchecked((int)(handlerId)), unchecked((long)(delayTicks)));
|
||||
return unchecked((uint)(result));
|
||||
|
||||
}
|
||||
|
||||
public static unsafe uint ScheduleRepeatingTask(uint handlerId, ulong delayTicks, ulong periodTicks)
|
||||
{
|
||||
var result = SchedulerImportsInterop.ScheduleRepeatingTaskWasmInterop.wasmImportScheduleRepeatingTask(unchecked((int)(handlerId)), unchecked((long)(delayTicks)), unchecked((long)(periodTicks)));
|
||||
return unchecked((uint)(result));
|
||||
|
||||
}
|
||||
|
||||
public static unsafe void CancelTask(uint taskId)
|
||||
{
|
||||
SchedulerImportsInterop.CancelTaskWasmInterop.wasmImportCancelTask(unchecked((int)(taskId)));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,314 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0;
|
||||
|
||||
public interface IScoreboardImports {
|
||||
|
||||
public enum RenderType {
|
||||
INTEGER, HEARTS
|
||||
}
|
||||
|
||||
public enum DisplaySlot {
|
||||
PLAYER_LIST, SIDEBAR, BELOW_NAME, SIDEBAR_TEAM_BLACK, SIDEBAR_TEAM_DARK_BLUE, SIDEBAR_TEAM_DARK_GREEN, SIDEBAR_TEAM_DARK_AQUA, SIDEBAR_TEAM_DARK_RED, SIDEBAR_TEAM_DARK_PURPLE, SIDEBAR_TEAM_GOLD, SIDEBAR_TEAM_GRAY, SIDEBAR_TEAM_DARK_GRAY, SIDEBAR_TEAM_BLUE, SIDEBAR_TEAM_GREEN, SIDEBAR_TEAM_AQUA, SIDEBAR_TEAM_RED, SIDEBAR_TEAM_LIGHT_PURPLE, SIDEBAR_TEAM_YELLOW, SIDEBAR_TEAM_WHITE
|
||||
}
|
||||
|
||||
public enum NametagVisibility {
|
||||
ALWAYS, NEVER, HIDE_FOR_OTHER_TEAMS, HIDE_FOR_OWN_TEAM
|
||||
}
|
||||
|
||||
public enum CollisionRule {
|
||||
ALWAYS, NEVER, PUSH_OTHER_TEAMS, PUSH_OWN_TEAM
|
||||
}
|
||||
|
||||
public struct TeamSettings {
|
||||
public global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent displayName;
|
||||
public bool friendlyFire;
|
||||
public bool seeFriendlyInvisibles;
|
||||
public NametagVisibility nametagVisibility;
|
||||
public CollisionRule collisionRule;
|
||||
public global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommonImports.NamedColor color;
|
||||
public global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent prefix;
|
||||
public global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent suffix;
|
||||
|
||||
public TeamSettings(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent displayName, bool friendlyFire, bool seeFriendlyInvisibles, NametagVisibility nametagVisibility, CollisionRule collisionRule, global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommonImports.NamedColor color, global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent prefix, global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent suffix) {
|
||||
this.displayName = displayName;
|
||||
this.friendlyFire = friendlyFire;
|
||||
this.seeFriendlyInvisibles = seeFriendlyInvisibles;
|
||||
this.nametagVisibility = nametagVisibility;
|
||||
this.collisionRule = collisionRule;
|
||||
this.color = color;
|
||||
this.prefix = prefix;
|
||||
this.suffix = suffix;
|
||||
}
|
||||
}
|
||||
|
||||
public class Scoreboard: global::System.IDisposable {
|
||||
internal int Handle { get; set; }
|
||||
|
||||
public readonly record struct THandle(int Handle);
|
||||
|
||||
public Scoreboard(THandle handle) {
|
||||
Handle = handle.Handle;
|
||||
}
|
||||
|
||||
public void Dispose() {
|
||||
Dispose(true);
|
||||
}
|
||||
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/scoreboard@0.1.0", EntryPoint = "[resource-drop]scoreboard"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
private static extern void wasmImportResourceDrop(int p0);
|
||||
|
||||
protected virtual void Dispose(bool disposing) {
|
||||
if (disposing && Handle != 0) {
|
||||
wasmImportResourceDrop(Handle);
|
||||
Handle = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public unsafe void AddObjective(string name, global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent displayName, global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IScoreboardImports.RenderType renderType)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(name);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
var handle0 = displayName.Handle;
|
||||
displayName.Handle = 0;
|
||||
ScoreboardImportsInterop.Scoreboard.AddObjectiveWasmInterop.wasmImportAddObjective(handle, strPtr.ToInt32(), length, handle0, (int)renderType);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe void RemoveObjective(string name)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(name);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
ScoreboardImportsInterop.Scoreboard.RemoveObjectiveWasmInterop.wasmImportRemoveObjective(handle, strPtr.ToInt32(), length);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetDisplaySlot(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IScoreboardImports.DisplaySlot slot, string objectiveName)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(objectiveName);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
ScoreboardImportsInterop.Scoreboard.SetDisplaySlotWasmInterop.wasmImportSetDisplaySlot(handle, (int)slot, strPtr.ToInt32(), length);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe void UpdateScore(string entityName, string objectiveName, int value)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(entityName);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
|
||||
var utf8Bytes1 = global::System.Text.Encoding.UTF8.GetBytes(objectiveName);
|
||||
var length2 = utf8Bytes1.Length;
|
||||
var gcHandle3 = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes1, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr0 = gcHandle3.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle3.Free());
|
||||
ScoreboardImportsInterop.Scoreboard.UpdateScoreWasmInterop.wasmImportUpdateScore(handle, strPtr.ToInt32(), length, strPtr0.ToInt32(), length2, value);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe void RemoveScore(string entityName, string objectiveName)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(entityName);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
|
||||
var utf8Bytes1 = global::System.Text.Encoding.UTF8.GetBytes(objectiveName);
|
||||
var length2 = utf8Bytes1.Length;
|
||||
var gcHandle3 = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes1, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr0 = gcHandle3.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle3.Free());
|
||||
ScoreboardImportsInterop.Scoreboard.RemoveScoreWasmInterop.wasmImportRemoveScore(handle, strPtr.ToInt32(), length, strPtr0.ToInt32(), length2);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe void CreateTeam(string name, global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IScoreboardImports.TeamSettings settings)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(name);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
var handle0 = settings.displayName.Handle;
|
||||
settings.displayName.Handle = 0;
|
||||
var handle1 = settings.prefix.Handle;
|
||||
settings.prefix.Handle = 0;
|
||||
var handle2 = settings.suffix.Handle;
|
||||
settings.suffix.Handle = 0;
|
||||
ScoreboardImportsInterop.Scoreboard.CreateTeamWasmInterop.wasmImportCreateTeam(handle, strPtr.ToInt32(), length, handle0, (settings.friendlyFire ? 1 : 0), (settings.seeFriendlyInvisibles ? 1 : 0), (int)settings.nametagVisibility, (int)settings.collisionRule, (int)settings.color, handle1, handle2);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe void RemoveTeam(string name)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(name);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
ScoreboardImportsInterop.Scoreboard.RemoveTeamWasmInterop.wasmImportRemoveTeam(handle, strPtr.ToInt32(), length);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe void UpdateTeam(string name, global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IScoreboardImports.TeamSettings settings)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(name);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
var handle0 = settings.displayName.Handle;
|
||||
settings.displayName.Handle = 0;
|
||||
var handle1 = settings.prefix.Handle;
|
||||
settings.prefix.Handle = 0;
|
||||
var handle2 = settings.suffix.Handle;
|
||||
settings.suffix.Handle = 0;
|
||||
ScoreboardImportsInterop.Scoreboard.UpdateTeamWasmInterop.wasmImportUpdateTeam(handle, strPtr.ToInt32(), length, handle0, (settings.friendlyFire ? 1 : 0), (settings.seeFriendlyInvisibles ? 1 : 0), (int)settings.nametagVisibility, (int)settings.collisionRule, (int)settings.color, handle1, handle2);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe void AddPlayerToTeam(string teamName, string playerName)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(teamName);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
|
||||
var utf8Bytes1 = global::System.Text.Encoding.UTF8.GetBytes(playerName);
|
||||
var length2 = utf8Bytes1.Length;
|
||||
var gcHandle3 = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes1, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr0 = gcHandle3.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle3.Free());
|
||||
ScoreboardImportsInterop.Scoreboard.AddPlayerToTeamWasmInterop.wasmImportAddPlayerToTeam(handle, strPtr.ToInt32(), length, strPtr0.ToInt32(), length2);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe void RemovePlayerFromTeam(string teamName, string playerName)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(teamName);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
|
||||
var utf8Bytes1 = global::System.Text.Encoding.UTF8.GetBytes(playerName);
|
||||
var length2 = utf8Bytes1.Length;
|
||||
var gcHandle3 = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes1, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr0 = gcHandle3.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle3.Free());
|
||||
ScoreboardImportsInterop.Scoreboard.RemovePlayerFromTeamWasmInterop.wasmImportRemovePlayerFromTeam(handle, strPtr.ToInt32(), length, strPtr0.ToInt32(), length2);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,479 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0;
|
||||
|
||||
public interface IServerImports {
|
||||
|
||||
/**
|
||||
* Represents the difficulty setting of a Minecraft server.
|
||||
*/
|
||||
|
||||
public enum Difficulty {
|
||||
PEACEFUL, EASY, NORMAL, HARD
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents the three main Minecraft dimensions.
|
||||
*/
|
||||
|
||||
public enum Dimension {
|
||||
OVERWORLD, NETHER, END
|
||||
}
|
||||
|
||||
public class CommandSender {
|
||||
public readonly byte Tag;
|
||||
private readonly object? value;
|
||||
|
||||
private CommandSender(byte tag, object? value) {
|
||||
this.Tag = tag;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public static CommandSender Console() {
|
||||
return new CommandSender(Tags.Console, null);
|
||||
}
|
||||
|
||||
public static CommandSender Player(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.Player player) {
|
||||
return new CommandSender(Tags.Player, player);
|
||||
}
|
||||
|
||||
public global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.Player AsPlayer
|
||||
{
|
||||
get
|
||||
{
|
||||
if (Tag == Tags.Player)
|
||||
return (global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.Player)value!;
|
||||
else
|
||||
throw new global::System.ArgumentException("expected Player, got " + Tag);
|
||||
}
|
||||
}
|
||||
|
||||
public class Tags {
|
||||
public const byte Console = 0;
|
||||
public const byte Player = 1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents the global server instance.
|
||||
*/
|
||||
|
||||
public class Server: global::System.IDisposable {
|
||||
internal int Handle { get; set; }
|
||||
|
||||
public readonly record struct THandle(int Handle);
|
||||
|
||||
public Server(THandle handle) {
|
||||
Handle = handle.Handle;
|
||||
}
|
||||
|
||||
public void Dispose() {
|
||||
Dispose(true);
|
||||
}
|
||||
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/server@0.1.0", EntryPoint = "[resource-drop]server"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
private static extern void wasmImportResourceDrop(int p0);
|
||||
|
||||
protected virtual void Dispose(bool disposing) {
|
||||
if (disposing && Handle != 0) {
|
||||
wasmImportResourceDrop(Handle);
|
||||
Handle = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IServerImports.Difficulty GetDifficulty()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = ServerImportsInterop.Server.GetDifficultyWasmInterop.wasmImportGetDifficulty(handle);
|
||||
return (global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IServerImports.Difficulty)result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe uint GetPlayerCount()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = ServerImportsInterop.Server.GetPlayerCountWasmInterop.wasmImportGetPlayerCount(handle);
|
||||
return unchecked((uint)(result));
|
||||
|
||||
}
|
||||
|
||||
public unsafe double GetMspt()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = ServerImportsInterop.Server.GetMsptWasmInterop.wasmImportGetMspt(handle);
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe double GetTps()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = ServerImportsInterop.Server.GetTpsWasmInterop.wasmImportGetTps(handle);
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::System.Collections.Generic.List<global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.Player> GetAllPlayers()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[3];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
ServerImportsInterop.Server.GetAllPlayersWasmInterop.wasmImportGetAllPlayers(handle, ptr);
|
||||
|
||||
var array = new global::System.Collections.Generic.List<global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.Player>(new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]);
|
||||
for (int index = 0; index < new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]; ++index) {
|
||||
nint basePtr = new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0] + (index * 4);
|
||||
var resource = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.Player(new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.Player.THandle(new global::System.Span<int>((void*)((byte*)basePtr + 0), 1)[0]));
|
||||
|
||||
array.Add(resource);
|
||||
}
|
||||
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0]);
|
||||
}
|
||||
return array;
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.Player? GetPlayerByName(string name)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(name);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
|
||||
var retArea = stackalloc uint[3];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
ServerImportsInterop.Server.GetPlayerByNameWasmInterop.wasmImportGetPlayerByName(handle, strPtr.ToInt32(), length, ptr);
|
||||
|
||||
global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.Player? lifted;
|
||||
|
||||
switch (new global::System.Span<byte>((byte*)ptr + 0, 1)[0]) {
|
||||
case 0: {
|
||||
lifted = null;
|
||||
break;
|
||||
}
|
||||
|
||||
case 1: {
|
||||
var resource = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.Player(new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.Player.THandle(new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]));
|
||||
|
||||
lifted = resource;
|
||||
break;
|
||||
}
|
||||
|
||||
default: throw new global::System.ArgumentException("invalid discriminant: " + (new global::System.Span<byte>((byte*)ptr + 0, 1)[0]));
|
||||
}
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
return lifted;
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.Player? GetPlayerByUuid(string id)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(id);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
|
||||
var retArea = stackalloc uint[3];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
ServerImportsInterop.Server.GetPlayerByUuidWasmInterop.wasmImportGetPlayerByUuid(handle, strPtr.ToInt32(), length, ptr);
|
||||
|
||||
global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.Player? lifted;
|
||||
|
||||
switch (new global::System.Span<byte>((byte*)ptr + 0, 1)[0]) {
|
||||
case 0: {
|
||||
lifted = null;
|
||||
break;
|
||||
}
|
||||
|
||||
case 1: {
|
||||
var resource = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.Player(new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.Player.THandle(new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]));
|
||||
|
||||
lifted = resource;
|
||||
break;
|
||||
}
|
||||
|
||||
default: throw new global::System.ArgumentException("invalid discriminant: " + (new global::System.Span<byte>((byte*)ptr + 0, 1)[0]));
|
||||
}
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
return lifted;
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::System.Collections.Generic.List<global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.World> GetAllWorlds()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[3];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
ServerImportsInterop.Server.GetAllWorldsWasmInterop.wasmImportGetAllWorlds(handle, ptr);
|
||||
|
||||
var array = new global::System.Collections.Generic.List<global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.World>(new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]);
|
||||
for (int index = 0; index < new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]; ++index) {
|
||||
nint basePtr = new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0] + (index * 4);
|
||||
var resource = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.World(new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.World.THandle(new global::System.Span<int>((void*)((byte*)basePtr + 0), 1)[0]));
|
||||
|
||||
array.Add(resource);
|
||||
}
|
||||
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0]);
|
||||
}
|
||||
return array;
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.World? GetWorldByName(string name)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(name);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
|
||||
var retArea = stackalloc uint[3];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
ServerImportsInterop.Server.GetWorldByNameWasmInterop.wasmImportGetWorldByName(handle, strPtr.ToInt32(), length, ptr);
|
||||
|
||||
global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.World? lifted;
|
||||
|
||||
switch (new global::System.Span<byte>((byte*)ptr + 0, 1)[0]) {
|
||||
case 0: {
|
||||
lifted = null;
|
||||
break;
|
||||
}
|
||||
|
||||
case 1: {
|
||||
var resource = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.World(new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.World.THandle(new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]));
|
||||
|
||||
lifted = resource;
|
||||
break;
|
||||
}
|
||||
|
||||
default: throw new global::System.ArgumentException("invalid discriminant: " + (new global::System.Span<byte>((byte*)ptr + 0, 1)[0]));
|
||||
}
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
return lifted;
|
||||
|
||||
}
|
||||
|
||||
public unsafe void ExecuteCommand(string command, global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IServerImports.CommandSender sender)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(command);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
|
||||
int lowered;
|
||||
int lowered4;
|
||||
|
||||
switch (sender.Tag) {
|
||||
case 0: {
|
||||
|
||||
lowered = 0;
|
||||
lowered4 = 0;
|
||||
|
||||
break;
|
||||
}
|
||||
case 1: {
|
||||
global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IPlayerImports.Player payload2 = sender.AsPlayer;
|
||||
var handle3 = payload2.Handle;
|
||||
payload2.Handle = 0;
|
||||
|
||||
lowered = 1;
|
||||
lowered4 = handle3;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
default: throw new global::System.ArgumentException("invalid discriminant: " + sender);
|
||||
}
|
||||
ServerImportsInterop.Server.ExecuteCommandWasmInterop.wasmImportExecuteCommand(handle, strPtr.ToInt32(), length, lowered, lowered4);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.World CreateWorld(string name, global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IServerImports.Dimension dimension)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(name);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
var result = ServerImportsInterop.Server.CreateWorldWasmInterop.wasmImportCreateWorld(handle, strPtr.ToInt32(), length, (int)dimension);
|
||||
var resource = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.World(new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.World.THandle(result));
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
return resource;
|
||||
|
||||
}
|
||||
|
||||
public unsafe void Broadcast(string message)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(message);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
ServerImportsInterop.Server.BroadcastWasmInterop.wasmImportBroadcast(handle, strPtr.ToInt32(), length);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe void BroadcastTabListHeaderFooter(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent header, global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent footer)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var handle0 = header.Handle;
|
||||
header.Handle = 0;
|
||||
var handle1 = footer.Handle;
|
||||
footer.Handle = 0;
|
||||
ServerImportsInterop.Server.BroadcastTabListHeaderFooterWasmInterop.wasmImportBroadcastTabListHeaderFooter(handle, handle0, handle1);
|
||||
|
||||
}
|
||||
|
||||
public unsafe uint GetMaxPlayers()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = ServerImportsInterop.Server.GetMaxPlayersWasmInterop.wasmImportGetMaxPlayers(handle);
|
||||
return unchecked((uint)(result));
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool IsHardcore()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = ServerImportsInterop.Server.IsHardcoreWasmInterop.wasmImportIsHardcore(handle);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool IsOnlineMode()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = ServerImportsInterop.Server.IsOnlineModeWasmInterop.wasmImportIsOnlineMode(handle);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe string GetMotd()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[3];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
ServerImportsInterop.Server.GetMotdWasmInterop.wasmImportGetMotd(handle, ptr);
|
||||
|
||||
var str = global::System.Text.Encoding.UTF8.GetString((byte*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0], new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]);
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0]);
|
||||
}
|
||||
|
||||
return str;
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool HasWhitelist()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = ServerImportsInterop.Server.HasWhitelistWasmInterop.wasmImportHasWhitelist(handle);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool GetAllowNether()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = ServerImportsInterop.Server.GetAllowNetherWasmInterop.wasmImportGetAllowNether(handle);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool GetAllowEnd()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = ServerImportsInterop.Server.GetAllowEndWasmInterop.wasmImportGetAllowEnd(handle);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe byte GetViewDistance()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = ServerImportsInterop.Server.GetViewDistanceWasmInterop.wasmImportGetViewDistance(handle);
|
||||
return ((byte)result);
|
||||
|
||||
}
|
||||
|
||||
public unsafe byte GetSimulationDistance()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = ServerImportsInterop.Server.GetSimulationDistanceWasmInterop.wasmImportGetSimulationDistance(handle);
|
||||
return ((byte)result);
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommonImports.GameMode GetDefaultGamemode()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = ServerImportsInterop.Server.GetDefaultGamemodeWasmInterop.wasmImportGetDefaultGamemode(handle);
|
||||
return (global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommonImports.GameMode)result;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,411 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0;
|
||||
|
||||
public interface ITextImports {
|
||||
|
||||
public class TextComponent: global::System.IDisposable {
|
||||
internal int Handle { get; set; }
|
||||
|
||||
public readonly record struct THandle(int Handle);
|
||||
|
||||
public TextComponent(THandle handle) {
|
||||
Handle = handle.Handle;
|
||||
}
|
||||
|
||||
public void Dispose() {
|
||||
Dispose(true);
|
||||
}
|
||||
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/text@0.1.0", EntryPoint = "[resource-drop]text-component"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
private static extern void wasmImportResourceDrop(int p0);
|
||||
|
||||
protected virtual void Dispose(bool disposing) {
|
||||
if (disposing && Handle != 0) {
|
||||
wasmImportResourceDrop(Handle);
|
||||
Handle = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public static unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent Text(string plain)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(plain);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
var result = TextImportsInterop.TextComponent.TextWasmInterop.wasmImportText(strPtr.ToInt32(), length);
|
||||
var resource = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent(new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent.THandle(result));
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
return resource;
|
||||
|
||||
}
|
||||
|
||||
public static unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent Translate(string key, global::System.Collections.Generic.List<global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent> with)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(key);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
|
||||
void* address;
|
||||
if ((4 * with.Count) < 1024) {
|
||||
var retArea = stackalloc uint[1 * with.Count + 1];
|
||||
address = MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
}
|
||||
else
|
||||
{
|
||||
var bufferSize = 4 * (nuint)with.Count;
|
||||
address = global::System.Runtime.InteropServices.NativeMemory.AlignedAlloc(bufferSize, 4);
|
||||
cleanups.Add(() => global::System.Runtime.InteropServices.NativeMemory.AlignedFree(address));
|
||||
}
|
||||
|
||||
for (int index = 0; index < with.Count; ++index) {
|
||||
global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent element = with[index];
|
||||
int basePtr = (int)address + (index * 4);
|
||||
var handle = element.Handle;
|
||||
element.Handle = 0;
|
||||
new global::System.Span<int>((void*)((byte*)basePtr + 0), 1)[0] = handle;
|
||||
|
||||
}
|
||||
var result = TextImportsInterop.TextComponent.TranslateWasmInterop.wasmImportTranslate(strPtr.ToInt32(), length, (int)address, with.Count);
|
||||
var resource = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent(new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent.THandle(result));
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
return resource;
|
||||
|
||||
}
|
||||
|
||||
public unsafe void AddChild(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent child)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var handle0 = child.Handle;
|
||||
child.Handle = 0;
|
||||
TextImportsInterop.TextComponent.AddChildWasmInterop.wasmImportAddChild(handle, handle0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void AddText(string text)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(text);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
TextImportsInterop.TextComponent.AddTextWasmInterop.wasmImportAddText(handle, strPtr.ToInt32(), length);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe string GetText()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[3];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
TextImportsInterop.TextComponent.GetTextWasmInterop.wasmImportGetText(handle, ptr);
|
||||
|
||||
var str = global::System.Text.Encoding.UTF8.GetString((byte*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0], new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]);
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0]);
|
||||
}
|
||||
|
||||
return str;
|
||||
|
||||
}
|
||||
|
||||
public unsafe byte[] Encode()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[3];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
TextImportsInterop.TextComponent.EncodeWasmInterop.wasmImportEncode(handle, ptr);
|
||||
|
||||
var array = new byte[new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]];
|
||||
new global::System.Span<byte>((void*)(new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0]), new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]).CopyTo(new global::System.Span<byte>(array));
|
||||
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0]);
|
||||
}
|
||||
return array;
|
||||
|
||||
}
|
||||
|
||||
public unsafe void ColorNamed(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommonImports.NamedColor color)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
TextImportsInterop.TextComponent.ColorNamedWasmInterop.wasmImportColorNamed(handle, (int)color);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void ColorRgb(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommonImports.RgbColor color)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
TextImportsInterop.TextComponent.ColorRgbWasmInterop.wasmImportColorRgb(handle, color.r, color.g, color.b);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void Bold(bool value)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
TextImportsInterop.TextComponent.BoldWasmInterop.wasmImportBold(handle, (value ? 1 : 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe void Italic(bool value)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
TextImportsInterop.TextComponent.ItalicWasmInterop.wasmImportItalic(handle, (value ? 1 : 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe void Underlined(bool value)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
TextImportsInterop.TextComponent.UnderlinedWasmInterop.wasmImportUnderlined(handle, (value ? 1 : 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe void Strikethrough(bool value)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
TextImportsInterop.TextComponent.StrikethroughWasmInterop.wasmImportStrikethrough(handle, (value ? 1 : 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe void Obfuscated(bool value)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
TextImportsInterop.TextComponent.ObfuscatedWasmInterop.wasmImportObfuscated(handle, (value ? 1 : 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe void Insertion(string text)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(text);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
TextImportsInterop.TextComponent.InsertionWasmInterop.wasmImportInsertion(handle, strPtr.ToInt32(), length);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe void Font(string font)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(font);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
TextImportsInterop.TextComponent.FontWasmInterop.wasmImportFont(handle, strPtr.ToInt32(), length);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe void ShadowColor(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommonImports.ArgbColor color)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
TextImportsInterop.TextComponent.ShadowColorWasmInterop.wasmImportShadowColor(handle, color.a, color.r, color.g, color.b);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void ClickOpenUrl(string url)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(url);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
TextImportsInterop.TextComponent.ClickOpenUrlWasmInterop.wasmImportClickOpenUrl(handle, strPtr.ToInt32(), length);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe void ClickRunCommand(string command)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(command);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
TextImportsInterop.TextComponent.ClickRunCommandWasmInterop.wasmImportClickRunCommand(handle, strPtr.ToInt32(), length);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe void ClickSuggestCommand(string command)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(command);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
TextImportsInterop.TextComponent.ClickSuggestCommandWasmInterop.wasmImportClickSuggestCommand(handle, strPtr.ToInt32(), length);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe void ClickCopyToClipboard(string text)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(text);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
TextImportsInterop.TextComponent.ClickCopyToClipboardWasmInterop.wasmImportClickCopyToClipboard(handle, strPtr.ToInt32(), length);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe void HoverShowText(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent text)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var handle0 = text.Handle;
|
||||
text.Handle = 0;
|
||||
TextImportsInterop.TextComponent.HoverShowTextWasmInterop.wasmImportHoverShowText(handle, handle0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void HoverShowItem(string item)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(item);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
TextImportsInterop.TextComponent.HoverShowItemWasmInterop.wasmImportHoverShowItem(handle, strPtr.ToInt32(), length);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe void HoverShowEntity(string entityType, string id, global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent? name)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(entityType);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
|
||||
var utf8Bytes1 = global::System.Text.Encoding.UTF8.GetBytes(id);
|
||||
var length2 = utf8Bytes1.Length;
|
||||
var gcHandle3 = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes1, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr0 = gcHandle3.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle3.Free());
|
||||
|
||||
int lowered;
|
||||
int lowered8;
|
||||
|
||||
if (name != null) {
|
||||
var payload6 = (global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent) name;
|
||||
var handle7 = payload6.Handle;
|
||||
payload6.Handle = 0;
|
||||
|
||||
lowered = 1;
|
||||
lowered8 = handle7;
|
||||
|
||||
} else {
|
||||
|
||||
lowered = 0;
|
||||
lowered8 = 0;
|
||||
|
||||
}
|
||||
TextImportsInterop.TextComponent.HoverShowEntityWasmInterop.wasmImportHoverShowEntity(handle, strPtr.ToInt32(), length, strPtr0.ToInt32(), length2, lowered, lowered8);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,779 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0;
|
||||
|
||||
public interface IWorldImports {
|
||||
|
||||
/**
|
||||
* Defines how a block reacts when pushed by a piston.
|
||||
*/
|
||||
|
||||
public enum PistonBehavior {
|
||||
NORMAL, DESTROY, BLOCK, IGNORE, PUSH_ONLY
|
||||
}
|
||||
|
||||
/**
|
||||
* Categories for sounds to control their volume independently.
|
||||
*/
|
||||
|
||||
public enum SoundCategory {
|
||||
MASTER, MUSIC, RECORDS, WEATHER, BLOCKS, HOSTILE, NEUTRAL, PLAYERS, AMBIENT, VOICE
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines how an explosion interacts with blocks in the world.
|
||||
*/
|
||||
|
||||
public enum ExplosionInteraction {
|
||||
NONE, BLOCK, MOB, TNT, TRIGGER
|
||||
}
|
||||
|
||||
/**
|
||||
* Flags used to control block updates and notifications.
|
||||
*/
|
||||
|
||||
public enum BlockFlags : byte {
|
||||
NOTIFY_NEIGHBORS = 1 << 0,
|
||||
NOTIFY_LISTENERS = 1 << 1,
|
||||
FORCE_STATE = 1 << 2,
|
||||
SKIP_DROPS = 1 << 3,
|
||||
MOVED = 1 << 4,
|
||||
SKIP_REDSTONE_WIRE_STATE_REPLACEMENT = 1 << 5,
|
||||
SKIP_BLOCK_ENTITY_REPLACED_CALLBACK = 1 << 6,
|
||||
SKIP_BLOCK_ADDED_CALLBACK = 1 << 7,
|
||||
}
|
||||
|
||||
/**
|
||||
* Detailed information about a block's state.
|
||||
*/
|
||||
|
||||
public struct BlockState {
|
||||
public ushort id;
|
||||
public byte luminance;
|
||||
public byte opacity;
|
||||
public float hardness;
|
||||
public bool isAir;
|
||||
public bool isLiquid;
|
||||
public bool isSolid;
|
||||
public bool isFullCube;
|
||||
public PistonBehavior pistonBehavior;
|
||||
public bool hasRandomTicks;
|
||||
|
||||
public BlockState(ushort id, byte luminance, byte opacity, float hardness, bool isAir, bool isLiquid, bool isSolid, bool isFullCube, PistonBehavior pistonBehavior, bool hasRandomTicks) {
|
||||
this.id = id;
|
||||
this.luminance = luminance;
|
||||
this.opacity = opacity;
|
||||
this.hardness = hardness;
|
||||
this.isAir = isAir;
|
||||
this.isLiquid = isLiquid;
|
||||
this.isSolid = isSolid;
|
||||
this.isFullCube = isFullCube;
|
||||
this.pistonBehavior = pistonBehavior;
|
||||
this.hasRandomTicks = hasRandomTicks;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A simple wrapper for a block state ID.
|
||||
*/
|
||||
|
||||
public struct BlockStateId {
|
||||
public ushort id;
|
||||
|
||||
public BlockStateId(ushort id) {
|
||||
this.id = id;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A position in the world grid.
|
||||
*/
|
||||
|
||||
public struct BlockPos {
|
||||
public int x;
|
||||
public int y;
|
||||
public int z;
|
||||
|
||||
public BlockPos(int x, int y, int z) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.z = z;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a cardinal direction or block face.
|
||||
*/
|
||||
|
||||
public enum BlockDirection {
|
||||
DOWN, UP, NORTH, SOUTH, WEST, EAST
|
||||
}
|
||||
|
||||
/**
|
||||
* Result of a raycast operation.
|
||||
*/
|
||||
|
||||
public struct RaycastResult {
|
||||
public BlockPos pos;
|
||||
public BlockDirection face;
|
||||
|
||||
public RaycastResult(BlockPos pos, BlockDirection face) {
|
||||
this.pos = pos;
|
||||
this.face = face;
|
||||
}
|
||||
}
|
||||
|
||||
public class Entity: global::System.IDisposable {
|
||||
internal int Handle { get; set; }
|
||||
|
||||
public readonly record struct THandle(int Handle);
|
||||
|
||||
public Entity(THandle handle) {
|
||||
Handle = handle.Handle;
|
||||
}
|
||||
|
||||
public void Dispose() {
|
||||
Dispose(true);
|
||||
}
|
||||
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[resource-drop]entity"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
private static extern void wasmImportResourceDrop(int p0);
|
||||
|
||||
protected virtual void Dispose(bool disposing) {
|
||||
if (disposing && Handle != 0) {
|
||||
wasmImportResourceDrop(Handle);
|
||||
Handle = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public unsafe uint GetId()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.Entity.GetIdWasmInterop.wasmImportGetId(handle);
|
||||
return unchecked((uint)(result));
|
||||
|
||||
}
|
||||
|
||||
public unsafe string GetUuid()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[3];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
WorldImportsInterop.Entity.GetUuidWasmInterop.wasmImportGetUuid(handle, ptr);
|
||||
|
||||
var str = global::System.Text.Encoding.UTF8.GetString((byte*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0], new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]);
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0]);
|
||||
}
|
||||
|
||||
return str;
|
||||
|
||||
}
|
||||
|
||||
public new unsafe string GetType()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[3];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
WorldImportsInterop.Entity.GetTypeWasmInterop.wasmImportGetType(handle, ptr);
|
||||
|
||||
var str = global::System.Text.Encoding.UTF8.GetString((byte*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0], new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]);
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0]);
|
||||
}
|
||||
|
||||
return str;
|
||||
|
||||
}
|
||||
|
||||
public unsafe (double, double, double) GetPosition()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc ulong[4];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 8);
|
||||
WorldImportsInterop.Entity.GetPositionWasmInterop.wasmImportGetPosition(handle, ptr);
|
||||
return (new global::System.Span<double>((void*)((byte*)ptr + 0), 1)[0], new global::System.Span<double>((void*)((byte*)ptr + 8), 1)[0], new global::System.Span<double>((void*)((byte*)ptr + 16), 1)[0]);
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.World GetWorld()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.Entity.GetWorldWasmInterop.wasmImportGetWorld(handle);
|
||||
var resource = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.World(new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.World.THandle(result));
|
||||
return resource;
|
||||
|
||||
}
|
||||
|
||||
public unsafe float GetYaw()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.Entity.GetYawWasmInterop.wasmImportGetYaw(handle);
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe float GetPitch()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.Entity.GetPitchWasmInterop.wasmImportGetPitch(handle);
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe float GetHeadYaw()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.Entity.GetHeadYawWasmInterop.wasmImportGetHeadYaw(handle);
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool IsOnGround()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.Entity.IsOnGroundWasmInterop.wasmImportIsOnGround(handle);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool IsSneaking()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.Entity.IsSneakingWasmInterop.wasmImportIsSneaking(handle);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetSneaking(bool sneaking)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
WorldImportsInterop.Entity.SetSneakingWasmInterop.wasmImportSetSneaking(handle, (sneaking ? 1 : 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool IsSprinting()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.Entity.IsSprintingWasmInterop.wasmImportIsSprinting(handle);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetSprinting(bool sprinting)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
WorldImportsInterop.Entity.SetSprintingWasmInterop.wasmImportSetSprinting(handle, (sprinting ? 1 : 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool IsSwimming()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.Entity.IsSwimmingWasmInterop.wasmImportIsSwimming(handle);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetSwimming(bool swimming)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
WorldImportsInterop.Entity.SetSwimmingWasmInterop.wasmImportSetSwimming(handle, (swimming ? 1 : 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool IsInvisible()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.Entity.IsInvisibleWasmInterop.wasmImportIsInvisible(handle);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetInvisible(bool invisible)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
WorldImportsInterop.Entity.SetInvisibleWasmInterop.wasmImportSetInvisible(handle, (invisible ? 1 : 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool IsGlowing()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.Entity.IsGlowingWasmInterop.wasmImportIsGlowing(handle);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetGlowing(bool glowing)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
WorldImportsInterop.Entity.SetGlowingWasmInterop.wasmImportSetGlowing(handle, (glowing ? 1 : 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool IsFallFlying()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.Entity.IsFallFlyingWasmInterop.wasmImportIsFallFlying(handle);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetFallFlying(bool fallFlying)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
WorldImportsInterop.Entity.SetFallFlyingWasmInterop.wasmImportSetFallFlying(handle, (fallFlying ? 1 : 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool IsOnFire()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.Entity.IsOnFireWasmInterop.wasmImportIsOnFire(handle);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetOnFire(bool onFire)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
WorldImportsInterop.Entity.SetOnFireWasmInterop.wasmImportSetOnFire(handle, (onFire ? 1 : 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe void Teleport((double, double, double) pos, global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.World worldRef)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var handle0 = worldRef.Handle;
|
||||
worldRef.Handle = 0;
|
||||
WorldImportsInterop.Entity.TeleportWasmInterop.wasmImportTeleport(handle, pos.Item1, pos.Item2, pos.Item3, handle0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetVelocity((double, double, double) velocity)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
WorldImportsInterop.Entity.SetVelocityWasmInterop.wasmImportSetVelocity(handle, velocity.Item1, velocity.Item2, velocity.Item3);
|
||||
|
||||
}
|
||||
|
||||
public unsafe (double, double, double) GetVelocity()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc ulong[4];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 8);
|
||||
WorldImportsInterop.Entity.GetVelocityWasmInterop.wasmImportGetVelocity(handle, ptr);
|
||||
return (new global::System.Span<double>((void*)((byte*)ptr + 0), 1)[0], new global::System.Span<double>((void*)((byte*)ptr + 8), 1)[0], new global::System.Span<double>((void*)((byte*)ptr + 16), 1)[0]);
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommonImports.EntityPose GetPose()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.Entity.GetPoseWasmInterop.wasmImportGetPose(handle);
|
||||
return (global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ICommonImports.EntityPose)result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent GetName()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.Entity.GetNameWasmInterop.wasmImportGetName(handle);
|
||||
var resource = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent(new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent.THandle(result));
|
||||
return resource;
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetCustomName(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent name)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var handle0 = name.Handle;
|
||||
name.Handle = 0;
|
||||
WorldImportsInterop.Entity.SetCustomNameWasmInterop.wasmImportSetCustomName(handle, handle0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent? GetCustomName()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[3];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
WorldImportsInterop.Entity.GetCustomNameWasmInterop.wasmImportGetCustomName(handle, ptr);
|
||||
|
||||
global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent? lifted;
|
||||
|
||||
switch (new global::System.Span<byte>((byte*)ptr + 0, 1)[0]) {
|
||||
case 0: {
|
||||
lifted = null;
|
||||
break;
|
||||
}
|
||||
|
||||
case 1: {
|
||||
var resource = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent(new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent.THandle(new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]));
|
||||
|
||||
lifted = resource;
|
||||
break;
|
||||
}
|
||||
|
||||
default: throw new global::System.ArgumentException("invalid discriminant: " + (new global::System.Span<byte>((byte*)ptr + 0, 1)[0]));
|
||||
}
|
||||
return lifted;
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetCustomNameVisible(bool visible)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
WorldImportsInterop.Entity.SetCustomNameVisibleWasmInterop.wasmImportSetCustomNameVisible(handle, (visible ? 1 : 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool IsCustomNameVisible()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.Entity.IsCustomNameVisibleWasmInterop.wasmImportIsCustomNameVisible(handle);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool IsInvulnerable()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.Entity.IsInvulnerableWasmInterop.wasmImportIsInvulnerable(handle);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetInvulnerable(bool invulnerable)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
WorldImportsInterop.Entity.SetInvulnerableWasmInterop.wasmImportSetInvulnerable(handle, (invulnerable ? 1 : 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe int GetFireTicks()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.Entity.GetFireTicksWasmInterop.wasmImportGetFireTicks(handle);
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetFireTicks(int ticks)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
WorldImportsInterop.Entity.SetFireTicksWasmInterop.wasmImportSetFireTicks(handle, ticks);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void Remove()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
WorldImportsInterop.Entity.RemoveWasmInterop.wasmImportRemove(handle);
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.RaycastResult? Raycast(double maxDistance, bool fluidHandling)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[6];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
WorldImportsInterop.Entity.RaycastWasmInterop.wasmImportRaycast(handle, maxDistance, (fluidHandling ? 1 : 0), ptr);
|
||||
|
||||
global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.RaycastResult? lifted;
|
||||
|
||||
switch (new global::System.Span<byte>((byte*)ptr + 0, 1)[0]) {
|
||||
case 0: {
|
||||
lifted = null;
|
||||
break;
|
||||
}
|
||||
|
||||
case 1: {
|
||||
|
||||
lifted = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.RaycastResult (
|
||||
new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.BlockPos (
|
||||
new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0], new global::System.Span<int>((void*)((byte*)ptr + 8), 1)[0], new global::System.Span<int>((void*)((byte*)ptr + 12), 1)[0]), (global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.BlockDirection)new global::System.Span<byte>((byte*)ptr + 16, 1)[0]);
|
||||
break;
|
||||
}
|
||||
|
||||
default: throw new global::System.ArgumentException("invalid discriminant: " + (new global::System.Span<byte>((byte*)ptr + 0, 1)[0]));
|
||||
}
|
||||
return lifted;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a Minecraft world (dimension).
|
||||
*/
|
||||
|
||||
public class World: global::System.IDisposable {
|
||||
internal int Handle { get; set; }
|
||||
|
||||
public readonly record struct THandle(int Handle);
|
||||
|
||||
public World(THandle handle) {
|
||||
Handle = handle.Handle;
|
||||
}
|
||||
|
||||
public void Dispose() {
|
||||
Dispose(true);
|
||||
}
|
||||
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[resource-drop]world"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
private static extern void wasmImportResourceDrop(int p0);
|
||||
|
||||
protected virtual void Dispose(bool disposing) {
|
||||
if (disposing && Handle != 0) {
|
||||
wasmImportResourceDrop(Handle);
|
||||
Handle = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public unsafe string GetId()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[3];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
WorldImportsInterop.World.GetIdWasmInterop.wasmImportGetId(handle, ptr);
|
||||
|
||||
var str = global::System.Text.Encoding.UTF8.GetString((byte*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0], new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]);
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0]);
|
||||
}
|
||||
|
||||
return str;
|
||||
|
||||
}
|
||||
|
||||
public unsafe ushort GetBlockStateId(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.BlockPos pos)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.World.GetBlockStateIdWasmInterop.wasmImportGetBlockStateId(handle, pos.x, pos.y, pos.z);
|
||||
return ((ushort)result);
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.BlockState GetBlockState(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.BlockPos pos)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[5];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
WorldImportsInterop.World.GetBlockStateWasmInterop.wasmImportGetBlockState(handle, pos.x, pos.y, pos.z, ptr);
|
||||
return new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.BlockState (
|
||||
((ushort)new global::System.Span<ushort>((void*)((byte*)ptr + 0), 1)[0]), ((byte)new global::System.Span<byte>((byte*)ptr + 2, 1)[0]), ((byte)new global::System.Span<byte>((byte*)ptr + 3, 1)[0]), new global::System.Span<float>((void*)((byte*)ptr + 4), 1)[0], (new global::System.Span<byte>((byte*)ptr + 8, 1)[0] != 0), (new global::System.Span<byte>((byte*)ptr + 9, 1)[0] != 0), (new global::System.Span<byte>((byte*)ptr + 10, 1)[0] != 0), (new global::System.Span<byte>((byte*)ptr + 11, 1)[0] != 0), (global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.PistonBehavior)new global::System.Span<byte>((byte*)ptr + 12, 1)[0], (new global::System.Span<byte>((byte*)ptr + 13, 1)[0] != 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetBlockState(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.BlockPos pos, ushort state, global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.BlockFlags updateFlags)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
WorldImportsInterop.World.SetBlockStateWasmInterop.wasmImportSetBlockState(handle, pos.x, pos.y, pos.z, state, (int)updateFlags);
|
||||
|
||||
}
|
||||
|
||||
public unsafe ulong GetTimeOfDay()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.World.GetTimeOfDayWasmInterop.wasmImportGetTimeOfDay(handle);
|
||||
return unchecked((ulong)(result));
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetTimeOfDay(ulong time)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
WorldImportsInterop.World.SetTimeOfDayWasmInterop.wasmImportSetTimeOfDay(handle, unchecked((long)(time)));
|
||||
|
||||
}
|
||||
|
||||
public unsafe ulong GetWorldAge()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.World.GetWorldAgeWasmInterop.wasmImportGetWorldAge(handle);
|
||||
return unchecked((ulong)(result));
|
||||
|
||||
}
|
||||
|
||||
public unsafe string GetDimension()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[3];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
WorldImportsInterop.World.GetDimensionWasmInterop.wasmImportGetDimension(handle, ptr);
|
||||
|
||||
var str = global::System.Text.Encoding.UTF8.GetString((byte*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0], new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]);
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0]);
|
||||
}
|
||||
|
||||
return str;
|
||||
|
||||
}
|
||||
|
||||
public unsafe int GetTopBlockY(int x, int z)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.World.GetTopBlockYWasmInterop.wasmImportGetTopBlockY(handle, x, z);
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe int GetMotionBlockingHeight(int x, int z)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.World.GetMotionBlockingHeightWasmInterop.wasmImportGetMotionBlockingHeight(handle, x, z);
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool IsRaining()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.World.IsRainingWasmInterop.wasmImportIsRaining(handle);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetRaining(bool raining)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
WorldImportsInterop.World.SetRainingWasmInterop.wasmImportSetRaining(handle, (raining ? 1 : 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe bool IsThundering()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.World.IsThunderingWasmInterop.wasmImportIsThundering(handle);
|
||||
return (result != 0);
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SetThundering(bool thundering)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
WorldImportsInterop.World.SetThunderingWasmInterop.wasmImportSetThundering(handle, (thundering ? 1 : 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe void BroadcastSystemMessage(global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.ITextImports.TextComponent message, bool overlay)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var handle0 = message.Handle;
|
||||
message.Handle = 0;
|
||||
WorldImportsInterop.World.BroadcastSystemMessageWasmInterop.wasmImportBroadcastSystemMessage(handle, handle0, (overlay ? 1 : 0));
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IScoreboardImports.Scoreboard GetScoreboard()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.World.GetScoreboardWasmInterop.wasmImportGetScoreboard(handle);
|
||||
var resource = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IScoreboardImports.Scoreboard(new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IScoreboardImports.Scoreboard.THandle(result));
|
||||
return resource;
|
||||
|
||||
}
|
||||
|
||||
public unsafe void PlaySound(string sound, global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.SoundCategory category, (double, double, double) pos, float volume, float pitch)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(sound);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
WorldImportsInterop.World.PlaySoundWasmInterop.wasmImportPlaySound(handle, strPtr.ToInt32(), length, (int)category, pos.Item1, pos.Item2, pos.Item3, volume, pitch);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe void SpawnParticle(string particle, (double, double, double) pos, (double, double, double) offset, float maxSpeed, int count)
|
||||
{
|
||||
var cleanups = new global::System.Collections.Generic.List<global::System.Action>();
|
||||
var handle = this.Handle;
|
||||
|
||||
var utf8Bytes = global::System.Text.Encoding.UTF8.GetBytes(particle);
|
||||
var length = utf8Bytes.Length;
|
||||
var gcHandle = global::System.Runtime.InteropServices.GCHandle.Alloc(utf8Bytes, global::System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
var strPtr = gcHandle.AddrOfPinnedObject();
|
||||
|
||||
cleanups.Add(()=> gcHandle.Free());
|
||||
WorldImportsInterop.World.SpawnParticleWasmInterop.wasmImportSpawnParticle(handle, strPtr.ToInt32(), length, pos.Item1, pos.Item2, pos.Item3, offset.Item1, offset.Item2, offset.Item3, maxSpeed, count);
|
||||
|
||||
foreach (var cleanup in cleanups)
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public unsafe void CreateExplosion((double, double, double) pos, float power, bool createFire, global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.ExplosionInteraction interaction)
|
||||
{
|
||||
var handle = this.Handle;
|
||||
WorldImportsInterop.World.CreateExplosionWasmInterop.wasmImportCreateExplosion(handle, pos.Item1, pos.Item2, pos.Item3, power, (createFire ? 1 : 0), (int)interaction);
|
||||
|
||||
}
|
||||
|
||||
public unsafe int GetSeaLevel()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.World.GetSeaLevelWasmInterop.wasmImportGetSeaLevel(handle);
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe int GetMinY()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
var result = WorldImportsInterop.World.GetMinYWasmInterop.wasmImportGetMinY(handle);
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
public unsafe global::System.Collections.Generic.List<global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.Entity> GetEntities()
|
||||
{
|
||||
var handle = this.Handle;
|
||||
|
||||
var retArea = stackalloc uint[3];
|
||||
var ptr = (nint)MemoryHelper.AlignStackPtr(retArea, 4);
|
||||
WorldImportsInterop.World.GetEntitiesWasmInterop.wasmImportGetEntities(handle, ptr);
|
||||
|
||||
var array = new global::System.Collections.Generic.List<global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.Entity>(new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]);
|
||||
for (int index = 0; index < new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0]; ++index) {
|
||||
nint basePtr = new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0] + (index * 4);
|
||||
var resource = new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.Entity(new global::PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0.IWorldImports.Entity.THandle(new global::System.Span<int>((void*)((byte*)basePtr + 0), 1)[0]));
|
||||
|
||||
array.Add(resource);
|
||||
}
|
||||
|
||||
if (new global::System.Span<int>((void*)((byte*)ptr + 4), 1)[0] > 0) {
|
||||
global::System.Runtime.InteropServices.NativeMemory.Free((void*)new global::System.Span<nint>((void*)((byte*)ptr + 0), 1)[0]);
|
||||
}
|
||||
return array;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,24 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
using System;
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0
|
||||
{
|
||||
public static class LoggingImportsInterop {
|
||||
|
||||
public static class LogWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/logging@0.1.0", EntryPoint = "log"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportLog(int p0, nint p1, int p2);
|
||||
}
|
||||
|
||||
public static class LogTracingWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/logging@0.1.0", EntryPoint = "log-tracing"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportLogTracing(nint p0, int p1);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
using System;
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0
|
||||
{
|
||||
public static class PermissionImportsInterop {
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,413 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
using System;
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0
|
||||
{
|
||||
public static class PlayerImportsInterop {
|
||||
|
||||
internal static class Player
|
||||
{
|
||||
|
||||
public static class AsEntityWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.as-entity"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportAsEntity(int p0);
|
||||
}
|
||||
|
||||
public static class GetIdWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-id"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetId(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class GetNameWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-name"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetName(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class GetPositionWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-position"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetPosition(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class GetYawWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-yaw"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern float wasmImportGetYaw(int p0);
|
||||
}
|
||||
|
||||
public static class GetPitchWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-pitch"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern float wasmImportGetPitch(int p0);
|
||||
}
|
||||
|
||||
public static class GetWorldWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-world"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetWorld(int p0);
|
||||
}
|
||||
|
||||
public static class GetGamemodeWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-gamemode"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetGamemode(int p0);
|
||||
}
|
||||
|
||||
public static class SetGamemodeWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.set-gamemode"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportSetGamemode(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class GetLocaleWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-locale"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetLocale(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class GetPingWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-ping"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetPing(int p0);
|
||||
}
|
||||
|
||||
public static class GetPermissionLevelWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-permission-level"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetPermissionLevel(int p0);
|
||||
}
|
||||
|
||||
public static class SetPermissionLevelWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.set-permission-level"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetPermissionLevel(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class SetPermissionWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.set-permission"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetPermission(int p0, nint p1, int p2, int p3);
|
||||
}
|
||||
|
||||
public static class UnsetPermissionWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.unset-permission"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportUnsetPermission(int p0, nint p1, int p2);
|
||||
}
|
||||
|
||||
public static class HasPermissionSetWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.has-permission-set"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportHasPermissionSet(int p0, nint p1, int p2, nint p3);
|
||||
}
|
||||
|
||||
public static class HasPermissionWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.has-permission"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportHasPermission(int p0, nint p1, int p2);
|
||||
}
|
||||
|
||||
public static class GetDisplayNameWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-display-name"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetDisplayName(int p0);
|
||||
}
|
||||
|
||||
public static class SetDisplayNameWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.set-display-name"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetDisplayName(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class SendSystemMessageWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.send-system-message"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSendSystemMessage(int p0, int p1, int p2);
|
||||
}
|
||||
|
||||
public static class SetTabListHeaderFooterWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.set-tab-list-header-footer"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetTabListHeaderFooter(int p0, int p1, int p2);
|
||||
}
|
||||
|
||||
public static class SetTabListOrderWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.set-tab-list-order"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetTabListOrder(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class SetTabListLatencyWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.set-tab-list-latency"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetTabListLatency(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class SetTabListListedWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.set-tab-list-listed"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetTabListListed(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class ShowTitleWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.show-title"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportShowTitle(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class ShowSubtitleWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.show-subtitle"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportShowSubtitle(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class ShowActionbarWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.show-actionbar"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportShowActionbar(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class SendTitleAnimationWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.send-title-animation"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSendTitleAnimation(int p0, int p1, int p2, int p3);
|
||||
}
|
||||
|
||||
public static class TeleportWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.teleport"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportTeleport(int p0, double p1, double p2, double p3, int p4, float p5, int p6, float p7, int p8);
|
||||
}
|
||||
|
||||
public static class TeleportWorldWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.teleport-world"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportTeleportWorld(int p0, int p1, double p2, double p3, double p4, int p5, float p6, int p7, float p8);
|
||||
}
|
||||
|
||||
public static class KickWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.kick"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportKick(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class RespawnWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.respawn"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportRespawn(int p0);
|
||||
}
|
||||
|
||||
public static class OpenGuiWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.open-gui"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportOpenGui(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class BanWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.ban"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportBan(int p0, int p1, int p2);
|
||||
}
|
||||
|
||||
public static class BanIpWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.ban-ip"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportBanIp(int p0, int p1, int p2);
|
||||
}
|
||||
|
||||
public static class GetSelectedSlotWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-selected-slot"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetSelectedSlot(int p0);
|
||||
}
|
||||
|
||||
public static class GetItemInHandWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-item-in-hand"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetItemInHand(int p0, int p1, nint p2);
|
||||
}
|
||||
|
||||
public static class GetInventoryItemWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-inventory-item"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetInventoryItem(int p0, int p1, nint p2);
|
||||
}
|
||||
|
||||
public static class GetHealthWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-health"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern float wasmImportGetHealth(int p0);
|
||||
}
|
||||
|
||||
public static class SetHealthWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.set-health"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetHealth(int p0, float p1);
|
||||
}
|
||||
|
||||
public static class GetMaxHealthWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-max-health"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern float wasmImportGetMaxHealth(int p0);
|
||||
}
|
||||
|
||||
public static class SetMaxHealthWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.set-max-health"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetMaxHealth(int p0, float p1);
|
||||
}
|
||||
|
||||
public static class GetFoodLevelWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-food-level"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetFoodLevel(int p0);
|
||||
}
|
||||
|
||||
public static class SetFoodLevelWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.set-food-level"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetFoodLevel(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class GetSaturationWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-saturation"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern float wasmImportGetSaturation(int p0);
|
||||
}
|
||||
|
||||
public static class SetSaturationWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.set-saturation"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetSaturation(int p0, float p1);
|
||||
}
|
||||
|
||||
public static class GetExhaustionWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-exhaustion"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern float wasmImportGetExhaustion(int p0);
|
||||
}
|
||||
|
||||
public static class SetExhaustionWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.set-exhaustion"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetExhaustion(int p0, float p1);
|
||||
}
|
||||
|
||||
public static class GetAbsorptionWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-absorption"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern float wasmImportGetAbsorption(int p0);
|
||||
}
|
||||
|
||||
public static class SetAbsorptionWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.set-absorption"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetAbsorption(int p0, float p1);
|
||||
}
|
||||
|
||||
public static class GetExperienceLevelWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-experience-level"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetExperienceLevel(int p0);
|
||||
}
|
||||
|
||||
public static class GetExperienceProgressWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-experience-progress"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern float wasmImportGetExperienceProgress(int p0);
|
||||
}
|
||||
|
||||
public static class GetExperiencePointsWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-experience-points"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetExperiencePoints(int p0);
|
||||
}
|
||||
|
||||
public static class SetExperienceLevelWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.set-experience-level"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetExperienceLevel(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class SetExperienceProgressWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.set-experience-progress"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetExperienceProgress(int p0, float p1);
|
||||
}
|
||||
|
||||
public static class SetExperiencePointsWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.set-experience-points"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetExperiencePoints(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class AddExperienceLevelsWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.add-experience-levels"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportAddExperienceLevels(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class AddExperiencePointsWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.add-experience-points"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportAddExperiencePoints(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class IsFlyingWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.is-flying"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportIsFlying(int p0);
|
||||
}
|
||||
|
||||
public static class SetFlyingWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.set-flying"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetFlying(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class GetAbilitiesWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-abilities"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetAbilities(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class SetAbilitiesWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.set-abilities"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetAbilities(int p0, int p1, int p2, int p3, int p4, int p5, float p6, float p7);
|
||||
}
|
||||
|
||||
public static class GetIpWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-ip"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetIp(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class GetSkinWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-skin"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetSkin(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class GetSkinPartsWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.get-skin-parts"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetSkinParts(int p0);
|
||||
}
|
||||
|
||||
public static class SetSkinPartsWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/player@0.1.0", EntryPoint = "[method]player.set-skin-parts"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetSkinParts(int p0, int p1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
using System;
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0
|
||||
{
|
||||
public static class SchedulerImportsInterop {
|
||||
|
||||
public static class ScheduleDelayedTaskWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/scheduler@0.1.0", EntryPoint = "schedule-delayed-task"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportScheduleDelayedTask(int p0, long p1);
|
||||
}
|
||||
|
||||
public static class ScheduleRepeatingTaskWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/scheduler@0.1.0", EntryPoint = "schedule-repeating-task"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportScheduleRepeatingTask(int p0, long p1, long p2);
|
||||
}
|
||||
|
||||
public static class CancelTaskWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/scheduler@0.1.0", EntryPoint = "cancel-task"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportCancelTask(int p0);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,77 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
using System;
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0
|
||||
{
|
||||
public static class ScoreboardImportsInterop {
|
||||
|
||||
internal static class Scoreboard
|
||||
{
|
||||
|
||||
public static class AddObjectiveWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/scoreboard@0.1.0", EntryPoint = "[method]scoreboard.add-objective"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportAddObjective(int p0, nint p1, int p2, int p3, int p4);
|
||||
}
|
||||
|
||||
public static class RemoveObjectiveWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/scoreboard@0.1.0", EntryPoint = "[method]scoreboard.remove-objective"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportRemoveObjective(int p0, nint p1, int p2);
|
||||
}
|
||||
|
||||
public static class SetDisplaySlotWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/scoreboard@0.1.0", EntryPoint = "[method]scoreboard.set-display-slot"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetDisplaySlot(int p0, int p1, nint p2, int p3);
|
||||
}
|
||||
|
||||
public static class UpdateScoreWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/scoreboard@0.1.0", EntryPoint = "[method]scoreboard.update-score"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportUpdateScore(int p0, nint p1, int p2, nint p3, int p4, int p5);
|
||||
}
|
||||
|
||||
public static class RemoveScoreWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/scoreboard@0.1.0", EntryPoint = "[method]scoreboard.remove-score"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportRemoveScore(int p0, nint p1, int p2, nint p3, int p4);
|
||||
}
|
||||
|
||||
public static class CreateTeamWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/scoreboard@0.1.0", EntryPoint = "[method]scoreboard.create-team"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportCreateTeam(int p0, nint p1, int p2, int p3, int p4, int p5, int p6, int p7, int p8, int p9, int p10);
|
||||
}
|
||||
|
||||
public static class RemoveTeamWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/scoreboard@0.1.0", EntryPoint = "[method]scoreboard.remove-team"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportRemoveTeam(int p0, nint p1, int p2);
|
||||
}
|
||||
|
||||
public static class UpdateTeamWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/scoreboard@0.1.0", EntryPoint = "[method]scoreboard.update-team"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportUpdateTeam(int p0, nint p1, int p2, int p3, int p4, int p5, int p6, int p7, int p8, int p9, int p10);
|
||||
}
|
||||
|
||||
public static class AddPlayerToTeamWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/scoreboard@0.1.0", EntryPoint = "[method]scoreboard.add-player-to-team"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportAddPlayerToTeam(int p0, nint p1, int p2, nint p3, int p4);
|
||||
}
|
||||
|
||||
public static class RemovePlayerFromTeamWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/scoreboard@0.1.0", EntryPoint = "[method]scoreboard.remove-player-from-team"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportRemovePlayerFromTeam(int p0, nint p1, int p2, nint p3, int p4);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,155 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
using System;
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0
|
||||
{
|
||||
public static class ServerImportsInterop {
|
||||
|
||||
internal static class Server
|
||||
{
|
||||
|
||||
public static class GetDifficultyWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/server@0.1.0", EntryPoint = "[method]server.get-difficulty"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetDifficulty(int p0);
|
||||
}
|
||||
|
||||
public static class GetPlayerCountWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/server@0.1.0", EntryPoint = "[method]server.get-player-count"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetPlayerCount(int p0);
|
||||
}
|
||||
|
||||
public static class GetMsptWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/server@0.1.0", EntryPoint = "[method]server.get-mspt"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern double wasmImportGetMspt(int p0);
|
||||
}
|
||||
|
||||
public static class GetTpsWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/server@0.1.0", EntryPoint = "[method]server.get-tps"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern double wasmImportGetTps(int p0);
|
||||
}
|
||||
|
||||
public static class GetAllPlayersWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/server@0.1.0", EntryPoint = "[method]server.get-all-players"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetAllPlayers(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class GetPlayerByNameWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/server@0.1.0", EntryPoint = "[method]server.get-player-by-name"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetPlayerByName(int p0, nint p1, int p2, nint p3);
|
||||
}
|
||||
|
||||
public static class GetPlayerByUuidWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/server@0.1.0", EntryPoint = "[method]server.get-player-by-uuid"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetPlayerByUuid(int p0, nint p1, int p2, nint p3);
|
||||
}
|
||||
|
||||
public static class GetAllWorldsWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/server@0.1.0", EntryPoint = "[method]server.get-all-worlds"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetAllWorlds(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class GetWorldByNameWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/server@0.1.0", EntryPoint = "[method]server.get-world-by-name"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetWorldByName(int p0, nint p1, int p2, nint p3);
|
||||
}
|
||||
|
||||
public static class ExecuteCommandWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/server@0.1.0", EntryPoint = "[method]server.execute-command"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportExecuteCommand(int p0, nint p1, int p2, int p3, int p4);
|
||||
}
|
||||
|
||||
public static class CreateWorldWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/server@0.1.0", EntryPoint = "[method]server.create-world"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportCreateWorld(int p0, nint p1, int p2, int p3);
|
||||
}
|
||||
|
||||
public static class BroadcastWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/server@0.1.0", EntryPoint = "[method]server.broadcast"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportBroadcast(int p0, nint p1, int p2);
|
||||
}
|
||||
|
||||
public static class BroadcastTabListHeaderFooterWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/server@0.1.0", EntryPoint = "[method]server.broadcast-tab-list-header-footer"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportBroadcastTabListHeaderFooter(int p0, int p1, int p2);
|
||||
}
|
||||
|
||||
public static class GetMaxPlayersWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/server@0.1.0", EntryPoint = "[method]server.get-max-players"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetMaxPlayers(int p0);
|
||||
}
|
||||
|
||||
public static class IsHardcoreWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/server@0.1.0", EntryPoint = "[method]server.is-hardcore"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportIsHardcore(int p0);
|
||||
}
|
||||
|
||||
public static class IsOnlineModeWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/server@0.1.0", EntryPoint = "[method]server.is-online-mode"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportIsOnlineMode(int p0);
|
||||
}
|
||||
|
||||
public static class GetMotdWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/server@0.1.0", EntryPoint = "[method]server.get-motd"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetMotd(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class HasWhitelistWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/server@0.1.0", EntryPoint = "[method]server.has-whitelist"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportHasWhitelist(int p0);
|
||||
}
|
||||
|
||||
public static class GetAllowNetherWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/server@0.1.0", EntryPoint = "[method]server.get-allow-nether"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetAllowNether(int p0);
|
||||
}
|
||||
|
||||
public static class GetAllowEndWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/server@0.1.0", EntryPoint = "[method]server.get-allow-end"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetAllowEnd(int p0);
|
||||
}
|
||||
|
||||
public static class GetViewDistanceWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/server@0.1.0", EntryPoint = "[method]server.get-view-distance"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetViewDistance(int p0);
|
||||
}
|
||||
|
||||
public static class GetSimulationDistanceWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/server@0.1.0", EntryPoint = "[method]server.get-simulation-distance"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetSimulationDistance(int p0);
|
||||
}
|
||||
|
||||
public static class GetDefaultGamemodeWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/server@0.1.0", EntryPoint = "[method]server.get-default-gamemode"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetDefaultGamemode(int p0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,155 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
using System;
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0
|
||||
{
|
||||
public static class TextImportsInterop {
|
||||
|
||||
internal static class TextComponent
|
||||
{
|
||||
|
||||
public static class TextWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/text@0.1.0", EntryPoint = "[static]text-component.text"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportText(nint p0, int p1);
|
||||
}
|
||||
|
||||
public static class TranslateWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/text@0.1.0", EntryPoint = "[static]text-component.translate"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportTranslate(nint p0, int p1, nint p2, int p3);
|
||||
}
|
||||
|
||||
public static class AddChildWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/text@0.1.0", EntryPoint = "[method]text-component.add-child"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportAddChild(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class AddTextWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/text@0.1.0", EntryPoint = "[method]text-component.add-text"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportAddText(int p0, nint p1, int p2);
|
||||
}
|
||||
|
||||
public static class GetTextWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/text@0.1.0", EntryPoint = "[method]text-component.get-text"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetText(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class EncodeWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/text@0.1.0", EntryPoint = "[method]text-component.encode"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportEncode(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class ColorNamedWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/text@0.1.0", EntryPoint = "[method]text-component.color-named"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportColorNamed(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class ColorRgbWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/text@0.1.0", EntryPoint = "[method]text-component.color-rgb"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportColorRgb(int p0, int p1, int p2, int p3);
|
||||
}
|
||||
|
||||
public static class BoldWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/text@0.1.0", EntryPoint = "[method]text-component.bold"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportBold(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class ItalicWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/text@0.1.0", EntryPoint = "[method]text-component.italic"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportItalic(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class UnderlinedWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/text@0.1.0", EntryPoint = "[method]text-component.underlined"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportUnderlined(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class StrikethroughWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/text@0.1.0", EntryPoint = "[method]text-component.strikethrough"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportStrikethrough(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class ObfuscatedWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/text@0.1.0", EntryPoint = "[method]text-component.obfuscated"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportObfuscated(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class InsertionWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/text@0.1.0", EntryPoint = "[method]text-component.insertion"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportInsertion(int p0, nint p1, int p2);
|
||||
}
|
||||
|
||||
public static class FontWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/text@0.1.0", EntryPoint = "[method]text-component.font"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportFont(int p0, nint p1, int p2);
|
||||
}
|
||||
|
||||
public static class ShadowColorWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/text@0.1.0", EntryPoint = "[method]text-component.shadow-color"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportShadowColor(int p0, int p1, int p2, int p3, int p4);
|
||||
}
|
||||
|
||||
public static class ClickOpenUrlWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/text@0.1.0", EntryPoint = "[method]text-component.click-open-url"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportClickOpenUrl(int p0, nint p1, int p2);
|
||||
}
|
||||
|
||||
public static class ClickRunCommandWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/text@0.1.0", EntryPoint = "[method]text-component.click-run-command"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportClickRunCommand(int p0, nint p1, int p2);
|
||||
}
|
||||
|
||||
public static class ClickSuggestCommandWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/text@0.1.0", EntryPoint = "[method]text-component.click-suggest-command"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportClickSuggestCommand(int p0, nint p1, int p2);
|
||||
}
|
||||
|
||||
public static class ClickCopyToClipboardWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/text@0.1.0", EntryPoint = "[method]text-component.click-copy-to-clipboard"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportClickCopyToClipboard(int p0, nint p1, int p2);
|
||||
}
|
||||
|
||||
public static class HoverShowTextWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/text@0.1.0", EntryPoint = "[method]text-component.hover-show-text"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportHoverShowText(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class HoverShowItemWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/text@0.1.0", EntryPoint = "[method]text-component.hover-show-item"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportHoverShowItem(int p0, nint p1, int p2);
|
||||
}
|
||||
|
||||
public static class HoverShowEntityWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/text@0.1.0", EntryPoint = "[method]text-component.hover-show-entity"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportHoverShowEntity(int p0, nint p1, int p2, nint p3, int p4, int p5, int p6);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,382 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
using System;
|
||||
|
||||
namespace PluginWorld.wit.Imports.pumpkin.plugin.v0_1_0
|
||||
{
|
||||
public static class WorldImportsInterop {
|
||||
|
||||
internal static class Entity
|
||||
{
|
||||
|
||||
public static class GetIdWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.get-id"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetId(int p0);
|
||||
}
|
||||
|
||||
public static class GetUuidWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.get-uuid"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetUuid(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class GetTypeWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.get-type"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetType(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class GetPositionWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.get-position"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetPosition(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class GetWorldWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.get-world"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetWorld(int p0);
|
||||
}
|
||||
|
||||
public static class GetYawWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.get-yaw"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern float wasmImportGetYaw(int p0);
|
||||
}
|
||||
|
||||
public static class GetPitchWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.get-pitch"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern float wasmImportGetPitch(int p0);
|
||||
}
|
||||
|
||||
public static class GetHeadYawWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.get-head-yaw"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern float wasmImportGetHeadYaw(int p0);
|
||||
}
|
||||
|
||||
public static class IsOnGroundWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.is-on-ground"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportIsOnGround(int p0);
|
||||
}
|
||||
|
||||
public static class IsSneakingWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.is-sneaking"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportIsSneaking(int p0);
|
||||
}
|
||||
|
||||
public static class SetSneakingWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.set-sneaking"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetSneaking(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class IsSprintingWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.is-sprinting"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportIsSprinting(int p0);
|
||||
}
|
||||
|
||||
public static class SetSprintingWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.set-sprinting"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetSprinting(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class IsSwimmingWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.is-swimming"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportIsSwimming(int p0);
|
||||
}
|
||||
|
||||
public static class SetSwimmingWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.set-swimming"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetSwimming(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class IsInvisibleWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.is-invisible"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportIsInvisible(int p0);
|
||||
}
|
||||
|
||||
public static class SetInvisibleWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.set-invisible"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetInvisible(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class IsGlowingWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.is-glowing"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportIsGlowing(int p0);
|
||||
}
|
||||
|
||||
public static class SetGlowingWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.set-glowing"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetGlowing(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class IsFallFlyingWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.is-fall-flying"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportIsFallFlying(int p0);
|
||||
}
|
||||
|
||||
public static class SetFallFlyingWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.set-fall-flying"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetFallFlying(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class IsOnFireWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.is-on-fire"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportIsOnFire(int p0);
|
||||
}
|
||||
|
||||
public static class SetOnFireWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.set-on-fire"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetOnFire(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class TeleportWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.teleport"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportTeleport(int p0, double p1, double p2, double p3, int p4);
|
||||
}
|
||||
|
||||
public static class SetVelocityWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.set-velocity"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetVelocity(int p0, double p1, double p2, double p3);
|
||||
}
|
||||
|
||||
public static class GetVelocityWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.get-velocity"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetVelocity(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class GetPoseWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.get-pose"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetPose(int p0);
|
||||
}
|
||||
|
||||
public static class GetNameWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.get-name"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetName(int p0);
|
||||
}
|
||||
|
||||
public static class SetCustomNameWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.set-custom-name"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetCustomName(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class GetCustomNameWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.get-custom-name"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetCustomName(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class SetCustomNameVisibleWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.set-custom-name-visible"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetCustomNameVisible(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class IsCustomNameVisibleWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.is-custom-name-visible"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportIsCustomNameVisible(int p0);
|
||||
}
|
||||
|
||||
public static class IsInvulnerableWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.is-invulnerable"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportIsInvulnerable(int p0);
|
||||
}
|
||||
|
||||
public static class SetInvulnerableWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.set-invulnerable"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetInvulnerable(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class GetFireTicksWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.get-fire-ticks"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetFireTicks(int p0);
|
||||
}
|
||||
|
||||
public static class SetFireTicksWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.set-fire-ticks"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetFireTicks(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class RemoveWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.remove"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportRemove(int p0);
|
||||
}
|
||||
|
||||
public static class RaycastWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]entity.raycast"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportRaycast(int p0, double p1, int p2, nint p3);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
internal static class World
|
||||
{
|
||||
|
||||
public static class GetIdWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]world.get-id"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetId(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class GetBlockStateIdWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]world.get-block-state-id"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetBlockStateId(int p0, int p1, int p2, int p3);
|
||||
}
|
||||
|
||||
public static class GetBlockStateWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]world.get-block-state"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetBlockState(int p0, int p1, int p2, int p3, nint p4);
|
||||
}
|
||||
|
||||
public static class SetBlockStateWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]world.set-block-state"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetBlockState(int p0, int p1, int p2, int p3, int p4, int p5);
|
||||
}
|
||||
|
||||
public static class GetTimeOfDayWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]world.get-time-of-day"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern long wasmImportGetTimeOfDay(int p0);
|
||||
}
|
||||
|
||||
public static class SetTimeOfDayWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]world.set-time-of-day"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetTimeOfDay(int p0, long p1);
|
||||
}
|
||||
|
||||
public static class GetWorldAgeWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]world.get-world-age"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern long wasmImportGetWorldAge(int p0);
|
||||
}
|
||||
|
||||
public static class GetDimensionWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]world.get-dimension"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetDimension(int p0, nint p1);
|
||||
}
|
||||
|
||||
public static class GetTopBlockYWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]world.get-top-block-y"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetTopBlockY(int p0, int p1, int p2);
|
||||
}
|
||||
|
||||
public static class GetMotionBlockingHeightWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]world.get-motion-blocking-height"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetMotionBlockingHeight(int p0, int p1, int p2);
|
||||
}
|
||||
|
||||
public static class IsRainingWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]world.is-raining"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportIsRaining(int p0);
|
||||
}
|
||||
|
||||
public static class SetRainingWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]world.set-raining"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetRaining(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class IsThunderingWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]world.is-thundering"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportIsThundering(int p0);
|
||||
}
|
||||
|
||||
public static class SetThunderingWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]world.set-thundering"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSetThundering(int p0, int p1);
|
||||
}
|
||||
|
||||
public static class BroadcastSystemMessageWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]world.broadcast-system-message"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportBroadcastSystemMessage(int p0, int p1, int p2);
|
||||
}
|
||||
|
||||
public static class GetScoreboardWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]world.get-scoreboard"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetScoreboard(int p0);
|
||||
}
|
||||
|
||||
public static class PlaySoundWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]world.play-sound"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportPlaySound(int p0, nint p1, int p2, int p3, double p4, double p5, double p6, float p7, float p8);
|
||||
}
|
||||
|
||||
public static class SpawnParticleWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]world.spawn-particle"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportSpawnParticle(int p0, nint p1, int p2, double p3, double p4, double p5, double p6, double p7, double p8, float p9, int p10);
|
||||
}
|
||||
|
||||
public static class CreateExplosionWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]world.create-explosion"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportCreateExplosion(int p0, double p1, double p2, double p3, float p4, int p5, int p6);
|
||||
}
|
||||
|
||||
public static class GetSeaLevelWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]world.get-sea-level"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetSeaLevel(int p0);
|
||||
}
|
||||
|
||||
public static class GetMinYWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]world.get-min-y"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern int wasmImportGetMinY(int p0);
|
||||
}
|
||||
|
||||
public static class GetEntitiesWasmInterop
|
||||
{
|
||||
[global::System.Runtime.InteropServices.DllImportAttribute("pumpkin:plugin/world@0.1.0", EntryPoint = "[method]world.get-entities"), global::System.Runtime.InteropServices.WasmImportLinkageAttribute]
|
||||
public static extern void wasmImportGetEntities(int p0, nint p1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
1399
src/gen/PluginWorld_component_type.wit
Normal file
1399
src/gen/PluginWorld_component_type.wit
Normal file
File diff suppressed because it is too large
Load Diff
11
src/gen/PluginWorld_wasm_import_linkage_attribute.cs
Normal file
11
src/gen/PluginWorld_wasm_import_linkage_attribute.cs
Normal file
@ -0,0 +1,11 @@
|
||||
// Generated by `wit-bindgen` 0.57.1. DO NOT EDIT!
|
||||
// <auto-generated />
|
||||
#nullable enable
|
||||
|
||||
#if !NET9_0_OR_GREATER
|
||||
// temporarily add this attribute until it is available in dotnet 9
|
||||
namespace System.Runtime.InteropServices
|
||||
{
|
||||
internal partial class WasmImportLinkageAttribute : global::System.Attribute {}
|
||||
}
|
||||
#endif
|
||||
Loading…
Reference in New Issue
Block a user