steamworks.js-timmy 0.1.17 → 0.1.19
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 +21 -21
- package/README.md +7 -7
- package/callbacks.d.ts +56 -56
- package/client.d.ts +15 -0
- package/dist/linux64/client.d.ts +976 -0
- package/dist/linux64/index.d.ts +6 -0
- package/dist/linux64/index.js +89 -0
- package/dist/linux64/libsteam_api.so +0 -0
- package/dist/linux64/steamworksjs.linux-x64-gnu.node +0 -0
- package/dist/osx/client.d.ts +976 -0
- package/dist/osx/index.d.ts +6 -0
- package/dist/osx/index.js +89 -0
- package/dist/osx/libsteam_api.dylib +0 -0
- package/dist/osx/steamworksjs.darwin-arm64.node +0 -0
- package/dist/osx/steamworksjs.darwin-x64.node +0 -0
- package/dist/win64/client.d.ts +15 -0
- package/dist/win64/steamworksjs.win32-x64-msvc.node +0 -0
- package/index.js +88 -88
- package/package.json +4 -2
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022 Gabriel Francisco Dos Santos
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Gabriel Francisco Dos Santos
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# steamworks.js-timmy
|
|
2
|
-
|
|
3
|
-
package with added features and newer steam API
|
|
4
|
-
|
|
5
|
-
yum
|
|
6
|
-
|
|
7
|
-
specifically tailored for [NEODITRONIX](https://store.steampowered.com/app/3782120/NEODITRONIX/), please play it!!!!
|
|
1
|
+
# steamworks.js-timmy
|
|
2
|
+
|
|
3
|
+
package with added features and newer steam API
|
|
4
|
+
|
|
5
|
+
yum
|
|
6
|
+
|
|
7
|
+
specifically tailored for [NEODITRONIX](https://store.steampowered.com/app/3782120/NEODITRONIX/), please play it!!!!
|
package/callbacks.d.ts
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import client = require('./client')
|
|
2
|
-
|
|
3
|
-
export const enum ChatMemberStateChange {
|
|
4
|
-
/** This user has joined or is joining the lobby. */
|
|
5
|
-
Entered,
|
|
6
|
-
/** This user has left or is leaving the lobby. */
|
|
7
|
-
Left,
|
|
8
|
-
/** User disconnected without leaving the lobby first. */
|
|
9
|
-
Disconnected,
|
|
10
|
-
/** The user has been kicked. */
|
|
11
|
-
Kicked,
|
|
12
|
-
/** The user has been kicked and banned. */
|
|
13
|
-
Banned,
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface CallbackReturns {
|
|
17
|
-
[client.callback.SteamCallback.PersonaStateChange]: {
|
|
18
|
-
steam_id: bigint
|
|
19
|
-
flags: { bits: number }
|
|
20
|
-
}
|
|
21
|
-
[client.callback.SteamCallback.SteamServersConnected]: {}
|
|
22
|
-
[client.callback.SteamCallback.SteamServersDisconnected]: {
|
|
23
|
-
reason: number
|
|
24
|
-
}
|
|
25
|
-
[client.callback.SteamCallback.SteamServerConnectFailure]: {
|
|
26
|
-
reason: number
|
|
27
|
-
still_retrying: boolean
|
|
28
|
-
}
|
|
29
|
-
[client.callback.SteamCallback.LobbyDataUpdate]: {
|
|
30
|
-
lobby: bigint
|
|
31
|
-
member: bigint
|
|
32
|
-
success: boolean
|
|
33
|
-
}
|
|
34
|
-
[client.callback.SteamCallback.LobbyChatUpdate]: {
|
|
35
|
-
lobby: bigint
|
|
36
|
-
user_changed: bigint
|
|
37
|
-
making_change: bigint
|
|
38
|
-
member_state_change: ChatMemberStateChange
|
|
39
|
-
}
|
|
40
|
-
[client.callback.SteamCallback.P2PSessionRequest]: {
|
|
41
|
-
remote: bigint
|
|
42
|
-
}
|
|
43
|
-
[client.callback.SteamCallback.P2PSessionConnectFail]: {
|
|
44
|
-
remote: bigint
|
|
45
|
-
error: number
|
|
46
|
-
}
|
|
47
|
-
[client.callback.SteamCallback.GameLobbyJoinRequested]: {
|
|
48
|
-
lobby_steam_id: bigint
|
|
49
|
-
friend_steam_id: bigint
|
|
50
|
-
}
|
|
51
|
-
[client.callback.SteamCallback.MicroTxnAuthorizationResponse]: {
|
|
52
|
-
app_id: number
|
|
53
|
-
order_id: number | bigint
|
|
54
|
-
authorized: boolean
|
|
55
|
-
}
|
|
56
|
-
}
|
|
1
|
+
import client = require('./client')
|
|
2
|
+
|
|
3
|
+
export const enum ChatMemberStateChange {
|
|
4
|
+
/** This user has joined or is joining the lobby. */
|
|
5
|
+
Entered,
|
|
6
|
+
/** This user has left or is leaving the lobby. */
|
|
7
|
+
Left,
|
|
8
|
+
/** User disconnected without leaving the lobby first. */
|
|
9
|
+
Disconnected,
|
|
10
|
+
/** The user has been kicked. */
|
|
11
|
+
Kicked,
|
|
12
|
+
/** The user has been kicked and banned. */
|
|
13
|
+
Banned,
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface CallbackReturns {
|
|
17
|
+
[client.callback.SteamCallback.PersonaStateChange]: {
|
|
18
|
+
steam_id: bigint
|
|
19
|
+
flags: { bits: number }
|
|
20
|
+
}
|
|
21
|
+
[client.callback.SteamCallback.SteamServersConnected]: {}
|
|
22
|
+
[client.callback.SteamCallback.SteamServersDisconnected]: {
|
|
23
|
+
reason: number
|
|
24
|
+
}
|
|
25
|
+
[client.callback.SteamCallback.SteamServerConnectFailure]: {
|
|
26
|
+
reason: number
|
|
27
|
+
still_retrying: boolean
|
|
28
|
+
}
|
|
29
|
+
[client.callback.SteamCallback.LobbyDataUpdate]: {
|
|
30
|
+
lobby: bigint
|
|
31
|
+
member: bigint
|
|
32
|
+
success: boolean
|
|
33
|
+
}
|
|
34
|
+
[client.callback.SteamCallback.LobbyChatUpdate]: {
|
|
35
|
+
lobby: bigint
|
|
36
|
+
user_changed: bigint
|
|
37
|
+
making_change: bigint
|
|
38
|
+
member_state_change: ChatMemberStateChange
|
|
39
|
+
}
|
|
40
|
+
[client.callback.SteamCallback.P2PSessionRequest]: {
|
|
41
|
+
remote: bigint
|
|
42
|
+
}
|
|
43
|
+
[client.callback.SteamCallback.P2PSessionConnectFail]: {
|
|
44
|
+
remote: bigint
|
|
45
|
+
error: number
|
|
46
|
+
}
|
|
47
|
+
[client.callback.SteamCallback.GameLobbyJoinRequested]: {
|
|
48
|
+
lobby_steam_id: bigint
|
|
49
|
+
friend_steam_id: bigint
|
|
50
|
+
}
|
|
51
|
+
[client.callback.SteamCallback.MicroTxnAuthorizationResponse]: {
|
|
52
|
+
app_id: number
|
|
53
|
+
order_id: number | bigint
|
|
54
|
+
authorized: boolean
|
|
55
|
+
}
|
|
56
|
+
}
|
package/client.d.ts
CHANGED
|
@@ -567,6 +567,16 @@ export declare namespace input {
|
|
|
567
567
|
PS5Controller = 'PS5Controller',
|
|
568
568
|
SteamDeckController = 'SteamDeckController'
|
|
569
569
|
}
|
|
570
|
+
export const enum KeyboardInputKind {
|
|
571
|
+
/** The text input that will closes on Enter keypress */
|
|
572
|
+
SingleLine = 0,
|
|
573
|
+
/** Text input that will closes on user's demand. */
|
|
574
|
+
MultiLine = 1,
|
|
575
|
+
/** Text input that will make typing email address easier. */
|
|
576
|
+
Email = 2,
|
|
577
|
+
/** Text input that will make typing numeric input easier. */
|
|
578
|
+
Numeric = 3
|
|
579
|
+
}
|
|
570
580
|
export interface MotionData {
|
|
571
581
|
/** Absolute Rotation (drift) X axis */
|
|
572
582
|
rotQuatX: number
|
|
@@ -592,6 +602,11 @@ export declare namespace input {
|
|
|
592
602
|
export function runFrame(): void
|
|
593
603
|
export function setInputActionManifestFilePath(path: string): boolean
|
|
594
604
|
export function shutdown(): void
|
|
605
|
+
/**
|
|
606
|
+
* Opens a floating keyboard over the game content and sends OS keyboard keys directly to the game.
|
|
607
|
+
* The text field position is specified in pixels relative the origin of the game window and is used to position the floating keyboard in a way that doesn't cover the text field.
|
|
608
|
+
*/
|
|
609
|
+
export function triggerOnScreenKeyboard(keyboardInputKind: KeyboardInputKind, xPosOfTextInput: number, yPosOfTextInput: number, widthOfTextInput: number, heightOfTextInput: number, dismissedCallback?: (arg?: unknown) => unknown | undefined | null): boolean
|
|
595
610
|
export const enum VibrateSide {
|
|
596
611
|
Left = 0,
|
|
597
612
|
Right = 1
|