Space Plunder
Loading...
Searching...
No Matches
SetStoredStats.h
Go to the documentation of this file.
1// Copyright 2021 Artur 'NijoMeisteR' Dworaczek. All Rights Reserved.
2
3#pragma once
4#pragma warning(disable:4996)
5#pragma warning(disable:4265)
6#pragma warning(disable:4701)
7
8#include "CoreMinimal.h"
9#include "Kismet/BlueprintFunctionLibrary.h"
10#include "SteamRequests.h"
11#pragma push_macro("ARRAY_COUNT")
12#undef ARRAY_COUNT
13
14#if USING_CODE_ANALYSIS
15MSVC_PRAGMA(warning(push))
16MSVC_PRAGMA(warning(disable : ALL_CODE_ANALYSIS_WARNINGS))
17#endif
18
19#include "OnlineSubsystemSteam.h"
20#include <steam/steam_api.h>
21
22#if USING_CODE_ANALYSIS
23MSVC_PRAGMA(warning(pop))
24#endif
25
26#pragma pop_macro("ARRAY_COUNT")
27#include "SetStoredStats.generated.h"
28
30UCLASS()
31class STATSINTEGRATION_API USetStoredStats : public UBlueprintFunctionLibrary
32{
33 GENERATED_BODY()
34
35public:
36 /* This call only modifies Steam's in-memory state and is very cheap. Doing so allows Steam to persist the changes even in the event of a game crash or unexpected shutdown. To submit the stats to the server you must call 'StoreUserStatsAndAchievements'. 'SessionLength' (seconds since last call to the set stat function) variable only required to calculate averages. */
37 UFUNCTION(BlueprintCallable, Category = "Simple Steam Stats & Achievements")
38 static bool SetStoredStats(TArray<FSteamStat> SteamStatsIn, float SessionLength);
39
40 /* This call only modifies Steam's in-memory state and is very cheap. Doing so allows Steam to persist the changes even in the event of a game crash or unexpected shutdown. To submit the stats to the server you must call 'StoreUserStatsAndAchievements'. 'SessionLength' (seconds since last call to the set stat function) variable only required to calculate averages. */
41 UFUNCTION(BlueprintCallable, Category = "Simple Steam Stats & Achievements")
42 static bool SetStoredStat(FString APIStatName, ESteamStatType StatType, float FloatValue, int32 IntegerValue, float SessionLength);
43};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
ESteamStatType
Definition SteamRequests.h:13
Definition SetStoredStats.h:32