@mafiahub/types 0.1.11 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +86 -0
- package/framework/key.d.ts +3 -0
- package/package.json +5 -2
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
MafiaHub source-available license
|
|
2
|
+
Copyright (c) 2021 MafiaHub. All rights reserved.
|
|
3
|
+
|
|
4
|
+
This license applies to MafiaHub Framework. The original work is maintained at
|
|
5
|
+
https://github.com/MafiaHub/Framework.
|
|
6
|
+
|
|
7
|
+
In this version, source-file headers naming the "MafiaHub OSS license" refer to the terms in this file.
|
|
8
|
+
|
|
9
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
|
10
|
+
following conditions are met:
|
|
11
|
+
|
|
12
|
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
|
13
|
+
disclaimer.
|
|
14
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
|
|
15
|
+
disclaimer in the documentation and/or other materials provided with the distribution.
|
|
16
|
+
3. All advertising materials mentioning features or use of this software must display the following acknowledgement:
|
|
17
|
+
This product includes software developed by MafiaHub.
|
|
18
|
+
4. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products
|
|
19
|
+
derived from this software without specific prior written permission.
|
|
20
|
+
5. Except as permitted by clause 8, source code may be copied, forked, studied, modified and built only with the intent
|
|
21
|
+
to contribute to the original work.
|
|
22
|
+
Forks and development builds may be used and shared only for developing, reviewing and testing contributions intended
|
|
23
|
+
for the original repository. This permission does not allow their use to operate a separate multiplayer platform or to
|
|
24
|
+
provide a client or server for a public or private community.
|
|
25
|
+
Outside this contribution work, using the Framework to develop or release another project requires specific prior
|
|
26
|
+
written permission from MafiaHub.
|
|
27
|
+
6. For projects using the Framework with MafiaHub's written permission, playing and hosting community servers is
|
|
28
|
+
permitted using unmodified official client and server releases, subject to the project's license. Official releases
|
|
29
|
+
are binaries published by MafiaHub or by maintainers authorized by MafiaHub.
|
|
30
|
+
Outside contribution work permitted under clause 5, clients and servers must use those official releases. This
|
|
31
|
+
restriction also applies to binaries built from unmodified source. A released Framework SDK does not grant permission
|
|
32
|
+
to release or deploy a separate client, server or multiplayer platform.
|
|
33
|
+
7. Building, distributing or operating a custom or alternative launcher for a project using the Framework is not
|
|
34
|
+
permitted without specific prior written permission from MafiaHub. Changes to the official Framework launcher are
|
|
35
|
+
permitted only for contribution development, review and testing under clause 5, and may not be deployed as a separate
|
|
36
|
+
launcher for a community or platform.
|
|
37
|
+
8. The scripting API declarations and example resources may be used, modified and redistributed to develop and run
|
|
38
|
+
scripts, game modes and resources with official client and server releases permitted under clause 6. This permission
|
|
39
|
+
does not extend to modified or source-built clients and servers or custom launchers. Conditions 1 through 4 continue
|
|
40
|
+
to apply to copies and modifications of the declarations and example resources.
|
|
41
|
+
|
|
42
|
+
Any use outside these permissions requires specific prior written permission from MafiaHub. Uses covered by specific
|
|
43
|
+
written permission from MafiaHub remain allowed according to its terms, including permissions previously granted.
|
|
44
|
+
A project license published by MafiaHub may provide that permission, including permission to contribute to that
|
|
45
|
+
project's repository.
|
|
46
|
+
|
|
47
|
+
Third-party components remain subject to their own licenses; this license does not replace or restrict the rights
|
|
48
|
+
granted by those licenses. See the notices accompanying those components.
|
|
49
|
+
|
|
50
|
+
THIS SOFTWARE IS PROVIDED BY COPYRIGHT HOLDER "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
51
|
+
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
|
52
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
53
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
54
|
+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
55
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
|
|
56
|
+
DAMAGE.
|
|
57
|
+
|
|
58
|
+
This codebase also depends on the following third-party libraries:
|
|
59
|
+
jitasm - https://github.com/hlide/jitasm/blob/master/LICENSE
|
|
60
|
+
minhook - https://github.com/TsudaKageyu/minhook/blob/master/LICENSE.txt
|
|
61
|
+
minhook helpers - https://github.com/citizenfx/fivem/blob/master/code/LICENSE
|
|
62
|
+
zpl.test - https://github.com/zpl-c/zpl.test/blob/master/LICENSE
|
|
63
|
+
cppfs - https://github.com/cginternals/cppfs/blob/master/LICENSE
|
|
64
|
+
cef - https://github.com/chromiumembedded/cef/blob/master/LICENSE.txt
|
|
65
|
+
glm - https://github.com/g-truc/glm/blob/master/copying.txt
|
|
66
|
+
discord - https://discord.com/developers/docs/legal
|
|
67
|
+
httplib - https://github.com/yhirose/cpp-httplib/blob/master/LICENSE
|
|
68
|
+
nlohmann-json - https://github.com/nlohmann/json/blob/develop/LICENSE.MIT
|
|
69
|
+
nodejs - https://github.com/nodejs/node/blob/master/LICENSE
|
|
70
|
+
openssl - https://www.openssl.org/source/license.html
|
|
71
|
+
slikenet - https://github.com/SLikeSoft/SLikeNet/blob/master/license.txt
|
|
72
|
+
optick - https://github.com/bombomby/optick/blob/master/LICENSE
|
|
73
|
+
spdlog - https://github.com/gabime/spdlog/blob/v1.x/LICENSE
|
|
74
|
+
steamworks - https://partner.steamgames.com/documentation/sdk_access_agreement
|
|
75
|
+
sentry - https://sentry.io/terms/
|
|
76
|
+
protobuf - https://github.com/protocolbuffers/protobuf/blob/master/LICENSE
|
|
77
|
+
curl - https://curl.se/docs/copyright.html
|
|
78
|
+
udis86 - https://github.com/vmt/udis86
|
|
79
|
+
cef - https://bitbucket.org/chromiumembedded/cef/
|
|
80
|
+
fmt - https://fmt.dev/latest/index.html
|
|
81
|
+
cxxopts - https://github.com/jarro2783/cxxopts
|
|
82
|
+
libsig - https://github.com/recp/libsig
|
|
83
|
+
sfd - https://github.com/rxi/sfd
|
|
84
|
+
sdl2 - https://www.libsdl.org/license.php
|
|
85
|
+
stackwalker - https://github.com/JochenKalmbach/StackWalker/blob/master/LICENSE
|
|
86
|
+
v8pp - https://github.com/pmed/v8pp
|
package/framework/key.d.ts
CHANGED
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
* `insert` `delete` `home` `end` `pageup` `pagedown` `capslock`
|
|
17
17
|
* - Numpad `numpad0`–`numpad9` (aliases `num0`–`num9`)
|
|
18
18
|
* - Mouse `mouse1` (left) `mouse2` (right) `mouse3` (middle) `mouse4` `mouse5`
|
|
19
|
+
* - Wheel `wheelup` `wheeldown`: each notch fires `"down"` then `"up"`, and
|
|
20
|
+
* the game still receives it. Never held, so `isDown` is always `false`.
|
|
21
|
+
* Needs a game input adapter that reports the wheel (the framework's does).
|
|
19
22
|
*
|
|
20
23
|
* Letters and digits identify physical positions on a US keyboard. Use
|
|
21
24
|
* `getLabel` to show the corresponding label in the player's current layout.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mafiahub/types",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "TypeScript type definitions for the MafiaHub Framework scripting API",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -13,7 +13,10 @@
|
|
|
13
13
|
"url": "git+https://github.com/MafiaHub/Framework.git",
|
|
14
14
|
"directory": "types"
|
|
15
15
|
},
|
|
16
|
-
"license": "SEE LICENSE IN
|
|
16
|
+
"license": "SEE LICENSE IN LICENSE.txt",
|
|
17
|
+
"scripts": {
|
|
18
|
+
"prepack": "node -e \"require('node:fs').copyFileSync('../LICENSE.txt', 'LICENSE.txt')\""
|
|
19
|
+
},
|
|
17
20
|
"publishConfig": {
|
|
18
21
|
"access": "public"
|
|
19
22
|
}
|