SteamGameServerStats
Swift
public struct SteamGameServerStats: Sendable
Steamworks ISteamGameServerStats
Access via gameServerStats
.
Topics
func clearUserAchievement(user: SteamID, name: String) -> Bool
func clearUserAchievement(user: SteamID, name: String) -> Bool
func getUserAchievement(user: SteamID, name: String) -> (rc: Bool, achieved: Bool)
func getUserAchievement(user: SteamID, name: String) -> (rc: Bool, achieved: Bool)
func getUserStatFloat(user: SteamID, name: String) -> (rc: Bool, data: Float)
func getUserStatFloat(user: SteamID, name: String) -> (rc: Bool, data: Float)
func getUserStatInt(user: SteamID, name: String) -> (rc: Bool, data: Int)
func getUserStatInt(user: SteamID, name: String) -> (rc: Bool, data: Int)
func requestUserStats(user: SteamID, completion: (sending GSStatsReceived?) -> Void)
func requestUserStats(user: SteamID, completion: (sending GSStatsReceived?) -> Void)
Steamworks ISteamGameServerStats::RequestUserStats()
, callback
Declaration
Swift
public func requestUserStats(
user: SteamID,
completion: @Sendable @escaping (sending GSStatsReceived?) -> Void)
func requestUserStats(isolation: isolated (any Actor)?, user: SteamID) async -> GSStatsReceived?
func requestUserStats(isolation: isolated (any Actor)?, user: SteamID) async -> GSStatsReceived?
Steamworks ISteamGameServerStats::RequestUserStats()
, async
Declaration
Swift
public func requestUserStats(
isolation: isolated (any Actor)? = #isolation, user: SteamID
) async -> GSStatsReceived?
func setUserAchievement(user: SteamID, name: String) -> Bool
func setUserAchievement(user: SteamID, name: String) -> Bool
func setUserStat(user: SteamID, name: String, data: Float) -> Bool
func setUserStat(user: SteamID, name: String, data: Float) -> Bool
func setUserStat(user: SteamID, name: String, data: Int) -> Bool
func setUserStat(user: SteamID, name: String, data: Int) -> Bool
func storeUserStats(user: SteamID, completion: (sending GSStatsStored?) -> Void)
func storeUserStats(user: SteamID, completion: (sending GSStatsStored?) -> Void)
Steamworks ISteamGameServerStats::StoreUserStats()
, callback
Declaration
Swift
public func storeUserStats(
user: SteamID,
completion: @Sendable @escaping (sending GSStatsStored?) -> Void)
func storeUserStats(isolation: isolated (any Actor)?, user: SteamID) async -> GSStatsStored?
func storeUserStats(isolation: isolated (any Actor)?, user: SteamID) async -> GSStatsStored?
Steamworks ISteamGameServerStats::StoreUserStats()
, async
Declaration
Swift
public func storeUserStats(
isolation: isolated (any Actor)? = #isolation, user: SteamID
) async -> GSStatsStored?
func updateUserAvgRateStat(user: SteamID, name: String, countThisSession: Float, sessionLength: Double) -> Bool
func updateUserAvgRateStat(user: SteamID, name: String, countThisSession: Float, sessionLength: Double) -> Bool