steamutils 1.2.73 → 1.2.75
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/SteamClient.js +10 -1
- package/package.json +1 -1
package/SteamClient.js
CHANGED
@@ -101,6 +101,8 @@ function SteamClient({
|
|
101
101
|
let playingBlocked = null
|
102
102
|
const richPresence = {}
|
103
103
|
let sendMessageTimestamp = 0
|
104
|
+
let lastTimePartyRegister = 0
|
105
|
+
let lastTimePartySearch = 0
|
104
106
|
|
105
107
|
const onAnyCallbacks = []
|
106
108
|
|
@@ -378,6 +380,7 @@ function SteamClient({
|
|
378
380
|
launcher: 0,
|
379
381
|
game_type: game_type === 'Competitive' ? 8 : 10
|
380
382
|
}))
|
383
|
+
lastTimePartySearch = new Date().getTime()
|
381
384
|
pushGCCallback('partySearch', resolve, timeout)
|
382
385
|
})
|
383
386
|
}
|
@@ -1387,7 +1390,7 @@ function SteamClient({
|
|
1387
1390
|
}
|
1388
1391
|
|
1389
1392
|
function _partyRegister(prime) {
|
1390
|
-
|
1393
|
+
lastTimePartyRegister = new Date().getTime()
|
1391
1394
|
steamClient.sendToGC(730, Protos.csgo.ECsgoGCMsg.k_EMsgGCCStrike15_v2_Party_Register, {}, protoEncode(Protos.csgo.CMsgGCCStrike15_v2_Party_Register, {
|
1392
1395
|
// id : 0,
|
1393
1396
|
ver: CSGO_VER,
|
@@ -1717,6 +1720,12 @@ function SteamClient({
|
|
1717
1720
|
return steamClient.steamID.getSteamID64()
|
1718
1721
|
} catch (e) {
|
1719
1722
|
}
|
1723
|
+
},
|
1724
|
+
getLastTimePartyRegister(){
|
1725
|
+
return lastTimePartyRegister
|
1726
|
+
},
|
1727
|
+
getLastTimePartySearch(){
|
1728
|
+
return lastTimePartySearch
|
1720
1729
|
}
|
1721
1730
|
}
|
1722
1731
|
}
|