@cybermp/client-types 2.2.1 → 2.3.1
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/README.md +56 -0
- package/out/bitfields.ts +47 -47
- package/out/enums.ts +13899 -13899
- package/out/game.d.ts +1 -4
- package/package.json +15 -6
- package/precomputed/cef.d.ts +24 -5
- package/precomputed/commands.d.ts +17 -0
- package/precomputed/discord.d.ts +20 -3
- package/precomputed/enums.ts +47 -38
- package/precomputed/events.d.ts +224 -63
- package/precomputed/game.d.ts +601 -257
- package/precomputed/local-storage.d.ts +37 -9
- package/precomputed/local.d.ts +106 -0
- package/precomputed/meta.d.ts +78 -18
- package/precomputed/mp.d.ts +106 -137
- package/precomputed/network.d.ts +81 -0
- package/precomputed/voice-chat.d.ts +86 -23
|
@@ -1,23 +1,86 @@
|
|
|
1
|
-
import type * as CyberEnums from '../out/enums';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import type * as CyberEnums from '../out/enums';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface managing the integrated voice communication subsystem.
|
|
5
|
+
* Provides controls for device routing, audio leveling, capture thresholds, and distance-based 3D spatial attenuation.
|
|
6
|
+
*/
|
|
7
|
+
export interface MpVoiceChat {
|
|
8
|
+
/**
|
|
9
|
+
* Toggles the global operational state of the voice chat system.
|
|
10
|
+
* @param state - `true` to fully initialize and connect to the voice server channels, `false` to shut down capture and playback.
|
|
11
|
+
*/
|
|
12
|
+
enable(state: boolean): void;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Modifies how the local microphone capture is triggered (e.g., Continuous, Voice Activity, or Push-To-Talk).
|
|
16
|
+
* @param type - The target voice activation mode enumeration value.
|
|
17
|
+
*/
|
|
18
|
+
changeActivationType(type: CyberEnums.EVoiceActivationType): void;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Binds a specific hardware key code or input identifier to trigger microphone transmission when using Push-To-Talk.
|
|
22
|
+
* @param key - The numerical key code or explicit structural input key enum to assign.
|
|
23
|
+
*/
|
|
24
|
+
bindPushToTalkKey(key: number | CyberEnums.EInputKey): void;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Sets the master playback volume level for inbound remote voice streams.
|
|
28
|
+
* @param value - Volumetric multiplier factor (typically ranging from `0.0` for muted up to `1.0` or higher for boosted gain).
|
|
29
|
+
*/
|
|
30
|
+
setOutputVolume(value: number): void;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Adjusts the local recording gain modification layer applied to the hardware microphone input before network broadcasting.
|
|
34
|
+
* @param value - Volumetric multiplier factor (typically ranging from `0.0` to `1.0`).
|
|
35
|
+
*/
|
|
36
|
+
setInputVolume(value: number): void;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Sets the voice activity detection (VAD) audio floor threshold.
|
|
40
|
+
* Captured audio below this amplitude level will be automatically gated and ignored.
|
|
41
|
+
* @param value - The cutoff sensitivity threshold limit.
|
|
42
|
+
*/
|
|
43
|
+
setMicrophoneSensitivity(value: number): void;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Queries the system multimedia framework to retrieve descriptive text labels of all available physical audio output playback devices.
|
|
47
|
+
* @returns An array containing the plaintext names or driver descriptors of accessible output hardware components.
|
|
48
|
+
*/
|
|
49
|
+
getOutputDevices(): string[];
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Queries the system multimedia framework to retrieve descriptive text labels of all available physical audio input recording devices.
|
|
53
|
+
* @returns An array containing the plaintext names or driver descriptors of accessible input hardware components.
|
|
54
|
+
*/
|
|
55
|
+
getInputDevices(): string[];
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Routes the voice playback audio rendering stream into a specific physical output device using its indexed layout match.
|
|
59
|
+
* @param index - The hardware array element position index matching the list returned by {@link getOutputDevices}.
|
|
60
|
+
*/
|
|
61
|
+
setOutputDevice(index: number): void;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Selects and hooks the physical recording mic input stream into a specific hardware component using its indexed layout match.
|
|
65
|
+
* @param index - The hardware array element position index matching the list returned by {@link getInputDevices}.
|
|
66
|
+
*/
|
|
67
|
+
setInputDevice(index: number): void;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Configures the local input listening radius or proximity box boundaries.
|
|
71
|
+
* @param distance - Maximum distance measurement units used to bound transmission scopes.
|
|
72
|
+
*/
|
|
73
|
+
setInputDistance(distance: number): void;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Sets the maximum linear distance radius over which a remote player's 3D spatialized voice stream will attenuate down to silence.
|
|
77
|
+
* @param distance - Proximity spatial calculation distance limits.
|
|
78
|
+
*/
|
|
79
|
+
setOutputDistance(distance: number): void;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Evaluates whether the voice client manager is initialized, connected to a voice channel, and operating normally.
|
|
83
|
+
* @returns `true` if the system layer is running and ready, otherwise `false`.
|
|
84
|
+
*/
|
|
85
|
+
isActive(): boolean;
|
|
86
|
+
}
|