-
-
Notifications
You must be signed in to change notification settings - Fork 66
/
callbacks.d.ts
56 lines (54 loc) · 1.62 KB
/
callbacks.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import client = require('./client')
export const enum ChatMemberStateChange {
/** This user has joined or is joining the lobby. */
Entered,
/** This user has left or is leaving the lobby. */
Left,
/** User disconnected without leaving the lobby first. */
Disconnected,
/** The user has been kicked. */
Kicked,
/** The user has been kicked and banned. */
Banned,
}
export interface CallbackReturns {
[client.callback.SteamCallback.PersonaStateChange]: {
steam_id: bigint
flags: { bits: number }
}
[client.callback.SteamCallback.SteamServersConnected]: {}
[client.callback.SteamCallback.SteamServersDisconnected]: {
reason: number
}
[client.callback.SteamCallback.SteamServerConnectFailure]: {
reason: number
still_retrying: boolean
}
[client.callback.SteamCallback.LobbyDataUpdate]: {
lobby: bigint
member: bigint
success: boolean
}
[client.callback.SteamCallback.LobbyChatUpdate]: {
lobby: bigint
user_changed: bigint
making_change: bigint
member_state_change: ChatMemberStateChange
}
[client.callback.SteamCallback.P2PSessionRequest]: {
remote: bigint
}
[client.callback.SteamCallback.P2PSessionConnectFail]: {
remote: bigint
error: number
}
[client.callback.SteamCallback.GameLobbyJoinRequested]: {
lobby_steam_id: bigint
friend_steam_id: bigint
}
[client.callback.SteamCallback.MicroTxnAuthorizationResponse]: {
app_id: number
order_id: number | bigint
authorized: boolean
}
}